Carna  Version 3.0.1
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 <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. More...
 

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

#define CARNA_GLEW_INIT
Value:
{ \
const GLenum glew_state = glewInit(); \
CARNA_ASSERT( glew_state == GLEW_OK ); \
Carna::base::Log::instance().record( Carna::base::Log::debug, "GLEW initialized successfully." ); \
}
Indicates messages that might be of interest when searching bugs.
Definition: Log.h:88
void record(Severity severity, const std::string &entry) const
Instructs current writer to write entry with severity.
static Log & instance()
Returns the only instance from class InstanceType.
Definition: Singleton.h:109
#define CARNA_ASSERT(expression)
If the given expression is false, a break point is raised in debug mode and an AssertionFailure throw...

Invokes glewInit and raises an AssertionFailure if it fails.

Definition at line 41 of file glew.h.