GLUS
Macros | Functions
glus_log_vg.c File Reference
#include "GL/glus.h"

Macros

#define GLUS_MAX_CHARS_LOGGING   2047
 

Functions

GLUSvoid GLUSAPIENTRY glusLogSetLevel (const GLUSuint verbosity)
 Sets the current log level. More...
 
GLUSuint GLUSAPIENTRY glusLogGetLevel ()
 Gets the current log level. More...
 
GLUSvoid GLUSAPIENTRY glusLogPrint (GLUSuint verbosity, const char *format,...)
 Prints out the given information to the log console. More...
 
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...
 

Macro Definition Documentation

#define GLUS_MAX_CHARS_LOGGING   2047

Function Documentation

GLUSuint GLUSAPIENTRY glusLogGetLevel ( )

Gets the current log level.

Returns
The current log level.
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.
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.
GLUSvoid GLUSAPIENTRY glusLogSetLevel ( const GLUSuint  verbosity)

Sets the current log level.

Parameters
verbosityThe new log level.