Skip to content

Commit 4333ff3

Browse files
committed
add a whole bunch of constants
1 parent b37beef commit 4333ff3

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

OpenGL.pm

+10
Original file line numberDiff line numberDiff line change
@@ -2511,6 +2511,7 @@ our $glext_dependencies =
25112511
GL_MAX_TEXTURE_IMAGE_UNITS
25122512
GL_FRAGMENT_SHADER
25132513
GL_VERTEX_SHADER
2514+
GL_GEOMETRY_SHADER
25142515
GL_MAX_FRAGMENT_UNIFORM_COMPONENTS
25152516
GL_MAX_VERTEX_UNIFORM_COMPONENTS
25162517
GL_MAX_VARYING_FLOATS
@@ -4216,6 +4217,10 @@ our $glext_dependencies =
42164217
GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT
42174218
GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT
42184219
GL_FRAMEBUFFER_UNSUPPORTED_EXT
4220+
GL_DRAW_FRAMEBUFFER
4221+
GL_DEPTH_ATTACHMENT
4222+
GL_FRAMEBUFFER
4223+
GL_FRAMEBUFFER_COMPLETE
42194224
GL_MAX_COLOR_ATTACHMENTS_EXT
42204225
GL_COLOR_ATTACHMENT0_EXT
42214226
GL_COLOR_ATTACHMENT1_EXT
@@ -4326,6 +4331,8 @@ our $glext_dependencies =
43264331
GL_CLAMP_FRAGMENT_COLOR_ARB
43274332
GL_CLAMP_READ_COLOR_ARB
43284333
GL_FIXED_ONLY_ARB
4334+
GL_FRAMEBUFFER_SRGB
4335+
GL_SRGB_ALPHA
43294336
);
43304337
# gl_const
43314338

@@ -4480,6 +4487,7 @@ our $glext_dependencies =
44804487
GLUT_KEY_HOME
44814488
GLUT_KEY_END
44824489
GLUT_KEY_INSERT
4490+
GLUT_KEY_DELETE
44834491
GLUT_LEFT
44844492
GLUT_ENTERED
44854493
GLUT_MENU_NOT_IN_USE
@@ -4595,6 +4603,8 @@ our $glext_dependencies =
45954603
GLUT_GAME_MODE_PIXEL_DEPTH
45964604
GLUT_GAME_MODE_REFRESH_RATE
45974605
GLUT_GAME_MODE_DISPLAY_CHANGED
4606+
GLUT_CORE_PROFILE
4607+
GLUT_DEBUG
45984608
);
45994609

46004610
@glx_const = qw(

gl_const.h

+9
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,15 @@ if (!strncmp(name, "GL_", 3)) {
655655
i(MAX_GL_FOG_COUNT)
656656
i(MAX_GL_GET_COUNT)
657657

658+
#ifdef GL_VERSION_3_0
659+
i(GL_DRAW_FRAMEBUFFER)
660+
i(GL_DEPTH_ATTACHMENT)
661+
i(GL_FRAMEBUFFER)
662+
i(GL_FRAMEBUFFER_COMPLETE)
663+
i(GL_FRAMEBUFFER_SRGB)
664+
i(GL_SRGB_ALPHA)
665+
#endif
666+
658667
/*
659668
* Mesa 3D version 3.3 and 3.4 define GL_ALL_CLIENT_ATTRIB_BITS The
660669
* OpenGL Specification (1.1 and 1.2) defines this macro as well. Older

glut_const.h

+3
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@
188188
i(GLUT_ACTION_CONTINUE_EXECUTION)
189189
i(GLUT_ACTION_ON_WINDOW_CLOSE)
190190
i(GLUT_VERSION)
191+
i(GLUT_KEY_DELETE)
192+
i(GLUT_CORE_PROFILE)
193+
i(GLUT_DEBUG)
191194
#endif
192195
}
193196
else

0 commit comments

Comments
 (0)