Blender  V3.3
Macros | Functions
#include <GL/glew.h>
#include "intern/symbol-binding.h"
#include "intern/gl-deprecated.h"

Go to the source code of this file.

Macros

#define GLEW_CHK(x)   glew_chk((x), __FILE__, __LINE__, # x)
 

Functions

GLenum glew_chk (GLenum error, const char *file, int line, const char *text)
 

Detailed Description

Support for GLEW Multiple rendering conteXts (MX) Maintained as a Blender Library.

Different rendering contexts may have different entry points to extension functions of the same name. So it can cause problems if, for example, a second context uses a pointer to say, glActiveTextureARB, that was queried from the first context.

GLEW has basic support for multiple contexts by enabling WITH_GLEW_MX, but it does not provide a full implementation. This is because there are too many questions about thread safety and memory allocation that are up to the user of GLEW.

This implementation is very basic and isn't thread safe. For a single context the overhead should be no more than using GLEW without WITH_GLEW_MX enabled.

Definition in file glew-mx.h.

Macro Definition Documentation

◆ GLEW_CHK

#define GLEW_CHK (   x)    glew_chk((x), __FILE__, __LINE__, # x)

Definition at line 48 of file glew-mx.h.

Function Documentation

◆ glew_chk()

GLenum glew_chk ( GLenum  error,
const char *  file,
int  line,
const char *  text 
)

Definition at line 35 of file glew-mx.c.

References error(), file, get_glew_error_enum_string(), and void.