![]() |
Path Tracing
|
OpenGL shader compilation on runtime. More...
#include <stdio.h>#include <string>#include <vector>#include <fstream>#include <sstream>#include <initializer_list>#include <utility>#include <GL/glew.h>#include <common/shader.hpp>
Functions | |
| GLuint | LoadShaders (std::initializer_list< std::pair< GLenum, const char * > > shaders) |
| Compile shaders Compiles and links on runtime any type of shader (VERTEX, FRAGMENT, COMPUTE). | |
OpenGL shader compilation on runtime.
Compile shaders
Compiles and links on runtime any type of shader (VERTEX, FRAGMENT, COMPUTE).
Example: LoadShaders({ { GL_VERTEX_SHADER, "shaders/shader.vert" }, { GL_FRAGMENT_SHADER, "shaders/shader.frag" }, });
| char* | shader list |