glbinding  3.3.0.0
A C++ binding for the OpenGL API, generated using the gl.xml specification.
Loading...
Searching...
No Matches
glbinding::aux Namespace Reference

Classes

class  ContextInfo
 The ContextInfo class allows for access to metainformation about a context. The information is only valid for the currently active context. More...
 
class  Meta
 Provisioning of meta information about OpenGL extensions, functions and conversion of strings and symbols of the OpenGL API. More...
 
class  RingBuffer
 A threadsafe queue with a single insertion and multiple extraction points. More...
 
class  ValidVersions
 

Typedefs

using LogEntry = FunctionCall *
 The type of an entry in the log buffer is a FunctionCall *.
 

Functions

void registerGetErrorCallback ()
 Register the glGetError after callback.
 
void enableGetErrorCallback ()
 Enable glGetError() after callback.
 
void disableGetErrorCallback ()
 Disables calls to the glGetError() after callback.
 
void resize (unsigned int newSize)
 Resizes the global log buffer.
 
void start ()
 Start logging to a file globally.
 
void start (const std::string &filepath)
 Start logging to a file globally.
 
void startExcept (const std::set< std::string > &blackList)
 Start logging to a file globally, except for blacklisted functions.
 
void startExcept (const std::string &filepath, const std::set< std::string > &blackList)
 Start logging to a file globally, except for blacklisted functions.
 
void stop ()
 Stops logging and flushes log file.
 
void pause ()
 Pauses logging for later stopping or resuming.
 
void resume ()
 Resumes paused logging.
 
void log (LogEntry call)
 Add a function call to the log.
 

Typedef Documentation

◆ LogEntry

The type of an entry in the log buffer is a FunctionCall *.

Function Documentation

◆ registerGetErrorCallback()

void glbinding::aux::registerGetErrorCallback ( )

Register the glGetError after callback.

Remarks
This function just registers the global after callback within glbinding. For actual use, the callback has to be enabled, e.g., by a call to enableGetErrorCallback().
Any previously registered after callback get overwritten.

◆ enableGetErrorCallback()

void glbinding::aux::enableGetErrorCallback ( )

Enable glGetError() after callback.

Remarks
This registers the glGetError after callback if it wasn't registered before (by an internall call to registerGetErrorCallback()). Thus, any previously registered after callback get overwritten.

◆ disableGetErrorCallback()

void glbinding::aux::disableGetErrorCallback ( )

Disables calls to the glGetError() after callback.

Remarks
This does not unregister the after callback.

◆ resize()

void glbinding::aux::resize ( unsigned int newSize)

Resizes the global log buffer.

Parameters
[in]newSizeThe new size of the buffer

◆ start() [1/2]

void glbinding::aux::start ( )

Start logging to a file globally.

Remarks
This function generates a file name and uses it for output

◆ start() [2/2]

void glbinding::aux::start ( const std::string & filepath)

Start logging to a file globally.

Parameters
[in]filepathThe file to store the log into

◆ startExcept() [1/2]

void glbinding::aux::startExcept ( const std::set< std::string > & blackList)

Start logging to a file globally, except for blacklisted functions.

Parameters
blackListThe blacklist of function names
Remarks
This function generates a file name and uses it for output

◆ startExcept() [2/2]

void glbinding::aux::startExcept ( const std::string & filepath,
const std::set< std::string > & blackList )

Start logging to a file globally, except for blacklisted functions.

Parameters
[in]filepathThe file to store the log into
[in]blackListThe blacklist of function names

◆ stop()

void glbinding::aux::stop ( )

Stops logging and flushes log file.

◆ pause()

void glbinding::aux::pause ( )

Pauses logging for later stopping or resuming.

Remarks
While logging is started but paused, no OpenGL function calls are considered for the log file

◆ resume()

void glbinding::aux::resume ( )

Resumes paused logging.

◆ log()

void glbinding::aux::log ( LogEntry call)

Add a function call to the log.

Remarks
This function is intended to get used by glbinding and not by a user of glbinding