|
gKit2 light
|
afficher les uniforms et les attributs utilises par un program. More...
#include <cstdio>#include <algorithm>#include "window.h"#include "program.h"#include "mesh.h"#include "wavefront.h"Go to the source code of this file.
Functions | |
| const char * | glsl_string (const GLenum type) |
| void | print_uniform_value (const GLuint program, const int index, const char *name, const GLenum type, const GLint size) |
| int | print_uniforms (const GLuint program) |
| int | print_attribs (const GLuint program, const GLuint vao=0) |
| int | init () |
| int | quit () |
| int | draw () |
| int | main (int argc, char **argv) |
Variables | |
| GLuint | program |
| GLuint | vao |
afficher les uniforms et les attributs utilises par un program.
Definition in file tuto3GL_reflect.cpp.
| const char * glsl_string | ( | const GLenum | type | ) |
Definition at line 19 of file tuto3GL_reflect.cpp.
| void print_uniform_value | ( | const GLuint | program, |
| const int | index, | ||
| const char * | name, | ||
| const GLenum | type, | ||
| const GLint | size ) |
Definition at line 46 of file tuto3GL_reflect.cpp.
| int print_uniforms | ( | const GLuint | program | ) |
Definition at line 120 of file tuto3GL_reflect.cpp.
| int print_attribs | ( | const GLuint | program, |
| const GLuint | vao = 0 ) |
Definition at line 166 of file tuto3GL_reflect.cpp.
| int init | ( | ) |
Definition at line 219 of file tuto3GL_reflect.cpp.
| int quit | ( | ) |
Definition at line 260 of file tuto3GL_reflect.cpp.
| int draw | ( | void | ) |
Definition at line 269 of file tuto3GL_reflect.cpp.
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 307 of file tuto3GL_reflect.cpp.
| GLuint program |
Definition at line 13 of file tuto3GL_reflect.cpp.
| GLuint vao |
Definition at line 16 of file tuto3GL_reflect.cpp.