MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / onOpenGLError

Method onOpenGLError

testbed/src/TestbedApplication.cpp:551–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551void GLAPIENTRY TestbedApplication::onOpenGLError(GLenum source, GLenum type, GLuint /*id*/, GLenum severity, GLsizei /*length*/,
552 const GLchar* message, const void* /*userParam*/ ) {
553
554#ifdef GL_DEBUG_OUTPUT
555 if (type == GL_DEBUG_TYPE_ERROR) {
556 fprintf( stderr, "GL CALLBACK: %s source = 0x%x, type = 0x%x, severity = 0x%x, message = %s\n",
557 ("** GL ERROR **" ),
558 source, type, severity, message );
559 }
560#endif
561
562}
563
564// Compute the FPS
565void TestbedApplication::computeFPS() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected