2013-01-04 05:39:31 +01:00
|
|
|
#ifndef _RGL_REPORT_INTERNAL_H
|
|
|
|
#define _RGL_REPORT_INTERNAL_H
|
2012-11-06 09:23:20 +01:00
|
|
|
|
|
|
|
#include "../export/RGL/rgl.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2013-01-04 05:39:31 +01:00
|
|
|
extern "C" {
|
2012-11-06 09:23:20 +01:00
|
|
|
#endif
|
|
|
|
|
2013-01-04 05:39:31 +01:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
GLenum e;
|
|
|
|
const char *s;
|
|
|
|
} RGLenumMap;
|
|
|
|
|
|
|
|
const char *rglMapLookupEnum( const RGLenumMap* map, unsigned int count, GLenum e );
|
|
|
|
GLenum rglMapLookupString( const RGLenumMap* map, unsigned int count, const char *s );
|
2012-11-06 09:23:20 +01:00
|
|
|
|
|
|
|
#define _RGL_MAP_LOOKUP_ENUM(MAP,ENUM) rglMapLookupEnum(MAP,sizeof(MAP)/sizeof(MAP[0]),ENUM)
|
|
|
|
#define _RGL_MAP_LOOKUP_STRING(MAP,STRING) rglMapLookupString(MAP,sizeof(MAP)/sizeof(MAP[0]),STRING)
|
|
|
|
|
2013-01-04 05:39:31 +01:00
|
|
|
const char *rglGetGLEnumName( GLenum e );
|
|
|
|
const char *rglGetGLErrorName( GLenum e );
|
2012-11-06 09:23:20 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2013-01-04 05:39:31 +01:00
|
|
|
}
|
2012-11-06 09:23:20 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|