gKit2 light
program.h
Go to the documentation of this file.
1 
2 #ifndef _PROGRAM_H
3 #define _PROGRAM_H
4 
5 #include <string>
6 
7 #include "glcore.h"
8 
9 
12 
15 
21 GLuint read_program( const char *filename, const char *definitions= "" );
22 
24 int release_program( const GLuint program );
25 
30 int reload_program( const GLuint program, const char *filename, const char *definitions= "" );
31 
33 int program_format_errors( const GLuint program, std::string& errors );
34 
36 int program_print_errors( const GLuint program );
37 
39 bool program_ready( const GLuint program );
40 
42 bool program_errors( const GLuint program );
43 
45 #endif
GLuint read_program(const char *filename, const char *definitions="")
Definition: program.cpp:204
int program_print_errors(const GLuint program)
affiche les erreurs de compilation.
Definition: program.cpp:432
int release_program(const GLuint program)
detruit les shaders et le program.
Definition: program.cpp:211
bool program_errors(const GLuint program)
renvoie vrai si le programme n'est pas pret.
Definition: program.cpp:259
int reload_program(const GLuint program, const char *filename, const char *definitions="")
Definition: program.cpp:149
bool program_ready(const GLuint program)
renvoie vrai si le programme est pret. (pas d'erreurs de compilation des shaders, pas d'erreur de lin...
Definition: program.cpp:236
int program_format_errors(const GLuint program, std::string &errors)
renvoie les erreurs de compilation.
Definition: program.cpp:366