blaze
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules
Shaders

Shader compilation and freeing. More...

Functions

BLZAPIENTRY struct BLZ_Shader
*BLZAPICALL 
BLZ_CompileShader (char *vert, char *frag)
 Compiles a shader program from the specified sources. More...
 
BLZAPIENTRY int BLZAPICALL BLZ_FreeShader (BLZ_Shader *program)
 Frees memory used by specified shader program. More...
 
BLZAPIENTRY struct BLZ_Shader
BLZAPICALL * 
BLZ_GetDefaultShader ()
 Returns a pointer to the default shader program. More...
 
BLZAPIENTRY int BLZAPICALL BLZ_UseShader (BLZ_Shader *program)
 Sets the specified shader as the current. More...
 

Detailed Description

Shader compilation and freeing.

Function Documentation

BLZAPIENTRY struct BLZ_Shader* BLZAPICALL BLZ_CompileShader ( char *  vert,
char *  frag 
)

Compiles a shader program from the specified sources.

Parameters
vertVertex shader source string
fragFragment shader source string
See also
BLZ_UseShader
BLZ_FreeShader
BLZAPIENTRY int BLZAPICALL BLZ_FreeShader ( BLZ_Shader program)

Frees memory used by specified shader program.

BLZAPIENTRY struct BLZ_Shader BLZAPICALL* BLZ_GetDefaultShader ( )

Returns a pointer to the default shader program.

BLZAPIENTRY int BLZAPICALL BLZ_UseShader ( BLZ_Shader program)

Sets the specified shader as the current.