GLUS
Data Structures | Typedefs | Functions
glus_program_es.h File Reference

Go to the source code of this file.

Data Structures

struct  _GLUSprogram
 Structure for shader program handling. More...
 

Typedefs

typedef struct _GLUSprogram GLUSprogram
 Structure for shader program handling. More...
 

Functions

GLUSAPI GLUSboolean GLUSAPIENTRY glusProgramCreateFromSource (GLUSprogram *shaderProgram, const GLUSchar **vertexSource, const GLUSchar **fragmentSource)
 Creates a program by compiling the giving sources. More...
 
GLUSAPI GLUSboolean GLUSAPIENTRY glusProgramLink (GLUSprogram *shaderProgram)
 Links a formerly created program. More...
 
GLUSAPI GLUSboolean GLUSAPIENTRY glusProgramBuildFromSource (GLUSprogram *shaderProgram, const GLUSchar **vertexSource, const GLUSchar **fragmentSource)
 Builds a program by compiling and linking the giving sources. More...
 
GLUSAPI GLUSvoid GLUSAPIENTRY glusProgramDestroy (GLUSprogram *shaderprogram)
 Destroys a program by freeing all resources. More...
 

Typedef Documentation

typedef struct _GLUSprogram GLUSprogram

Structure for shader program handling.

Function Documentation

GLUSAPI GLUSboolean GLUSAPIENTRY glusProgramBuildFromSource ( GLUSprogram shaderProgram,
const GLUSchar **  vertexSource,
const GLUSchar **  fragmentSource 
)

Builds a program by compiling and linking the giving sources.

Parameters
shaderProgramThis structure holds the necessary information of the program and the different shaders.
vertexSourceVertex shader source code.
fragmentSourceFragment shader source code.
Returns
GLUS_TRUE, if compiling and linking of program succeeded.
GLUSAPI 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.

Parameters
shaderProgramThis structure holds the necessary information of the program and the different shaders.
vertexSourceVertex shader source code.
fragmentSourceFragment shader source code.
Returns
GLUS_TRUE, if compiling and creation of program succeeded.
GLUSAPI GLUSvoid GLUSAPIENTRY glusProgramDestroy ( GLUSprogram shaderprogram)

Destroys a program by freeing all resources.

Parameters
shaderprogramThis structure holds the necessary information of the program and the different shaders.
GLUSAPI GLUSboolean GLUSAPIENTRY glusProgramLink ( GLUSprogram shaderProgram)

Links a formerly created program.

Parameters
shaderProgramThis structure holds the necessary information of the program and the different shaders.
Returns
GLUS_TRUE, if linking of program succeeded.