|
kusano |
7d535a |
#!/bin/bash
|
|
kusano |
7d535a |
##
|
|
kusano |
7d535a |
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org=""></mmagallo[]debian>
|
|
kusano |
7d535a |
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee="" org=""></milan>
|
|
kusano |
7d535a |
##
|
|
kusano |
7d535a |
## This program is distributed under the terms and conditions of the GNU
|
|
kusano |
7d535a |
## General Public License Version 2 as published by the Free Software
|
|
kusano |
7d535a |
## Foundation or, at your option, any later version.
|
|
kusano |
7d535a |
##
|
|
kusano |
7d535a |
## Parameters:
|
|
kusano |
7d535a |
##
|
|
kusano |
7d535a |
## $1: Extensions directory
|
|
kusano |
7d535a |
## $2: Registry directory
|
|
kusano |
7d535a |
## $3: The black list
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
set -e
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if [ ! -d $1 ] ; then
|
|
kusano |
7d535a |
mkdir $1
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Parse each of the extensions in the registry
|
|
kusano |
7d535a |
find $2 -name doc -type d -prune -o -name \*.txt -print | \
|
|
kusano |
7d535a |
grep -v -f $3 | sort | bin/parse_spec.pl $1
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# fix GL_NV_texture_compression_vtc
|
|
kusano |
7d535a |
grep -v EXT $1/GL_NV_texture_compression_vtc > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_NV_texture_compression_vtc
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# remove duplicates from GL_ARB_vertex_program and GL_ARB_fragment_program
|
|
kusano |
7d535a |
grep -v -F -f $1/GL_ARB_vertex_program $1/GL_ARB_fragment_program > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_ARB_fragment_program
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# remove duplicates from GLX_EXT_visual_rating and GLX_EXT_visual_info
|
|
kusano |
7d535a |
grep -v -F -f $1/GLX_EXT_visual_info $1/GLX_EXT_visual_rating > tmp
|
|
kusano |
7d535a |
mv tmp $1/GLX_EXT_visual_rating
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# GL_EXT_draw_buffers2 and GL_EXT_transform_feedback both define glGetBooleanIndexedvEXT but with different parameter names
|
|
kusano |
7d535a |
grep -v glGetBooleanIndexedvEXT $1/GL_EXT_transform_feedback > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_EXT_transform_feedback
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# GL_EXT_draw_buffers2 and GL_EXT_transform_feedback both define glGetIntegerIndexedvEXT but with different parameter names
|
|
kusano |
7d535a |
grep -v glGetIntegerIndexedvEXT $1/GL_EXT_transform_feedback > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_EXT_transform_feedback
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# remove duplicates from GL_NV_video_capture and GLX_NV_video_capture
|
|
kusano |
7d535a |
grep -v glX $1/GL_NV_video_capture > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_NV_video_capture
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add missing functions to GL_NV_video_capture
|
|
kusano |
7d535a |
cat >> $1/GL_NV_video_capture <
|
|
kusano |
7d535a |
void glGetVideoCaptureStreamivNV (GLuint video_capture_slot, GLuint stream, GLenum pname, GLint* params)
|
|
kusano |
7d535a |
void glGetVideoCaptureStreamfvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat* params)
|
|
kusano |
7d535a |
void glGetVideoCaptureStreamdvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble* params)
|
|
kusano |
7d535a |
void glVideoCaptureStreamParameterivNV (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint* params)
|
|
kusano |
7d535a |
void glVideoCaptureStreamParameterfvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat* params)
|
|
kusano |
7d535a |
void glVideoCaptureStreamParameterdvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble* params)
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# fix WGL_NV_video_capture
|
|
kusano |
7d535a |
cat >> $1/WGL_NV_video_capture <
|
|
kusano |
7d535a |
DECLARE_HANDLE(HVIDEOINPUTDEVICENV);
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# fix GLX_NV_video_capture
|
|
kusano |
7d535a |
cat >> $1/GLX_NV_video_capture <
|
|
kusano |
7d535a |
typedef XID GLXVideoCaptureDeviceNV
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# remove duplicates from GL_NV_present_video and GLX_NV_present_video
|
|
kusano |
7d535a |
grep -v -F -f $1/GLX_NV_present_video $1/GL_NV_present_video > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_NV_present_video
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# fix WGL_NV_present_video
|
|
kusano |
7d535a |
cat >> $1/WGL_NV_present_video <
|
|
kusano |
7d535a |
DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV);
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# fix WGL_NV_video_output
|
|
kusano |
7d535a |
cat >> $1/WGL_NV_video_output <
|
|
kusano |
7d535a |
DECLARE_HANDLE(HPVIDEODEV);
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# fix GL_NV_occlusion_query and GL_HP_occlusion_test
|
|
kusano |
7d535a |
grep -v '_HP' $1/GL_NV_occlusion_query > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_NV_occlusion_query
|
|
kusano |
7d535a |
perl -e's/OCCLUSION_TEST_HP.*/OCCLUSION_TEST_HP 0x8165/' -pi \
|
|
kusano |
7d535a |
$1/GL_HP_occlusion_test
|
|
kusano |
7d535a |
perl -e's/OCCLUSION_TEST_RESULT_HP.*/OCCLUSION_TEST_RESULT_HP 0x8166/' -pi \
|
|
kusano |
7d535a |
$1/GL_HP_occlusion_test
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# fix GLvoid in GL_ARB_vertex_buffer_objects
|
|
kusano |
7d535a |
perl -e 's/ void\*/ GLvoid\*/g' -pi \
|
|
kusano |
7d535a |
$1/GL_ARB_vertex_buffer_object
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add deprecated constants to GL_ATI_fragment_shader
|
|
kusano |
7d535a |
cat >> $1/GL_ATI_fragment_shader <
|
|
kusano |
7d535a |
GL_NUM_FRAGMENT_REGISTERS_ATI 0x896E
|
|
kusano |
7d535a |
GL_NUM_FRAGMENT_CONSTANTS_ATI 0x896F
|
|
kusano |
7d535a |
GL_NUM_PASSES_ATI 0x8970
|
|
kusano |
7d535a |
GL_NUM_INSTRUCTIONS_PER_PASS_ATI 0x8971
|
|
kusano |
7d535a |
GL_NUM_INSTRUCTIONS_TOTAL_ATI 0x8972
|
|
kusano |
7d535a |
GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI 0x8973
|
|
kusano |
7d535a |
GL_NUM_LOOPBACK_COMPONENTS_ATI 0x8974
|
|
kusano |
7d535a |
GL_COLOR_ALPHA_PAIRING_ATI 0x8975
|
|
kusano |
7d535a |
GL_SWIZZLE_STRQ_ATI 0x897A
|
|
kusano |
7d535a |
GL_SWIZZLE_STRQ_DQ_ATI 0x897B
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add deprecated constants to GL_NV_texture_shader
|
|
kusano |
7d535a |
cat >> $1/GL_NV_texture_shader <
|
|
kusano |
7d535a |
GL_OFFSET_TEXTURE_2D_MATRIX_NV 0x86E1
|
|
kusano |
7d535a |
GL_OFFSET_TEXTURE_2D_BIAS_NV 0x86E3
|
|
kusano |
7d535a |
GL_OFFSET_TEXTURE_2D_SCALE_NV 0x86E2
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# fix WGL_ATI_pixel_format_float
|
|
kusano |
7d535a |
cat >> $1/WGL_ATI_pixel_format_float <
|
|
kusano |
7d535a |
GL_RGBA_FLOAT_MODE_ATI 0x8820
|
|
kusano |
7d535a |
GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# fix WGL_ARB_make_current_read
|
|
kusano |
7d535a |
cat >> $1/WGL_ARB_make_current_read <
|
|
kusano |
7d535a |
ERROR_INVALID_PIXEL_TYPE_ARB 0x2043
|
|
kusano |
7d535a |
ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# fix WGL_EXT_make_current_read
|
|
kusano |
7d535a |
cat >> $1/WGL_EXT_make_current_read <
|
|
kusano |
7d535a |
ERROR_INVALID_PIXEL_TYPE_EXT 0x2043
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add typedefs to GL_ARB_vertex_buffer_object; (from personal communication
|
|
kusano |
7d535a |
# with Marco Fabbricatore).
|
|
kusano |
7d535a |
#
|
|
kusano |
7d535a |
# Rationale. The spec says:
|
|
kusano |
7d535a |
#
|
|
kusano |
7d535a |
# "Both types are defined as signed integers large enough to contain
|
|
kusano |
7d535a |
# any pointer value [...] The idea of making these types unsigned was
|
|
kusano |
7d535a |
# considered, but was ultimately rejected ..."
|
|
kusano |
7d535a |
cat >> $1/GL_ARB_vertex_buffer_object <
|
|
kusano |
7d535a |
typedef ptrdiff_t GLsizeiptrARB
|
|
kusano |
7d535a |
typedef ptrdiff_t GLintptrARB
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add typedefs to GLX_EXT_import_context
|
|
kusano |
7d535a |
cat >> $1/GLX_EXT_import_context <
|
|
kusano |
7d535a |
typedef XID GLXContextID
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add tokens to GLX_OML_swap_method
|
|
kusano |
7d535a |
cat >> $1/GLX_OML_swap_method <
|
|
kusano |
7d535a |
GLX_SWAP_EXCHANGE_OML 0x8061
|
|
kusano |
7d535a |
GLX_SWAP_COPY_OML 0x8062
|
|
kusano |
7d535a |
GLX_SWAP_UNDEFINED_OML 0x8063
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add typedefs to GLX_SGIX_fbconfig
|
|
kusano |
7d535a |
cat >> $1/GLX_SGIX_fbconfig <
|
|
kusano |
7d535a |
typedef XID GLXFBConfigIDSGIX
|
|
kusano |
7d535a |
typedef struct __GLXFBConfigRec *GLXFBConfigSGIX
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add typedefs to GLX_SGIX_pbuffer
|
|
kusano |
7d535a |
cat >> $1/GLX_SGIX_pbuffer <
|
|
kusano |
7d535a |
typedef XID GLXPbufferSGIX
|
|
kusano |
7d535a |
typedef struct { int type; unsigned long serial; Bool send_event; Display *display; GLXDrawable drawable; int event_type; int draw_type; unsigned int mask; int x, y; int width, height; int count; } GLXBufferClobberEventSGIX
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add typedef to GL_NV_half_float
|
|
kusano |
7d535a |
cat >> $1/GL_NV_half_float <
|
|
kusano |
7d535a |
typedef unsigned short GLhalf
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add handle to WGL_ARB_pbuffer
|
|
kusano |
7d535a |
cat >> $1/WGL_ARB_pbuffer <
|
|
kusano |
7d535a |
DECLARE_HANDLE(HPBUFFERARB);
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add handle to WGL_EXT_pbuffer
|
|
kusano |
7d535a |
cat >> $1/WGL_EXT_pbuffer <
|
|
kusano |
7d535a |
DECLARE_HANDLE(HPBUFFEREXT);
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# get rid of GL_SUN_multi_draw_arrays
|
|
kusano |
7d535a |
rm -f $1/GL_SUN_multi_draw_arrays
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# change variable names in GL_ARB_vertex_shader
|
|
kusano |
7d535a |
perl -e 's/v0/x/g' -pi $1/GL_ARB_vertex_shader
|
|
kusano |
7d535a |
perl -e 's/v1/y/g' -pi $1/GL_ARB_vertex_shader
|
|
kusano |
7d535a |
perl -e 's/v2/z/g' -pi $1/GL_ARB_vertex_shader
|
|
kusano |
7d535a |
perl -e 's/v3/w/g' -pi $1/GL_ARB_vertex_shader
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# remove triplicates in GL_ARB_shader_objects, GL_ARB_fragment_shader,
|
|
kusano |
7d535a |
# and GL_ARB_vertex_shader
|
|
kusano |
7d535a |
grep -v -F -f $1/GL_ARB_shader_objects $1/GL_ARB_fragment_shader > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_ARB_fragment_shader
|
|
kusano |
7d535a |
grep -v -F -f $1/GL_ARB_shader_objects $1/GL_ARB_vertex_shader > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_ARB_vertex_shader
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# remove duplicates in GL_ARB_vertex_program and GL_ARB_vertex_shader
|
|
kusano |
7d535a |
grep -v -F -f $1/GL_ARB_vertex_program $1/GL_ARB_vertex_shader > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_ARB_vertex_shader
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# remove triplicates in GL_ARB_fragment_program, GL_ARB_fragment_shader,
|
|
kusano |
7d535a |
# and GL_ARB_vertex_shader
|
|
kusano |
7d535a |
grep -v -F -f $1/GL_ARB_fragment_program $1/GL_ARB_fragment_shader > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_ARB_fragment_shader
|
|
kusano |
7d535a |
grep -v -F -f $1/GL_ARB_fragment_program $1/GL_ARB_vertex_shader > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_ARB_vertex_shader
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# remove duplicates in GL_EXT_direct_state_access
|
|
kusano |
7d535a |
grep -v "glGetBooleanIndexedvEXT" $1/GL_EXT_direct_state_access > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_EXT_direct_state_access
|
|
kusano |
7d535a |
grep -v "glGetIntegerIndexedvEXT" $1/GL_EXT_direct_state_access > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_EXT_direct_state_access
|
|
kusano |
7d535a |
grep -v "glDisableIndexedEXT" $1/GL_EXT_direct_state_access > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_EXT_direct_state_access
|
|
kusano |
7d535a |
grep -v "glEnableIndexedEXT" $1/GL_EXT_direct_state_access > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_EXT_direct_state_access
|
|
kusano |
7d535a |
grep -v "glIsEnabledIndexedEXT" $1/GL_EXT_direct_state_access > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_EXT_direct_state_access
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# remove duplicates in GL_NV_explicit_multisample
|
|
kusano |
7d535a |
grep -v "glGetBooleanIndexedvEXT" $1/GL_NV_explicit_multisample > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_NV_explicit_multisample
|
|
kusano |
7d535a |
grep -v "glGetIntegerIndexedvEXT" $1/GL_NV_explicit_multisample > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_NV_explicit_multisample
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# fix bugs in GL_ARB_vertex_shader
|
|
kusano |
7d535a |
grep -v "GL_FLOAT" $1/GL_ARB_vertex_shader > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_ARB_vertex_shader
|
|
kusano |
7d535a |
perl -e 's/handle /GLhandleARB /g' -pi $1/GL_ARB_vertex_shader
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# fix bugs in GL_ARB_shader_objects
|
|
kusano |
7d535a |
grep -v "GL_FLOAT " $1/GL_ARB_shader_objects > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_ARB_shader_objects
|
|
kusano |
7d535a |
grep -v "GL_INT " $1/GL_ARB_shader_objects > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_ARB_shader_objects
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add typedefs to GL_ARB_shader_objects
|
|
kusano |
7d535a |
cat >> $1/GL_ARB_shader_objects <
|
|
kusano |
7d535a |
typedef char GLcharARB
|
|
kusano |
7d535a |
typedef unsigned int GLhandleARB
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add missing functions to GL_ARB_transpose_matrix
|
|
kusano |
7d535a |
cat >> $1/GL_ARB_transpose_matrix <
|
|
kusano |
7d535a |
void glLoadTransposeMatrixfARB (GLfloat m[16])
|
|
kusano |
7d535a |
void glLoadTransposeMatrixdARB (GLdouble m[16])
|
|
kusano |
7d535a |
void glMultTransposeMatrixfARB (GLfloat m[16])
|
|
kusano |
7d535a |
void glMultTransposeMatrixdARB (GLdouble m[16])
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add missing tokens to GL_EXT_framebuffer_multisample
|
|
kusano |
7d535a |
cat >> $1/GL_EXT_framebuffer_multisample <
|
|
kusano |
7d535a |
GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56
|
|
kusano |
7d535a |
GL_MAX_SAMPLES_EXT 0x8D57
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter out GL_NV_gpu_program_fp64 enums and functions
|
|
kusano |
7d535a |
head -n3 $1/GL_NV_gpu_program_fp64 > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_NV_gpu_program_fp64
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter glGetUniformui64vNV from GL_NV_shader_buffer_load
|
|
kusano |
7d535a |
grep -v "glGetUniformui64vNV" $1/GL_NV_shader_buffer_load > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_NV_shader_buffer_load
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter out profile enumerations from GLX_ARB_create_context
|
|
kusano |
7d535a |
grep -v "_PROFILE_" $1/GLX_ARB_create_context > tmp
|
|
kusano |
7d535a |
mv tmp $1/GLX_ARB_create_context
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter only profile related enumerations for GLX_ARB_create_context_profile
|
|
kusano |
7d535a |
head -n3 $1/GLX_ARB_create_context_profile > tmp
|
|
kusano |
7d535a |
grep "_PROFILE_" $1/GLX_ARB_create_context_profile >> tmp
|
|
kusano |
7d535a |
mv tmp $1/GLX_ARB_create_context_profile
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter out profile enumerations from WGL_ARB_create_context
|
|
kusano |
7d535a |
grep -v "_PROFILE_" $1/WGL_ARB_create_context > tmp
|
|
kusano |
7d535a |
mv tmp $1/WGL_ARB_create_context
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter only profile related enumerations for WGL_ARB_create_context_profile
|
|
kusano |
7d535a |
head -n3 $1/WGL_ARB_create_context_profile > tmp
|
|
kusano |
7d535a |
grep "_PROFILE_" $1/WGL_ARB_create_context_profile >> tmp
|
|
kusano |
7d535a |
mv tmp $1/WGL_ARB_create_context_profile
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add missing function to GLX_NV_copy_image
|
|
kusano |
7d535a |
cat >> $1/GLX_NV_copy_image <
|
|
kusano |
7d535a |
void glXCopyImageSubDataNV (Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth)
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add missing function to WGL_NV_copy_image
|
|
kusano |
7d535a |
cat >> $1/WGL_NV_copy_image <
|
|
kusano |
7d535a |
BOOL wglCopyImageSubDataNV (HGLRC hSrcRC, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, HGLRC hDstRC, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth)
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter glProgramParameteri from GL_ARB_separate_shader_objects
|
|
kusano |
7d535a |
# grep -v "glProgramParameteri" $1/GL_ARB_separate_shader_objects > tmp
|
|
kusano |
7d535a |
# mv tmp $1/GL_ARB_separate_shader_objects
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter out EXT functions from GL_ARB_viewport_array
|
|
kusano |
7d535a |
grep -v "EXT" $1/GL_ARB_viewport_array > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_ARB_viewport_array
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Additional enumerations for GL_NV_vertex_buffer_unified_memory
|
|
kusano |
7d535a |
# These are mentioned in GL_ARB_draw_indirect.txt
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cat >> $1/GL_NV_vertex_buffer_unified_memory <
|
|
kusano |
7d535a |
GL_DRAW_INDIRECT_UNIFIED_NV 0x8F40
|
|
kusano |
7d535a |
GL_DRAW_INDIRECT_ADDRESS_NV 0x8F41
|
|
kusano |
7d535a |
GL_DRAW_INDIRECT_LENGTH_NV 0x8F42
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter glGetPointerv from GL_ARB_debug_output
|
|
kusano |
7d535a |
# It's part of OpenGL 1.1, after all
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
grep -v "glGetPointerv" $1/GL_ARB_debug_output > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_ARB_debug_output
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter glGetPointerv from GL_EXT_vertex_array
|
|
kusano |
7d535a |
# It's part of OpenGL 1.1, after all
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
grep -v "glGetPointerv" $1/GL_EXT_vertex_array > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_EXT_vertex_array
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add typedef to GL_AMD_debug_output
|
|
kusano |
7d535a |
# parse_spec.pl can't parse typedefs from New Types section, but ought to
|
|
kusano |
7d535a |
cat >> $1/GL_AMD_debug_output <
|
|
kusano |
7d535a |
typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id, GLenum category, GLenum severity, GLsizei length, const GLchar* message, GLvoid* userParam)
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add typedef to GL_ARB_debug_output
|
|
kusano |
7d535a |
# parse_spec.pl can't parse typedefs from New Types section, but ought to
|
|
kusano |
7d535a |
cat >> $1/GL_ARB_debug_output <
|
|
kusano |
7d535a |
typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, GLvoid* userParam)
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add typedef to GL_KHR_debug
|
|
kusano |
7d535a |
# parse_spec.pl can't parse typedefs from New Types section, but ought to
|
|
kusano |
7d535a |
cat >> $1/GL_KHR_debug <
|
|
kusano |
7d535a |
typedef void (APIENTRY *GLDEBUGPROC)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, GLvoid* userParam)
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Remove GL_ARB_debug_group, GL_ARB_debug_label and GL_ARB_debug_output2, for now
|
|
kusano |
7d535a |
rm $1/GL_ARB_debug_group
|
|
kusano |
7d535a |
rm $1/GL_ARB_debug_label
|
|
kusano |
7d535a |
rm $1/GL_ARB_debug_output2
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add typedefs to GL_ARB_cl_event
|
|
kusano |
7d535a |
# parse_spec.pl can't parse typedefs from New Types section, but ought to
|
|
kusano |
7d535a |
cat >> $1/GL_ARB_cl_event <
|
|
kusano |
7d535a |
typedef struct _cl_context *cl_context
|
|
kusano |
7d535a |
typedef struct _cl_event *cl_event
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter out EXT functions from GL_ARB_gpu_shader_fp64
|
|
kusano |
7d535a |
grep -v 'EXT ' $1/GL_ARB_gpu_shader_fp64 > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_ARB_gpu_shader_fp64
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# add missing functions to GL_EXT_direct_state_access (GL_ARB_gpu_shader_fp64 related)
|
|
kusano |
7d535a |
cat >> $1/GL_EXT_direct_state_access <
|
|
kusano |
7d535a |
void glProgramUniform1dEXT (GLuint program, GLint location, GLdouble x)
|
|
kusano |
7d535a |
void glProgramUniform2dEXT (GLuint program, GLint location, GLdouble x, GLdouble y)
|
|
kusano |
7d535a |
void glProgramUniform3dEXT (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z)
|
|
kusano |
7d535a |
void glProgramUniform4dEXT (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
|
|
kusano |
7d535a |
void glProgramUniform1dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value)
|
|
kusano |
7d535a |
void glProgramUniform2dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value)
|
|
kusano |
7d535a |
void glProgramUniform3dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value)
|
|
kusano |
7d535a |
void glProgramUniform4dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value)
|
|
kusano |
7d535a |
void glProgramUniformMatrix2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
|
|
kusano |
7d535a |
void glProgramUniformMatrix3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
|
|
kusano |
7d535a |
void glProgramUniformMatrix4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
|
|
kusano |
7d535a |
void glProgramUniformMatrix2x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
|
|
kusano |
7d535a |
void glProgramUniformMatrix2x4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
|
|
kusano |
7d535a |
void glProgramUniformMatrix3x2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
|
|
kusano |
7d535a |
void glProgramUniformMatrix3x4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
|
|
kusano |
7d535a |
void glProgramUniformMatrix4x2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
|
|
kusano |
7d535a |
void glProgramUniformMatrix4x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
|
|
kusano |
7d535a |
EOT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter out GL_UNSIGNED_INT and GL_FLOAT from GL_AMD_performance_monitor
|
|
kusano |
7d535a |
grep -v 'GL_UNSIGNED_INT ' $1/GL_AMD_performance_monitor > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_AMD_performance_monitor
|
|
kusano |
7d535a |
grep -v 'GL_FLOAT ' $1/GL_AMD_performance_monitor > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_AMD_performance_monitor
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter out GL_STORAGE_CACHED_APPLE and GL_STORAGE_SHARED_APPLE from GL_APPLE_texture_range
|
|
kusano |
7d535a |
grep -v 'GL_STORAGE_CACHED_APPLE ' $1/GL_APPLE_texture_range > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_APPLE_texture_range
|
|
kusano |
7d535a |
grep -v 'GL_STORAGE_SHARED_APPLE ' $1/GL_APPLE_texture_range > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_APPLE_texture_range
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter out GL_RED from GL_ARB_texture_rg
|
|
kusano |
7d535a |
grep -v 'GL_RED ' $1/GL_ARB_texture_rg > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_ARB_texture_rg
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter out _EXT enums from GL_ARB_texture_storage
|
|
kusano |
7d535a |
grep -v '_EXT ' $1/GL_ARB_texture_storage > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_ARB_texture_storage
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter out TEXTURE_3D enums from GL_EXT_paletted_texture
|
|
kusano |
7d535a |
grep -v 'TEXTURE_3D' $1/GL_EXT_paletted_texture > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_EXT_paletted_texture
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter out GL_VERSION_1_1 enums from GL_AMD_stencil_operation_extended
|
|
kusano |
7d535a |
grep -v '0x150' $1/GL_AMD_stencil_operation_extended > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_AMD_stencil_operation_extended
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter out from GL_APPLE_ycbcr_422
|
|
kusano |
7d535a |
grep -v 'GL_UNSIGNED_SHORT_8_8_APPLE' $1/GL_APPLE_ycbcr_422 > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_APPLE_ycbcr_422
|
|
kusano |
7d535a |
grep -v 'GL_UNSIGNED_SHORT_8_8_REV_APPLE' $1/GL_APPLE_ycbcr_422 > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_APPLE_ycbcr_422
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter out GL_FRAGMENT_DEPTH_EXT from GL_EXT_light_texture
|
|
kusano |
7d535a |
grep -v 'GL_FRAGMENT_DEPTH_EXT' $1/GL_EXT_light_texture > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_EXT_light_texture
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter out GL_MULTISAMPLE_BIT_EXT from GL_SGIS_multisample
|
|
kusano |
7d535a |
grep -v 'GL_MULTISAMPLE_BIT_EXT' $1/GL_SGIS_multisample > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_SGIS_multisample
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter out GL_COMPRESSED_RGB_S3TC_DXT1_EXT from GL_EXT_texture_compression_dxt1
|
|
kusano |
7d535a |
grep -v 'GL_COMPRESSED_RGB_S3TC_DXT1_EXT' $1/GL_EXT_texture_compression_dxt1 > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_EXT_texture_compression_dxt1
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Filter out GL_COMPRESSED_RGBA_S3TC_DXT1_EXT from GL_EXT_texture_compression_dxt1
|
|
kusano |
7d535a |
grep -v 'GL_COMPRESSED_RGBA_S3TC_DXT1_EXT' $1/GL_EXT_texture_compression_dxt1 > tmp
|
|
kusano |
7d535a |
mv tmp $1/GL_EXT_texture_compression_dxt1
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# clean up
|
|
kusano |
7d535a |
rm -f $1/*.bak
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
fi
|