![]() |
Path Tracing
|
OpenGL shader compilation header. More...
#include <GL/glew.h>#include <initializer_list>#include <utility>

Go to the source code of this file.
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 header.
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 |