GLUS
Functions
glus_log.h File Reference

Go to the source code of this file.

Functions

GLUSAPI GLUSvoid GLUSAPIENTRY glusLogSetLevel (const GLUSuint verbosity)
 Sets the current log level. More...
 
GLUSAPI GLUSuint GLUSAPIENTRY glusLogGetLevel ()
 Gets the current log level. More...
 
GLUSAPI GLUSvoid GLUSAPIENTRY glusLogPrint (GLUSuint verbosity, const char *format,...)
 Prints out the given information to the log console. More...
 
GLUSAPI GLUSvoid GLUSAPIENTRY glusLogPrintError (GLUSuint verbosity, const char *format,...)
 Executes glGetError() and prints out the error code plus the given information to the log console. More...
 

Function Documentation

GLUSAPI GLUSuint GLUSAPIENTRY glusLogGetLevel ( )

Gets the current log level.

Returns
The current log level.
GLUSAPI GLUSvoid GLUSAPIENTRY glusLogPrint ( GLUSuint  verbosity,
const char *  format,
  ... 
)

Prints out the given information to the log console.

Parameters
verbosityThe used log level.
formatString to log plus format information.
...Parameter list for the format string.
GLUSAPI GLUSvoid GLUSAPIENTRY glusLogPrintError ( GLUSuint  verbosity,
const char *  format,
  ... 
)

Executes glGetError() and prints out the error code plus the given information to the log console.

Parameters
verbosityThe used log level.
formatString to log plus format information.
...Parameter list for the format string.
GLUSAPI GLUSvoid GLUSAPIENTRY glusLogSetLevel ( const GLUSuint  verbosity)

Sets the current log level.

Parameters
verbosityThe new log level.