Changeset View
Changeset View
Standalone View
Standalone View
source/lib/external_libraries/glext_funcs.h
Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | |||||
// GL_OES_rgb8_rgba8 | // GL_OES_rgb8_rgba8 | ||||
#define GL_RGBA8 GL_RGBA8_OES | #define GL_RGBA8 GL_RGBA8_OES | ||||
// GL_OES_depth32 | // GL_OES_depth32 | ||||
#define GL_DEPTH_COMPONENT32 GL_DEPTH_COMPONENT32_OES | #define GL_DEPTH_COMPONENT32 GL_DEPTH_COMPONENT32_OES | ||||
typedef GLuint GLhandleARB; | typedef GLuint GLhandleARB; | ||||
// GL_KHR_debug / GLES3.2 | |||||
typedef void (GL_APIENTRY* GLDEBUGPROCKHR)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const void *userParam); | |||||
vladislavbelov: Space and `*`. | |||||
FUNC2(void, glDebugMessageCallbackKHR, glDebugMessageCallback, "3.2", (GLDEBUGPROCKHR callback, const GLvoid* userParam)) | |||||
FUNC2(void, glDebugMessageControlKHR, glDebugMessageControl, "3.2", (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled)) | |||||
FUNC2(void, glPushDebugGroupKHR, glPushDebugGroup, "3.2", (GLenum source, GLuint id, GLsizei length, const GLchar* message)) | |||||
FUNC2(void, glPopDebugGroupKHR, glPopDebugGroup, "3.2", (void)) | |||||
FUNC2(void, glObjectLabelKHR, glObjectLabel, "3.2", (GLenum identifier, GLuint name, GLsizei length, const GLchar* label)) | |||||
#else | #else | ||||
Not Done Inline ActionsAdd the define after #else: #ifndef GL_APIENTRY #ifdef APIENTRY #define GL_APIENTRY APIENTRY #else #define GL_APIENTRY #endif vladislavbelov: Add the define after `#else`:
```lang=cpp
#ifndef GL_APIENTRY
#ifdef APIENTRY
#define… | |||||
#ifndef GL_APIENTRY | |||||
#ifdef APIENTRY | |||||
#define GL_APIENTRY APIENTRY | |||||
#else | |||||
#define GL_APIENTRY | |||||
#endif | |||||
#endif | |||||
#ifndef GL_debug_output | |||||
#define GL_DEBUG_SOURCE_API 0x8246 | |||||
#define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247 | |||||
#define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248 | |||||
#define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249 | |||||
#define GL_DEBUG_SOURCE_APPLICATION 0x824A | |||||
#define GL_DEBUG_SOURCE_OTHER 0x824B | |||||
#define GL_DEBUG_TYPE_ERROR 0x824C | |||||
#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D | |||||
#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E | |||||
#define GL_DEBUG_TYPE_PORTABILITY 0x824F | |||||
#define GL_DEBUG_TYPE_PERFORMANCE 0x8250 | |||||
#define GL_DEBUG_TYPE_OTHER 0x8251 | |||||
#define GL_DEBUG_TYPE_MARKER 0x8268 | |||||
#define GL_DEBUG_TYPE_PUSH_GROUP 0x8269 | |||||
#define GL_DEBUG_TYPE_POP_GROUP 0x826A | |||||
#define GL_DEBUG_SEVERITY_NOTIFICATION 0x826B | |||||
#define GL_DEBUG_SEVERITY_HIGH 0x9146 | |||||
#define GL_DEBUG_SEVERITY_MEDIUM 0x9147 | |||||
#define GL_DEBUG_SEVERITY_LOW 0x9148 | |||||
#define GL_DEBUG_OUTPUT 0x92E0 | |||||
#endif | |||||
// We might not have multisample on macOS. | // We might not have multisample on macOS. | ||||
#ifndef GL_TEXTURE_2D_MULTISAMPLE | #ifndef GL_TEXTURE_2D_MULTISAMPLE | ||||
#define GL_TEXTURE_2D_MULTISAMPLE 0x9100 | #define GL_TEXTURE_2D_MULTISAMPLE 0x9100 | ||||
#endif | #endif | ||||
// were these defined as real functions in gl.h already? | // were these defined as real functions in gl.h already? | ||||
// GL_KHR_debug / GL4.3 | |||||
Not Done Inline ActionsWe have increasing number of version, so I think it'd be better to put this section at the end of the #else - #endif section. Like it's done for GLES. vladislavbelov: We have increasing number of version, so I think it'd be better to put this section at the end… | |||||
// We might not have khr defines on macOS. | |||||
#ifndef GL_DEBUG_SOURCE_APPLICATION | |||||
#define GL_DEBUG_SOURCE_APPLICATION 0x824A | |||||
#endif | |||||
typedef void (GL_APIENTRY* GLDEBUGPROC)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const void *userParam); | |||||
Not Done Inline ActionsSpace. vladislavbelov: Space. | |||||
Not Done Inline Actions* for types not for variables; APIENTRY > GL_APIENTRY. vladislavbelov: `*` for types not for variables; `APIENTRY` > `GL_APIENTRY`. | |||||
FUNC2(void, glDebugMessageCallbackKHR, glDebugMessageCallback, "4.3", (GLDEBUGPROC callback, const GLvoid* userParam)) | |||||
FUNC2(void, glDebugMessageControlKHR, glDebugMessageControl, "4.3", (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled)) | |||||
FUNC2(void, glPushDebugGroupKHR, glPushDebugGroup, "4.3", (GLenum source, GLuint id, GLsizei length, const GLchar* message)) | |||||
FUNC2(void, glPopDebugGroupKHR, glPopDebugGroup, "4.3", (void)) | |||||
FUNC2(void, glObjectLabelKHR, glObjectLabel, "4.3", (GLenum identifier, GLuint name, GLsizei length, const GLchar *label)) | |||||
// GL_EXT_draw_range_elements / GL1.2: | // GL_EXT_draw_range_elements / GL1.2: | ||||
FUNC2(void, glDrawRangeElementsEXT, glDrawRangeElements, "1.2", (GLenum, GLuint, GLuint, GLsizei, GLenum, GLvoid*)) | FUNC2(void, glDrawRangeElementsEXT, glDrawRangeElements, "1.2", (GLenum, GLuint, GLuint, GLsizei, GLenum, GLvoid*)) | ||||
// GL_ARB_multitexture / GL1.3: | // GL_ARB_multitexture / GL1.3: | ||||
FUNC2(void, glMultiTexCoord2fARB, glMultiTexCoord2f, "1.3", (int, float, float)) | FUNC2(void, glMultiTexCoord2fARB, glMultiTexCoord2f, "1.3", (int, float, float)) | ||||
FUNC2(void, glMultiTexCoord3fARB, glMultiTexCoord3f, "1.3", (int, float, float, float)) | FUNC2(void, glMultiTexCoord3fARB, glMultiTexCoord3f, "1.3", (int, float, float, float)) | ||||
FUNC2(void, glActiveTextureARB, glActiveTexture, "1.3", (int)) | FUNC2(void, glActiveTextureARB, glActiveTexture, "1.3", (int)) | ||||
FUNC2(void, glClientActiveTextureARB, glClientActiveTexture, "1.3", (int)) | FUNC2(void, glClientActiveTextureARB, glClientActiveTexture, "1.3", (int)) | ||||
▲ Show 20 Lines • Show All 275 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Space and *.