gKit2 light

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

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
20 GLuint read_program( const char *filename, const char *definitions= "" );
21
23 int release_program( const GLuint program );
24
26 int reload_program( const GLuint program, const char *filename, const char *definitions= "" );
27
29 int program_format_errors( const GLuint program, std::string& errors );
30
32 int program_print_errors( const GLuint program );
33
35 #endif
program_print_errors
int program_print_errors(const GLuint program)
affiche les erreurs de compilation.
Definition: program.cpp:330
read_program
GLuint read_program(const char *filename, const char *definitions="")
Definition: program.cpp:150
program_format_errors
int program_format_errors(const GLuint program, std::string &errors)
renvoie les erreurs de compilation.
Definition: program.cpp:262
release_program
int release_program(const GLuint program)
detruit les shaders et le program.
Definition: program.cpp:157
reload_program
int reload_program(const GLuint program, const char *filename, const char *definitions="")
recharge les sources et recompile un shader program.
Definition: program.cpp:98