Changeset View
Changeset View
Standalone View
Standalone View
source/lib/external_libraries/glext_funcs.h
Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | |||||
#define GL_FRAMEBUFFER_BINDING_EXT GL_FRAMEBUFFER_BINDING | #define GL_FRAMEBUFFER_BINDING_EXT GL_FRAMEBUFFER_BINDING | ||||
#define GL_FRAMEBUFFER_COMPLETE_EXT GL_FRAMEBUFFER_COMPLETE | #define GL_FRAMEBUFFER_COMPLETE_EXT GL_FRAMEBUFFER_COMPLETE | ||||
#define GL_FRAMEBUFFER_EXT GL_FRAMEBUFFER | #define GL_FRAMEBUFFER_EXT GL_FRAMEBUFFER | ||||
#define GL_CLAMP_TO_BORDER GL_CLAMP_TO_EDGE // TODO: should fix code that relies on GL_CLAMP_TO_BORDER | #define GL_CLAMP_TO_BORDER GL_CLAMP_TO_EDGE // TODO: should fix code that relies on GL_CLAMP_TO_BORDER | ||||
typedef GLuint GLhandleARB; | typedef GLuint GLhandleARB; | ||||
// GL_KHR_debug / GLES3.2 | |||||
FUNC2(void, glObjectLabelKHR, glObjectLabel, "3.2", (GLenum identifier, GLuint name, GLsizei length, const GLchar *label)) | |||||
vladislavbelov: Space and `*`. | |||||
#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… | |||||
// 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… | |||||
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: | ||||
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, 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)) | ||||
// GL_EXT_blend_color / GL1.4 (optional in 1.2): | // GL_EXT_blend_color / GL1.4 (optional in 1.2): | ||||
FUNC2(void, glBlendColorEXT, glBlendColor, "1.4", (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)) | FUNC2(void, glBlendColorEXT, glBlendColor, "1.4", (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)) | ||||
▲ Show 20 Lines • Show All 268 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Space and *.