Graphics Reference
In-Depth Information
void ESUTIL_API
esRegisterKeyFunc
(ESContext *
esContext,
void(ESCALLBACK *
keyFunc
)
(ESContext *, unsigned char, int, int))
Register a keyboard input processing callback function.
Parameters:
esContext
application context
keyFunc
key callback function for application processing of
keyboard input
void ESUTIL_API
esRegisterShutdownFunc
(ESContext *
esContext,
void(ESCALLBACK *
shutdownFunc
)
(ESContext *))
Register a callback function to be called at shutdown.
Parameters:
esContext
application context
shutdownFunc
shutdown function called at application shutdown
GLuint ESUTIL_API
esLoadShader
(GLenum
type
,
const char *
shaderSrc
)
Load a shader, check for compile errors, print error messages to
output log.
Parameters:
type
type of shader (
GL_VERTEX_SHADER
or
GL_FRAGMENT_SHADER
)
shaderSrc
shader source string
Returns:
A new shader object on success, 0 on failure
GLuint ESUTIL_API
esLoadProgram
(const char *
vertShaderSrc,
const char *
fragShaderSrc
)
Load a vertex and fragment shader, create a program object, link
program. Errors are output to the log.
(continues)