GLUS
|
#include "GL/glus.h"
Functions | |
GLUSboolean GLUSAPIENTRY | glusProgramCreateFromSource (GLUSprogram *shaderProgram, const GLUSchar **vertexSource, const GLUSchar **fragmentSource) |
Creates a program by compiling the giving sources. More... | |
GLUSboolean GLUSAPIENTRY | glusProgramLink (GLUSprogram *shaderProgram) |
Links a formerly created program. More... | |
GLUSboolean GLUSAPIENTRY | glusProgramBuildFromSource (GLUSprogram *shaderProgram, const GLUSchar **vertexSource, const GLUSchar **fragmentSource) |
Builds a program by compiling and linking the giving sources. More... | |
GLUSvoid GLUSAPIENTRY | glusProgramDestroy (GLUSprogram *shaderprogram) |
Destroys a program by freeing all resources. More... | |
GLUSboolean GLUSAPIENTRY glusProgramBuildFromSource | ( | GLUSprogram * | shaderProgram, |
const GLUSchar ** | vertexSource, | ||
const GLUSchar ** | fragmentSource | ||
) |
Builds a program by compiling and linking the giving sources.
shaderProgram | This structure holds the necessary information of the program and the different shaders. |
vertexSource | Vertex shader source code. |
fragmentSource | Fragment shader source code. |
GLUSboolean GLUSAPIENTRY glusProgramCreateFromSource | ( | GLUSprogram * | shaderProgram, |
const GLUSchar ** | vertexSource, | ||
const GLUSchar ** | fragmentSource | ||
) |
Creates a program by compiling the giving sources.
Linking has to be done in a separate step.
shaderProgram | This structure holds the necessary information of the program and the different shaders. |
vertexSource | Vertex shader source code. |
fragmentSource | Fragment shader source code. |
GLUSvoid GLUSAPIENTRY glusProgramDestroy | ( | GLUSprogram * | shaderprogram | ) |
Destroys a program by freeing all resources.
shaderprogram | This structure holds the necessary information of the program and the different shaders. |
GLUSboolean GLUSAPIENTRY glusProgramLink | ( | GLUSprogram * | shaderProgram | ) |
Links a formerly created program.
shaderProgram | This structure holds the necessary information of the program and the different shaders. |