-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sauve_Rendu.h
34 lines (27 loc) · 896 Bytes
/
Sauve_Rendu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef SAUVE_RENDU_H_INCLUDED
#define SAUVE_RENDU_H_INCLUDED
/*-----------------------------------------------------------
Sauve l'écran au format png
------------------------------------------------------------*/
#include "glew.h"
#include <GLFW/glfw3.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <string>
#include <libpng12/png.h>
#include "Fonctions.h"
#include "Variables.h"
#include "FrameBuffers.h"
using namespace std;
class Sauve_Rendu
{
public:
static uint8_t *pixels;
static GLsizei largeur;
static GLsizei hauteur;
static bool alloue_pixels(GLsizei p_largeur, GLsizei p_hauteur);
static void copy_texture_en_memoire(int source_fbo,int destination_fbo);
static bool sauve_fichier(const char *filename,int source_fbo,int destination_fbo);
};
#endif // SAUVE_RENDU_H_INCLUDED