Defines | Functions

CC3OpenGLES11Foundation.h File Reference

#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>
#import "CC3OpenGLES11Intercept.h"

Defines

#define GL_ERROR_LOGGING_ENABLED   0

Functions

NSString * GetGLErrorText (GLenum errCode)
NSString * NSStringFromGLEnum (GLenum gle)

Detailed Description


Define Documentation

#define GL_ERROR_LOGGING_ENABLED   0

LogGLErrorState logs an ERROR level description of any glError that occurrs, and logs a TRACE level description if no error has occurred.

Use the LogGLErrorState() macro and the GL_LOGGING_ENABLED compile switch to turn checking and logging of GL error state. Be sure to set the compiler switch GL_LOGGING_ENABLED to 0 when compiling for production code release, to avoid the overhead of making the GL error state call. This is important to maximize the GL state machine throughput.

Do NOT call the DoLogGLErrorState function directly!


Function Documentation

NSString* GetGLErrorText ( GLenum  errCode )

Returns a text description of the specified GL error code.

NSString* NSStringFromGLEnum ( GLenum  gle )

Returns a string containing the name of the specified GL enumeration code.