|
gKit2 light
|
shader_kit light, bac a sable fragment shader, cf shader_toy More...
#include <cstdio>#include <cstring>#include <chrono>#include "glcore.h"#include "window.h"#include "files.h"#include "program.h"#include "uniforms.h"#include "texture.h"#include "mesh.h"#include "wavefront.h"#include "vec.h"#include "mat.h"#include "orbiter.h"#include "color.h"#include "image.h"#include "image_hdr.h"#include "text.h"#include "widgets.h"Go to the source code of this file.
Functions | |
| void | reload_program () |
| const char * | option_find (std::vector< const char * > &options, const char *ext) |
| int | init (std::vector< const char * > &options) |
| int | quit () |
| int | draw (void) |
| int | main (int argc, char **argv) |
Variables | |
| const char * | program_filename |
| GLuint | program |
| std::string | program_log |
| int | program_area |
| bool | program_failed |
| const char * | mesh_filename |
| Mesh | mesh |
| Point | mesh_pmin |
| Point | mesh_pmax |
| int | vertex_count |
| GLuint | vao |
| bool | wireframe = false |
| std::vector< const char * > | texture_filenames |
| std::vector< GLuint > | textures |
| Orbiter | camera |
| Widgets | widgets |
| size_t | last_load = 0 |
shader_kit light, bac a sable fragment shader, cf shader_toy
Definition in file shader_kit.cpp.
| int init | ( | std::vector< const char * > & | options | ) |
compile les shaders et construit le programme + les buffers + le vertex array. renvoie -1 en cas d'erreur.
Definition at line 96 of file shader_kit.cpp.