LightsprintSDK 2021.08.08
|
#include <UberProgram.h>
Public Member Functions | |
virtual Program * | getProgram (const char *defines)=0 |
virtual | ~UberProgram () |
Public Member Functions inherited from rr::RRUniformlyAllocated | |
void * | operator new (std::size_t n) |
void * | operator new[] (std::size_t n) |
void | operator delete (void *p, std::size_t n) |
void | operator delete[] (void *p, std::size_t n) |
Static Public Member Functions | |
static UberProgram * | create (const rr::RRString &vertexShaderFileName, const rr::RRString &fragmentShaderFileName) |
Protected Member Functions | |
UberProgram () | |
GLSL program with preprocessor parameters changeable at runtime.
GLSL is language used by OpenGL API for writing shaders.
|
inlinevirtual |
|
inlineprotected |
|
pure virtual |
Returns program for given set of defines.
|
static |
Creates UberProgram from vertex and fragment shaders stored in text files.
vertexShaderFileName | File name of GLSL vertex shader source code. |
fragmentShaderFileName | File name of GLSL fragment shader source code. |