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 | ||||
vladislavbelovUnsubmitted 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… | |||||
// 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* GLDEBUGPROCKHR)(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", (GLDEBUGPROCKHR 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 *.