Carna Version 3.3.3
Loading...
Searching...
No Matches
Macros
glew.h File Reference

Includes GL/glew.h and windows.h if _WIN32 is defined. Also defines the CARNA_GLEW_INIT macro. More...

#include <Carna/base/Log.h>
#include <Carna/base/GL/glew.h>
+ Include dependency graph for glew.h:

Go to the source code of this file.

Macros

#define CARNA_GLEW_INIT
 Invokes glewInit and raises an AssertionFailure if it fails.
 

Detailed Description

Includes GL/glew.h and windows.h if _WIN32 is defined. Also defines the CARNA_GLEW_INIT macro.

Author
Leonid Kostrykin
Date
24.2.11 - 20.3.15

Definition in file glew.h.

Macro Definition Documentation

◆ CARNA_GLEW_INIT

#define CARNA_GLEW_INIT
Value:
{ \
const GLenum glew_state = glewInit(); \
const auto glew_ok = ( glew_state == GLEW_OK ); \
if( glew_ok ) \
{ \
Carna::base::Log::instance().record( Carna::base::Log::debug, "GLEW initialized successfully." ); \
} \
else \
{ \
CARNA_FAIL( "GLEW initialization failed (" << glewGetErrorString( glew_state ) << ", Code: " << glew_state << ")" ); \
} \
}
@ debug
Indicates messages that might be of interest when searching bugs.
Definition Log.h:88

Invokes glewInit and raises an AssertionFailure if it fails.

Definition at line 41 of file glew.h.