omegalib  13.1
glheaders.h File Reference
#include "osystem.h"
#include <GL/glew.h>
#include <GL/gl.h>
#include <GL/glu.h>

Macros

#define GLEW_MX
 
#define oglError   _oglError(__FILE__, __LINE__)
 

Typedefs

typedef struct GLEWContextStruct GLEWContext
 

Functions

bool _oglError (const char *file, int line)
 Returns true if the last opengl call failed, and prints an error message. More...
 
OMEGA_API GLEWContextglewGetContext ()
 Glew. More...
 
OMEGA_API void glewSetContext (const GLEWContext *context)
 

Macro Definition Documentation

#define GLEW_MX
#define oglError   _oglError(__FILE__, __LINE__)

Typedef Documentation

typedef struct GLEWContextStruct GLEWContext

Function Documentation

bool _oglError ( const char *  file,
int  line 
)
inline

Returns true if the last opengl call failed, and prints an error message.

OMEGA_API GLEWContext* glewGetContext ( )

Glew.

gets a glew context for the current thread, if present.

OMEGA_API void glewSetContext ( const GLEWContext context)

sets a glew context for the current thread.