mirror of
https://github.com/nigels-com/glew.git
synced 2024-12-01 01:57:08 +00:00
Merge branch 'master' into subset
This commit is contained in:
commit
f7fd28cb28
@ -209,7 +209,7 @@ $(S.DEST)/glew.c: $(EXT)/.dummy
|
||||
cat $(SRC)/glew_init_wgl.c >> $@
|
||||
$(BIN)/make_list.pl $(WGL_EXT_SPEC) >> $@
|
||||
echo -e "\n return GLEW_OK;\n}" >> $@;
|
||||
echo -e "\n#elif !defined(__ANDROID__) && !defined(__native_client__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))" >> $@
|
||||
echo -e "\n#elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))" >> $@
|
||||
$(BIN)/make_def_fun.pl GLX $(GLX_CORE_SPEC) >> $@
|
||||
$(BIN)/make_def_fun.pl GLX $(GLX_EXT_SPEC) >> $@
|
||||
echo -e "\n#if !defined(GLEW_MX)" >> $@;
|
||||
@ -224,7 +224,7 @@ $(S.DEST)/glew.c: $(EXT)/.dummy
|
||||
$(BIN)/make_list.pl $(CORE)/GLX_VERSION_1_3 | grep -v '\"GLX_VERSION' >> $@
|
||||
$(BIN)/make_list.pl $(GLX_EXT_SPEC) >> $@
|
||||
echo -e "\n return GLEW_OK;\n}" >> $@
|
||||
echo -e "\n#endif /* !defined(__ANDROID__) && !defined(__native_client__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX)) */\n" >> $@;
|
||||
echo -e "\n#endif /* !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX)) */\n" >> $@;
|
||||
cat $(SRC)/glew_init_tail.c >> $@
|
||||
cat $(SRC)/glew_str_head.c >> $@
|
||||
$(BIN)/make_str.pl $(GL_CORE_SPEC) $(GL_EXT_SPEC) >> $@
|
||||
|
@ -79,10 +79,6 @@ EOT
|
||||
perl -e's/OCCLUSION_TEST_RESULT_HP.*/OCCLUSION_TEST_RESULT_HP 0x8166/' -pi \
|
||||
$1/GL_HP_occlusion_test
|
||||
|
||||
# fix GLvoid in GL_ARB_vertex_buffer_objects
|
||||
perl -e 's/ void\*/ GLvoid\*/g' -pi \
|
||||
$1/GL_ARB_vertex_buffer_object
|
||||
|
||||
# add deprecated constants to GL_ATI_fragment_shader
|
||||
cat >> $1/GL_ATI_fragment_shader <<EOT
|
||||
GL_NUM_FRAGMENT_REGISTERS_ATI 0x896E
|
||||
@ -317,19 +313,19 @@ EOT
|
||||
# add typedef to GL_AMD_debug_output
|
||||
# parse_spec.pl can't parse typedefs from New Types section, but ought to
|
||||
cat >> $1/GL_AMD_debug_output <<EOT
|
||||
typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id, GLenum category, GLenum severity, GLsizei length, const GLchar* message, GLvoid* userParam)
|
||||
typedef void (GLAPIENTRY *GLDEBUGPROCAMD)(GLuint id, GLenum category, GLenum severity, GLsizei length, const GLchar* message, void* userParam)
|
||||
EOT
|
||||
|
||||
# add typedef to GL_ARB_debug_output
|
||||
# parse_spec.pl can't parse typedefs from New Types section, but ought to
|
||||
cat >> $1/GL_ARB_debug_output <<EOT
|
||||
typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, GLvoid* userParam)
|
||||
typedef void (GLAPIENTRY *GLDEBUGPROCARB)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam)
|
||||
EOT
|
||||
|
||||
# add typedef to GL_KHR_debug
|
||||
# parse_spec.pl can't parse typedefs from New Types section, but ought to
|
||||
cat >> $1/GL_KHR_debug <<EOT
|
||||
typedef void (APIENTRY *GLDEBUGPROC)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, GLvoid* userParam)
|
||||
typedef void (GLAPIENTRY *GLDEBUGPROC)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam)
|
||||
EOT
|
||||
|
||||
# Remove glGetPointerv from GL_KHR_debug
|
||||
@ -373,6 +369,12 @@ EOT
|
||||
void glProgramUniformMatrix4x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
|
||||
EOT
|
||||
|
||||
# add missing functions to GL_EXT_direct_state_access (GL_ARB_instanced_arrays related)
|
||||
# https://sourceforge.net/p/glew/bugs/242/
|
||||
cat >> $1/GL_EXT_direct_state_access <<EOT
|
||||
void glVertexArrayVertexAttribDivisorEXT (GLuint vaobj, GLuint index, GLuint divisor)
|
||||
EOT
|
||||
|
||||
# Filter out GL_UNSIGNED_INT and GL_FLOAT from GL_AMD_performance_monitor
|
||||
grep -v 'GL_UNSIGNED_INT ' $1/GL_AMD_performance_monitor > tmp
|
||||
mv tmp $1/GL_AMD_performance_monitor
|
||||
@ -441,7 +443,7 @@ EOT
|
||||
# Probably ought to be explicitly mentioned in the spec language
|
||||
|
||||
cat >> $1/GL_REGAL_log <<EOT
|
||||
typedef void (APIENTRY *LOGPROCREGAL)(GLenum stream, GLsizei length, const GLchar *message, GLvoid *context)
|
||||
typedef void (APIENTRY *LOGPROCREGAL)(GLenum stream, GLsizei length, const GLchar *message, void *context)
|
||||
EOT
|
||||
|
||||
# Fixup LOGPROCREGAL -> GLLOGPROCREGAL
|
||||
|
@ -237,10 +237,12 @@ sub parse_spec($)
|
||||
{
|
||||
# apply typemaps
|
||||
$return =~ s/$regex{types}/$typemap{$1}/og;
|
||||
$return =~ s/void\*/GLvoid */og;
|
||||
$return =~ s/GLvoid/void/og;
|
||||
$return =~ s/void\*/void */og;
|
||||
$parms =~ s/$regex{types}/$typemap{$1}/og;
|
||||
$parms =~ s/$regex{voidtype}/$voidtypemap{$1}/og;
|
||||
$parms =~ s/ void\* / GLvoid */og;
|
||||
$parms =~ s/GLvoid/void/og;
|
||||
$parms =~ s/ void\* / void */og;
|
||||
}
|
||||
# add to functions hash
|
||||
$functions{$name} = {
|
||||
|
@ -7,6 +7,6 @@ GL_APPLE_texture_range
|
||||
GL_STORAGE_SHARED_APPLE 0x85BF
|
||||
GL_TEXTURE_RANGE_LENGTH_APPLE 0x85B7
|
||||
GL_TEXTURE_RANGE_POINTER_APPLE 0x85B8
|
||||
void glTextureRangeAPPLE (GLenum target, GLsizei length, GLvoid *pointer)
|
||||
void glGetTexParameterPointervAPPLE (GLenum target, GLenum pname, GLvoid **params)
|
||||
void glTextureRangeAPPLE (GLenum target, GLsizei length, void *pointer)
|
||||
void glGetTexParameterPointervAPPLE (GLenum target, GLenum pname, void **params)
|
||||
|
||||
|
@ -78,35 +78,35 @@ GL_ARB_imaging
|
||||
GL_WRAP_BORDER 0x8152
|
||||
GL_REPLICATE_BORDER 0x8153
|
||||
GL_CONVOLUTION_BORDER_COLOR 0x8154
|
||||
void glColorTable (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table)
|
||||
void glColorSubTable (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data)
|
||||
void glColorTable (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table)
|
||||
void glColorSubTable (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data)
|
||||
void glColorTableParameteriv (GLenum target, GLenum pname, const GLint *params)
|
||||
void glColorTableParameterfv (GLenum target, GLenum pname, const GLfloat *params)
|
||||
void glCopyColorSubTable (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width)
|
||||
void glCopyColorTable (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width)
|
||||
void glGetColorTable (GLenum target, GLenum format, GLenum type, GLvoid *table)
|
||||
void glGetColorTable (GLenum target, GLenum format, GLenum type, void *table)
|
||||
void glGetColorTableParameterfv (GLenum target, GLenum pname, GLfloat *params)
|
||||
void glGetColorTableParameteriv (GLenum target, GLenum pname, GLint *params)
|
||||
void glHistogram (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink)
|
||||
void glResetHistogram (GLenum target)
|
||||
void glGetHistogram (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values)
|
||||
void glGetHistogram (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values)
|
||||
void glGetHistogramParameterfv (GLenum target, GLenum pname, GLfloat *params)
|
||||
void glGetHistogramParameteriv (GLenum target, GLenum pname, GLint *params)
|
||||
void glMinmax (GLenum target, GLenum internalformat, GLboolean sink)
|
||||
void glResetMinmax (GLenum target)
|
||||
void glGetMinmaxParameterfv (GLenum target, GLenum pname, GLfloat *params)
|
||||
void glGetMinmaxParameteriv (GLenum target, GLenum pname, GLint *params)
|
||||
void glConvolutionFilter1D (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image)
|
||||
void glConvolutionFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image)
|
||||
void glConvolutionFilter1D (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image)
|
||||
void glConvolutionFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image)
|
||||
void glConvolutionParameterf (GLenum target, GLenum pname, GLfloat params)
|
||||
void glConvolutionParameterfv (GLenum target, GLenum pname, const GLfloat *params)
|
||||
void glConvolutionParameteri (GLenum target, GLenum pname, GLint params)
|
||||
void glConvolutionParameteriv (GLenum target, GLenum pname, const GLint *params)
|
||||
void glCopyConvolutionFilter1D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width)
|
||||
void glCopyConvolutionFilter2D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height)
|
||||
void glGetConvolutionFilter (GLenum target, GLenum format, GLenum type, GLvoid *image)
|
||||
void glGetConvolutionFilter (GLenum target, GLenum format, GLenum type, void *image)
|
||||
void glGetConvolutionParameterfv (GLenum target, GLenum pname, GLfloat *params)
|
||||
void glGetConvolutionParameteriv (GLenum target, GLenum pname, GLint *params)
|
||||
void glSeparableFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column)
|
||||
void glGetSeparableFilter (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span)
|
||||
void glGetMinmax (GLenum target, GLboolean reset, GLenum format, GLenum types, GLvoid *values)
|
||||
void glSeparableFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column)
|
||||
void glGetSeparableFilter (GLenum target, GLenum format, GLenum type, void *row, void *column, void *span)
|
||||
void glGetMinmax (GLenum target, GLboolean reset, GLenum format, GLenum types, void *values)
|
||||
|
@ -12,7 +12,7 @@ GL_ARB_matrix_palette
|
||||
GL_MATRIX_INDEX_ARRAY_STRIDE_ARB 0x8848
|
||||
GL_MATRIX_INDEX_ARRAY_POINTER_ARB 0x8849
|
||||
void glCurrentPaletteMatrixARB (GLint index)
|
||||
void glMatrixIndexPointerARB (GLint size, GLenum type, GLsizei stride, GLvoid *pointer)
|
||||
void glMatrixIndexPointerARB (GLint size, GLenum type, GLsizei stride, void *pointer)
|
||||
void glMatrixIndexubvARB (GLint size, GLubyte *indices)
|
||||
void glMatrixIndexusvARB (GLint size, GLushort *indices)
|
||||
void glMatrixIndexuivARB (GLint size, GLuint *indices)
|
||||
|
@ -21,7 +21,7 @@ GL_ARB_robustness
|
||||
void glGetnPixelMapuivARB (GLenum map, GLsizei bufSize, GLuint* values)
|
||||
void glGetnPixelMapusvARB (GLenum map, GLsizei bufSize, GLushort* values)
|
||||
void glGetnPolygonStippleARB (GLsizei bufSize, GLubyte* pattern)
|
||||
void glGetnSeparableFilterARB (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void* row, GLsizei columnBufSize, GLvoid*column, GLvoid*span)
|
||||
void glGetnSeparableFilterARB (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void* row, GLsizei columnBufSize, void*column, void*span)
|
||||
void glGetnTexImageARB (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void* img)
|
||||
void glGetnUniformdvARB (GLuint program, GLint location, GLsizei bufSize, GLdouble* params)
|
||||
void glGetnUniformfvARB (GLuint program, GLint location, GLsizei bufSize, GLfloat* params)
|
||||
|
@ -12,7 +12,7 @@ GL_ARB_separate_shader_objects
|
||||
GL_ALL_SHADER_BITS 0xFFFFFFFF
|
||||
void glActiveShaderProgram (GLuint pipeline, GLuint program)
|
||||
void glBindProgramPipeline (GLuint pipeline)
|
||||
GLuint glCreateShaderProgramv (GLenum type, GLsizei count, const GLchar ** strings)
|
||||
GLuint glCreateShaderProgramv (GLenum type, GLsizei count, const GLchar * const * strings)
|
||||
void glDeleteProgramPipelines (GLsizei n, const GLuint* pipelines)
|
||||
void glGenProgramPipelines (GLsizei n, GLuint* pipelines)
|
||||
void glGetProgramPipelineInfoLog (GLuint pipeline, GLsizei bufSize, GLsizei* length, GLchar *infoLog)
|
||||
|
@ -51,5 +51,5 @@ GL_ARB_vertex_blend
|
||||
void glWeightubvARB (GLint size, GLubyte *weights)
|
||||
void glWeightusvARB (GLint size, GLushort *weights)
|
||||
void glWeightuivARB (GLint size, GLuint *weights)
|
||||
void glWeightPointerARB (GLint size, GLenum type, GLsizei stride, GLvoid *pointer)
|
||||
void glWeightPointerARB (GLint size, GLenum type, GLsizei stride, void *pointer)
|
||||
void glVertexBlendARB (GLint count)
|
||||
|
@ -1,5 +1,5 @@
|
||||
GL_ATI_map_object_buffer
|
||||
http://www.opengl.org/registry/specs/ATI/map_object_buffer.txt
|
||||
GL_ATI_map_object_buffer
|
||||
GLvoid * glMapObjectBufferATI (GLuint buffer)
|
||||
void * glMapObjectBufferATI (GLuint buffer)
|
||||
void glUnmapObjectBufferATI (GLuint buffer)
|
||||
|
@ -2,4 +2,4 @@ GL_EXT_draw_instanced
|
||||
http://developer.download.nvidia.com/opengl/specs/GL_EXT_draw_instanced.txt
|
||||
GL_EXT_draw_instanced
|
||||
void glDrawArraysInstancedEXT (GLenum mode, GLint start, GLsizei count, GLsizei primcount)
|
||||
void glDrawElementsInstancedEXT (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount)
|
||||
void glDrawElementsInstancedEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount)
|
||||
|
@ -3,4 +3,4 @@ http://oss.sgi.com/projects/ogl-sample/registry/EXT/draw_range_elements.txt
|
||||
GL_EXT_draw_range_elements
|
||||
GL_MAX_ELEMENTS_VERTICES_EXT 0x80E8
|
||||
GL_MAX_ELEMENTS_INDICES_EXT 0x80E9
|
||||
void glDrawRangeElementsEXT (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices)
|
||||
void glDrawRangeElementsEXT (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices)
|
||||
|
@ -13,4 +13,4 @@ GL_EXT_fog_coord
|
||||
void glFogCoordfvEXT (const GLfloat *coord)
|
||||
void glFogCoorddEXT (GLdouble coord)
|
||||
void glFogCoorddvEXT (const GLdouble *coord)
|
||||
void glFogCoordPointerEXT (GLenum type, GLsizei stride, const GLvoid *pointer)
|
||||
void glFogCoordPointerEXT (GLenum type, GLsizei stride, const void *pointer)
|
||||
|
@ -58,6 +58,6 @@ GL_EXT_gpu_shader4
|
||||
void glVertexAttribI4svEXT (GLuint index, const GLshort *v)
|
||||
void glVertexAttribI4ubvEXT (GLuint index, const GLubyte *v)
|
||||
void glVertexAttribI4usvEXT (GLuint index, const GLushort *v)
|
||||
void glVertexAttribIPointerEXT (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
|
||||
void glVertexAttribIPointerEXT (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer)
|
||||
void glGetVertexAttribIivEXT (GLuint index, GLenum pname, GLint *params)
|
||||
void glGetVertexAttribIuivEXT (GLuint index, GLenum pname, GLuint *params)
|
||||
|
@ -24,4 +24,4 @@ GL_EXT_secondary_color
|
||||
void glSecondaryColor3uivEXT (const GLuint *v)
|
||||
void glSecondaryColor3usEXT (GLushort red, GLushort green, GLushort blue)
|
||||
void glSecondaryColor3usvEXT (const GLushort *v)
|
||||
void glSecondaryColorPointerEXT (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
|
||||
void glSecondaryColorPointerEXT (GLint size, GLenum type, GLsizei stride, const void *pointer)
|
||||
|
@ -125,8 +125,8 @@ GL_EXT_vertex_shader
|
||||
void glInsertComponentEXT (GLuint res, GLuint src, GLuint num)
|
||||
void glExtractComponentEXT (GLuint res, GLuint src, GLuint num)
|
||||
GLuint glGenSymbolsEXT (GLenum dataType, GLenum storageType, GLenum range, GLuint components)
|
||||
void glSetInvariantEXT (GLuint id, GLenum type, GLvoid *addr)
|
||||
void glSetLocalConstantEXT (GLuint id, GLenum type, GLvoid *addr)
|
||||
void glSetInvariantEXT (GLuint id, GLenum type, void *addr)
|
||||
void glSetLocalConstantEXT (GLuint id, GLenum type, void *addr)
|
||||
void glVariantbvEXT (GLuint id, GLbyte *addr)
|
||||
void glVariantsvEXT (GLuint id, GLshort *addr)
|
||||
void glVariantivEXT (GLuint id, GLint *addr)
|
||||
@ -135,7 +135,7 @@ GL_EXT_vertex_shader
|
||||
void glVariantubvEXT (GLuint id, GLubyte *addr)
|
||||
void glVariantusvEXT (GLuint id, GLushort *addr)
|
||||
void glVariantuivEXT (GLuint id, GLuint *addr)
|
||||
void glVariantPointerEXT (GLuint id, GLenum type, GLuint stride, GLvoid *addr)
|
||||
void glVariantPointerEXT (GLuint id, GLenum type, GLuint stride, void *addr)
|
||||
void glEnableVariantClientStateEXT (GLuint id)
|
||||
void glDisableVariantClientStateEXT (GLuint id)
|
||||
GLuint glBindLightParameterEXT (GLenum light, GLenum value)
|
||||
@ -147,7 +147,7 @@ GL_EXT_vertex_shader
|
||||
void glGetVariantBooleanvEXT (GLuint id, GLenum value, GLboolean *data)
|
||||
void glGetVariantIntegervEXT (GLuint id, GLenum value, GLint *data)
|
||||
void glGetVariantFloatvEXT (GLuint id, GLenum value, GLfloat *data)
|
||||
void glGetVariantPointervEXT (GLuint id, GLenum value, GLvoid **data)
|
||||
void glGetVariantPointervEXT (GLuint id, GLenum value, void **data)
|
||||
void glGetInvariantBooleanvEXT (GLuint id, GLenum value, GLboolean *data)
|
||||
void glGetInvariantIntegervEXT (GLuint id, GLenum value, GLint *data)
|
||||
void glGetInvariantFloatvEXT (GLuint id, GLenum value, GLfloat *data)
|
||||
|
@ -154,13 +154,13 @@ GL_NV_path_rendering
|
||||
GLboolean glIsPointInFillPathNV (GLuint path, GLuint mask, GLfloat x, GLfloat y)
|
||||
GLboolean glIsPointInStrokePathNV (GLuint path, GLfloat x, GLfloat y)
|
||||
void glPathColorGenNV (GLenum color, GLenum genMode, GLenum colorFormat, const GLfloat* coeffs)
|
||||
void glPathCommandsNV (GLuint path, GLsizei numCommands, const GLubyte* commands, GLsizei numCoords, GLenum coordType, const GLvoid*coords)
|
||||
void glPathCommandsNV (GLuint path, GLsizei numCommands, const GLubyte* commands, GLsizei numCoords, GLenum coordType, const void*coords)
|
||||
void glPathCoordsNV (GLuint path, GLsizei numCoords, GLenum coordType, const void* coords)
|
||||
void glPathCoverDepthFuncNV (GLenum zfunc)
|
||||
void glPathDashArrayNV (GLuint path, GLsizei dashCount, const GLfloat* dashArray)
|
||||
void glPathFogGenNV (GLenum genMode)
|
||||
void glPathGlyphRangeNV (GLuint firstPathName, GLenum fontTarget, const void* fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale)
|
||||
void glPathGlyphsNV (GLuint firstPathName, GLenum fontTarget, const void* fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const GLvoid*charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale)
|
||||
void glPathGlyphsNV (GLuint firstPathName, GLenum fontTarget, const void* fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void*charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale)
|
||||
void glPathParameterfNV (GLuint path, GLenum pname, GLfloat value)
|
||||
void glPathParameterfvNV (GLuint path, GLenum pname, const GLfloat* value)
|
||||
void glPathParameteriNV (GLuint path, GLenum pname, GLint value)
|
||||
@ -168,7 +168,7 @@ GL_NV_path_rendering
|
||||
void glPathStencilDepthOffsetNV (GLfloat factor, GLfloat units)
|
||||
void glPathStencilFuncNV (GLenum func, GLint ref, GLuint mask)
|
||||
void glPathStringNV (GLuint path, GLenum format, GLsizei length, const void* pathString)
|
||||
void glPathSubCommandsNV (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte* commands, GLsizei numCoords, GLenum coordType, const GLvoid*coords)
|
||||
void glPathSubCommandsNV (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte* commands, GLsizei numCoords, GLenum coordType, const void*coords)
|
||||
void glPathSubCoordsNV (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void* coords)
|
||||
void glPathTexGenNV (GLenum texCoordSet, GLenum genMode, GLint components, const GLfloat* coeffs)
|
||||
GLboolean glPointAlongPathNV (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat* x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY)
|
||||
|
@ -7,7 +7,7 @@ GL_NV_vdpau_interop
|
||||
GL_WRITE_DISCARD_NV 0x88BE
|
||||
void glVDPAUFiniNV (void)
|
||||
void glVDPAUGetSurfaceivNV (GLvdpauSurfaceNV surface, GLenum pname, GLsizei bufSize, GLsizei* length, GLint *values)
|
||||
void glVDPAUInitNV (const void* vdpDevice, const GLvoid*getProcAddress)
|
||||
void glVDPAUInitNV (const void* vdpDevice, const void*getProcAddress)
|
||||
void glVDPAUIsSurfaceNV (GLvdpauSurfaceNV surface)
|
||||
void glVDPAUMapSurfacesNV (GLsizei numSurfaces, const GLvdpauSurfaceNV* surfaces)
|
||||
GLvdpauSurfaceNV glVDPAURegisterOutputSurfaceNV (const void* vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames)
|
||||
|
@ -1,4 +1,4 @@
|
||||
GL_SUN_read_video_pixels
|
||||
http://wwws.sun.com/software/graphics/opengl/extensions/gl_sun_read_video_pixels.txt
|
||||
GL_SUN_read_video_pixels
|
||||
void glReadVideoPixelsSUN (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels)
|
||||
void glReadVideoPixelsSUN (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void* pixels)
|
||||
|
@ -43,7 +43,7 @@ http://www.opengl.org/documentation/specs/version1.2/opengl1.2.1.pdf
|
||||
GL_TEXTURE_BINDING_3D 0x806A
|
||||
GL_MAX_ELEMENTS_VERTICES 0x80E8
|
||||
GL_MAX_ELEMENTS_INDICES 0x80E9
|
||||
void glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices)
|
||||
void glTexImage3D (GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
|
||||
void glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels)
|
||||
void glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices)
|
||||
void glTexImage3D (GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels)
|
||||
void glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels)
|
||||
void glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
|
||||
|
@ -100,13 +100,13 @@ http://www.opengl.org/documentation/specs/version1.3/glspec13.pdf
|
||||
|
||||
void glActiveTexture (GLenum texture)
|
||||
void glClientActiveTexture (GLenum texture)
|
||||
void glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data)
|
||||
void glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data)
|
||||
void glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data)
|
||||
void glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data)
|
||||
void glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data)
|
||||
void glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data)
|
||||
void glGetCompressedTexImage (GLenum target, GLint lod, GLvoid *img)
|
||||
void glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data)
|
||||
void glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data)
|
||||
void glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data)
|
||||
void glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data)
|
||||
void glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data)
|
||||
void glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data)
|
||||
void glGetCompressedTexImage (GLenum target, GLint lod, void *img)
|
||||
void glLoadTransposeMatrixd (const GLdouble m[16])
|
||||
void glLoadTransposeMatrixf (const GLfloat m[16])
|
||||
void glMultTransposeMatrixd (const GLdouble m[16])
|
||||
|
@ -46,9 +46,9 @@ http://www.opengl.org/documentation/specs/version1.4/glspec14.pdf
|
||||
void glFogCoordfv (const GLfloat *coord)
|
||||
void glFogCoordd (GLdouble coord)
|
||||
void glFogCoorddv (const GLdouble *coord)
|
||||
void glFogCoordPointer (GLenum type, GLsizei stride, const GLvoid *pointer)
|
||||
void glFogCoordPointer (GLenum type, GLsizei stride, const void *pointer)
|
||||
void glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount)
|
||||
void glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const GLvoid **indices, GLsizei drawcount)
|
||||
void glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const void *const* indices, GLsizei drawcount)
|
||||
void glPointParameteri (GLenum pname, GLint param)
|
||||
void glPointParameteriv (GLenum pname, const GLint *params)
|
||||
void glPointParameterf (GLenum pname, GLfloat param)
|
||||
@ -69,7 +69,7 @@ http://www.opengl.org/documentation/specs/version1.4/glspec14.pdf
|
||||
void glSecondaryColor3uiv (const GLuint *v)
|
||||
void glSecondaryColor3us (GLushort red, GLushort green, GLushort blue)
|
||||
void glSecondaryColor3usv (const GLushort *v)
|
||||
void glSecondaryColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
|
||||
void glSecondaryColorPointer (GLint size, GLenum type, GLsizei stride, const void *pointer)
|
||||
void glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)
|
||||
void glWindowPos2d (GLdouble x, GLdouble y)
|
||||
void glWindowPos2f (GLfloat x, GLfloat y)
|
||||
|
@ -63,12 +63,12 @@ http://www.opengl.org/documentation/specs/version1.5/glspec15.pdf
|
||||
void glDeleteBuffers (GLsizei n, const GLuint* buffers)
|
||||
void glGenBuffers (GLsizei n, GLuint* buffers)
|
||||
GLboolean glIsBuffer (GLuint buffer)
|
||||
void glBufferData (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage)
|
||||
void glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data)
|
||||
void glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data)
|
||||
GLvoid* glMapBuffer (GLenum target, GLenum access)
|
||||
void glBufferData (GLenum target, GLsizeiptr size, const void* data, GLenum usage)
|
||||
void glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void* data)
|
||||
void glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, void* data)
|
||||
void* glMapBuffer (GLenum target, GLenum access)
|
||||
GLboolean glUnmapBuffer (GLenum target)
|
||||
void glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params)
|
||||
void glGetBufferPointerv (GLenum target, GLenum pname, GLvoid** params)
|
||||
void glGetBufferPointerv (GLenum target, GLenum pname, void** params)
|
||||
typedef ptrdiff_t GLsizeiptr
|
||||
typedef ptrdiff_t GLintptr
|
||||
|
@ -108,14 +108,14 @@ http://www.opengl.org/documentation/specs/version2.0/glspec20.pdf
|
||||
void glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog)
|
||||
void glGetShaderiv (GLuint shader, GLenum pname, GLint* param)
|
||||
void glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog)
|
||||
void glShaderSource (GLuint shader, GLsizei count, const GLchar** strings, const GLint* lengths)
|
||||
void glShaderSource (GLuint shader, GLsizei count, const GLchar *const* string, const GLint* length)
|
||||
GLint glGetUniformLocation (GLuint program, const GLchar* name)
|
||||
void glGetUniformfv (GLuint program, GLint location, GLfloat* params)
|
||||
void glGetUniformiv (GLuint program, GLint location, GLint* params)
|
||||
void glGetVertexAttribdv (GLuint, GLenum, GLdouble*)
|
||||
void glGetVertexAttribfv (GLuint, GLenum, GLfloat*)
|
||||
void glGetVertexAttribiv (GLuint, GLenum, GLint*)
|
||||
void glGetVertexAttribPointerv (GLuint, GLenum, GLvoid**)
|
||||
void glGetVertexAttribPointerv (GLuint, GLenum, void**)
|
||||
GLboolean glIsProgram (GLuint program)
|
||||
GLboolean glIsShader (GLuint shader)
|
||||
void glLinkProgram (GLuint program)
|
||||
@ -177,4 +177,4 @@ http://www.opengl.org/documentation/specs/version2.0/glspec20.pdf
|
||||
void glVertexAttrib4ubv (GLuint index, const GLubyte* v)
|
||||
void glVertexAttrib4uiv (GLuint index, const GLuint* v)
|
||||
void glVertexAttrib4usv (GLuint index, const GLushort* v)
|
||||
void glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* pointer)
|
||||
void glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* pointer)
|
||||
|
@ -113,7 +113,7 @@ http://www.opengl.org/registry/doc/glspec30.20080811.pdf
|
||||
GLboolean glIsEnabledi (GLenum, GLuint)
|
||||
void glBeginTransformFeedback (GLenum)
|
||||
void glEndTransformFeedback (void)
|
||||
void glTransformFeedbackVaryings (GLuint, GLsizei, const GLchar **, GLenum)
|
||||
void glTransformFeedbackVaryings (GLuint, GLsizei, const GLchar *const*, GLenum)
|
||||
void glGetTransformFeedbackVarying (GLuint, GLuint, GLsizei, GLsizei *, GLsizei *, GLenum *, GLchar *)
|
||||
void glClampColor (GLenum, GLenum)
|
||||
void glBeginConditionalRender (GLuint, GLenum)
|
||||
@ -138,7 +138,7 @@ http://www.opengl.org/registry/doc/glspec30.20080811.pdf
|
||||
void glVertexAttribI4sv (GLuint, const GLshort*)
|
||||
void glVertexAttribI4ubv (GLuint, const GLubyte*)
|
||||
void glVertexAttribI4usv (GLuint, const GLushort*)
|
||||
void glVertexAttribIPointer (GLuint, GLint, GLenum, GLsizei, const GLvoid*)
|
||||
void glVertexAttribIPointer (GLuint, GLint, GLenum, GLsizei, const void*)
|
||||
void glGetVertexAttribIiv (GLuint, GLenum, GLint*)
|
||||
void glGetVertexAttribIuiv (GLuint, GLenum, GLuint*)
|
||||
void glGetUniformuiv (GLuint, GLint, GLuint*)
|
||||
|
@ -36,6 +36,6 @@ http://www.opengl.org/registry/doc/glspec30.20080811.pdf
|
||||
GL_BUFFER_MAP_LENGTH 0x9120
|
||||
GL_BUFFER_MAP_OFFSET 0x9121
|
||||
void glDrawArraysInstanced (GLenum, GLint, GLsizei, GLsizei)
|
||||
void glDrawElementsInstanced (GLenum, GLsizei, GLenum, const GLvoid*, GLsizei)
|
||||
void glDrawElementsInstanced (GLenum, GLsizei, GLenum, const void*, GLsizei)
|
||||
void glTexBuffer (GLenum, GLenum, GLuint)
|
||||
void glPrimitiveRestartIndex (GLuint)
|
||||
|
@ -44,4 +44,5 @@
|
||||
<li>gcc compiler</li>
|
||||
</ul>
|
||||
|
||||
Ubuntu: <pre>sudo apt-get install Xmu-dev Xi-Dev</pre>
|
||||
Ubuntu: <pre>sudo apt-get install libXmu-dev libXi-dev libgl-dev dos2unix</pre>
|
||||
Fedora: <pre>sudo yum install libXmu-devel libXi-devel libGL-devel dos2unix</pre>
|
||||
|
@ -60,8 +60,9 @@ An up-to-date copy is also available using <a href="http://git-scm.com/">git</a>
|
||||
<a href="https://sourceforge.net/projects/glew/files/glew/snapshots/">Unsupported snapshots</a> are also available:
|
||||
</p>
|
||||
<ul>
|
||||
<li><a href="http://sourceforge.net/projects/glew/files/glew/snapshots/glew-20140110.tgz/download">glew-20140110.tgz</a></li>
|
||||
<li><a href="http://sourceforge.net/projects/glew/files/glew/snapshots/glew-20131216.tgz/download">glew-20131216.tgz</a></li>
|
||||
<li><a href="http://sourceforge.net/projects/glew/files/glew/snapshots/glew-20130715.tgz/download">glew-20130715.tgz</a></li>
|
||||
<li><a href="http://sourceforge.net/projects/glew/files/glew/snapshots/glew-20130118.tgz/download">glew-20130118.tgz</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Supported Extensions</h2>
|
||||
|
@ -56,7 +56,81 @@ BEGIN
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "Comments", "The OpenGL Extension Wrangler Library\r\nCopyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>\r\nCopyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>\r\nCopyright (C) 2002, Lev Povalahev\r\nAll rights reserved.\r\n\r\nRedistribution and use in source and binary forms, with or without \r\nmodification, are permitted provided that the following conditions are met:\r\n\r\n* Redistributions of source code must retain the above copyright notice, \r\n this list of conditions and the following disclaimer.\r\n* Redistributions in binary form must reproduce the above copyright notice, \r\n this list of conditions and the following disclaimer in the documentation \r\n and/or other materials provided with the distribution.\r\n* The name of the author may be used to endorse or promote products \r\n derived from this software without specific prior written permission.\r\n\r\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ''AS IS'' \r\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r\nARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE \r\nLIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR \r\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF \r\nSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r\nINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r\nCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r\nARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF\r\nTHE POSSIBILITY OF SUCH DAMAGE.\r\n\r\n\r\nMesa 3-D graphics library\r\n\r\nVersion: 7.0\r\n\r\nCopyright (C) 1999-2007 Brian Paul All Rights Reserved.\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a\r\ncopy of this software and associated documentation files (the ''Software''),\r\nto deal in the Software without restriction, including without limitation\r\nthe rights to use, copy, modify, merge, publish, distribute, sublicense,\r\nand/or sell copies of the Software, and to permit persons to whom the\r\nSoftware is furnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included\r\nin all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED ''AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\r\nBRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN\r\nAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n\r\n\r\nCopyright (c) 2007 The Khronos Group Inc.\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a\r\ncopy of this software and/or associated documentation files (the\r\n''Materials''), to deal in the Materials without restriction, including\r\nwithout limitation the rights to use, copy, modify, merge, publish,\r\ndistribute, sublicense, and/or sell copies of the Materials, and to\r\npermit persons to whom the Materials are furnished to do so, subject to\r\nthe following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included\r\nin all copies or substantial portions of the Materials.\r\n\r\nTHE MATERIALS ARE PROVIDED ''AS IS'', WITHOUT WARRANTY OF ANY KIND,\r\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\r\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\r\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\r\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\r\nMATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.\0"
|
||||
VALUE "Comments",
|
||||
"The OpenGL Extension Wrangler Library\r\n"
|
||||
"Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>\r\n"
|
||||
"Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>\r\n"
|
||||
"Copyright (C) 2002, Lev Povalahev\r\n"
|
||||
"All rights reserved.\r\n"
|
||||
"\r\n"
|
||||
"Redistribution and use in source and binary forms, with or without \r\n"
|
||||
"modification, are permitted provided that the following conditions are met:\r\n"
|
||||
"\r\n"
|
||||
"* Redistributions of source code must retain the above copyright notice, \r\n"
|
||||
" this list of conditions and the following disclaimer.\r\n"
|
||||
"* Redistributions in binary form must reproduce the above copyright notice, \r\n"
|
||||
" this list of conditions and the following disclaimer in the documentation \r\n"
|
||||
" and/or other materials provided with the distribution.\r\n"
|
||||
"* The name of the author may be used to endorse or promote products \r\n"
|
||||
" derived from this software without specific prior written permission.\r\n"
|
||||
"\r\n"
|
||||
"THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ''AS IS'' \r\n"
|
||||
"AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r\n"
|
||||
"IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r\n"
|
||||
"ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE \r\n"
|
||||
"LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR \r\n"
|
||||
"CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF \r\n"
|
||||
"SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r\n"
|
||||
"INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r\n"
|
||||
"CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r\n"
|
||||
"ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF\r\n"
|
||||
"THE POSSIBILITY OF SUCH DAMAGE.\r\n"
|
||||
"\r\n"
|
||||
"\r\n"
|
||||
"Mesa 3-D graphics library\r\n"
|
||||
"\r\n"
|
||||
"Version: 7.0\r\n"
|
||||
"\r\n"
|
||||
"Copyright (C) 1999-2007 Brian Paul All Rights Reserved.\r\n"
|
||||
"\r\n"
|
||||
"Permission is hereby granted, free of charge, to any person obtaining a\r\n"
|
||||
"copy of this software and associated documentation files (the ''Software''),\r\n"
|
||||
"to deal in the Software without restriction, including without limitation\r\n"
|
||||
"the rights to use, copy, modify, merge, publish, distribute, sublicense,\r\n"
|
||||
"and/or sell copies of the Software, and to permit persons to whom the\r\n"
|
||||
"Software is furnished to do so, subject to the following conditions:\r\n"
|
||||
"\r\n"
|
||||
"The above copyright notice and this permission notice shall be included\r\n"
|
||||
"in all copies or substantial portions of the Software.\r\n"
|
||||
"\r\n"
|
||||
"THE SOFTWARE IS PROVIDED ''AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n"
|
||||
"OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n"
|
||||
"FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\r\n"
|
||||
"BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN\r\n"
|
||||
"AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r\n"
|
||||
"CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n"
|
||||
"\r\n"
|
||||
"\r\n"
|
||||
"Copyright (c) 2007 The Khronos Group Inc.\r\n"
|
||||
"\r\n"
|
||||
"Permission is hereby granted, free of charge, to any person obtaining a\r\n"
|
||||
"copy of this software and/or associated documentation files (the\r\n"
|
||||
"''Materials''), to deal in the Materials without restriction, including\r\n"
|
||||
"without limitation the rights to use, copy, modify, merge, publish,\r\n"
|
||||
"distribute, sublicense, and/or sell copies of the Materials, and to\r\n"
|
||||
"permit persons to whom the Materials are furnished to do so, subject to\r\n"
|
||||
"the following conditions:\r\n"
|
||||
"\r\n"
|
||||
"The above copyright notice and this permission notice shall be included\r\n"
|
||||
"in all copies or substantial portions of the Materials.\r\n"
|
||||
"\r\n"
|
||||
"THE MATERIALS ARE PROVIDED ''AS IS'', WITHOUT WARRANTY OF ANY KIND,\r\n"
|
||||
"EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n"
|
||||
"MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\r\n"
|
||||
"IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\r\n"
|
||||
"CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\r\n"
|
||||
"TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\r\n"
|
||||
"MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.\0"
|
||||
VALUE "CompanyName", "\0"
|
||||
VALUE "FileDescription", "The OpenGL Extension Wrangler Library\0"
|
||||
VALUE "FileVersion", "GLEW_MAJOR,GLEW_MINOR,GLEW_MICRO,0\0"
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#if defined(_WIN32)
|
||||
# include <GL/wglew.h>
|
||||
#elif !defined(__ANDROID__) && !defined(__native_client__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))
|
||||
#elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))
|
||||
# include <GL/glxew.h>
|
||||
#endif
|
||||
|
||||
@ -35,7 +35,23 @@
|
||||
# define GLXEW_CONTEXT_ARG_DEF_LIST void
|
||||
#endif /* GLEW_MX */
|
||||
|
||||
#if defined(__sgi) || defined (__sun) || defined(GLEW_APPLE_GLX)
|
||||
#if defined(GLEW_REGAL)
|
||||
|
||||
/* In GLEW_REGAL mode we call direcly into the linked
|
||||
libRegal.so glGetProcAddressREGAL for looking up
|
||||
the GL function pointers. */
|
||||
|
||||
# undef glGetProcAddressREGAL
|
||||
# ifdef WIN32
|
||||
extern void * __stdcall glGetProcAddressREGAL(const GLchar *name);
|
||||
static void * (__stdcall * regalGetProcAddress) (const GLchar *) = glGetProcAddressREGAL;
|
||||
# else
|
||||
extern void * glGetProcAddressREGAL(const GLchar *name);
|
||||
static void * (*regalGetProcAddress) (const GLchar *) = glGetProcAddressREGAL;
|
||||
# endif
|
||||
# define glGetProcAddressREGAL GLEW_GET_FUN(__glewGetProcAddressREGAL)
|
||||
|
||||
#elif defined(__sgi) || defined (__sun) || defined(__HAIKU__) || defined(GLEW_APPLE_GLX)
|
||||
#include <dlfcn.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -73,11 +89,7 @@ void* NSGLGetProcAddress (const GLubyte *name)
|
||||
void* addr;
|
||||
if (NULL == image)
|
||||
{
|
||||
#ifdef GLEW_REGAL
|
||||
image = dlopen("libRegal.dylib", RTLD_LAZY);
|
||||
#else
|
||||
image = dlopen("/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL", RTLD_LAZY);
|
||||
#endif
|
||||
}
|
||||
if( !image ) return NULL;
|
||||
addr = dlsym(image, (const char*)name);
|
||||
@ -99,11 +111,7 @@ void* NSGLGetProcAddress (const GLubyte *name)
|
||||
char* symbolName;
|
||||
if (NULL == image)
|
||||
{
|
||||
#ifdef GLEW_REGAL
|
||||
image = NSAddImage("libRegal.dylib", NSADDIMAGE_OPTION_RETURN_ON_ERROR);
|
||||
#else
|
||||
image = NSAddImage("/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL", NSADDIMAGE_OPTION_RETURN_ON_ERROR);
|
||||
#endif
|
||||
}
|
||||
/* prepend a '_' for the Unix C symbol mangling convention */
|
||||
symbolName = malloc(strlen((const char*)name) + 2);
|
||||
@ -127,11 +135,13 @@ void* NSGLGetProcAddress (const GLubyte *name)
|
||||
/*
|
||||
* Define glewGetProcAddress.
|
||||
*/
|
||||
#if defined(_WIN32)
|
||||
#if defined(GLEW_REGAL)
|
||||
# define glewGetProcAddress(name) regalGetProcAddress((const GLchar *) name)
|
||||
#elif defined(_WIN32)
|
||||
# define glewGetProcAddress(name) wglGetProcAddress((LPCSTR)name)
|
||||
#elif defined(__APPLE__) && !defined(GLEW_APPLE_GLX)
|
||||
# define glewGetProcAddress(name) NSGLGetProcAddress(name)
|
||||
#elif defined(__sgi) || defined(__sun)
|
||||
#elif defined(__sgi) || defined(__sun) || defined(__HAIKU__)
|
||||
# define glewGetProcAddress(name) dlGetProcAddress(name)
|
||||
#elif defined(__ANDROID__)
|
||||
# define glewGetProcAddress(name) NULL /* TODO */
|
||||
|
@ -38,13 +38,24 @@
|
||||
* GL needs GLAPI and GLAPIENTRY, GLU needs APIENTRY, CALLBACK, and wchar_t
|
||||
* defined properly.
|
||||
*/
|
||||
/* <windef.h> */
|
||||
#ifndef APIENTRY
|
||||
/* <windef.h> and <gl.h>*/
|
||||
#ifdef APIENTRY
|
||||
# ifndef GLAPIENTRY
|
||||
# define GLAPIENTRY APIENTRY
|
||||
# endif
|
||||
# ifndef GLEWAPIENTRY
|
||||
# define GLEWAPIENTRY APIENTRY
|
||||
# endif
|
||||
#else
|
||||
#define GLEW_APIENTRY_DEFINED
|
||||
# if defined(__MINGW32__) || defined(__CYGWIN__)
|
||||
# define APIENTRY __stdcall
|
||||
# elif (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__)
|
||||
# if defined(__MINGW32__) || defined(__CYGWIN__) || (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__)
|
||||
# define APIENTRY __stdcall
|
||||
# ifndef GLAPIENTRY
|
||||
# define GLAPIENTRY __stdcall
|
||||
# endif
|
||||
# ifndef GLEWAPIENTRY
|
||||
# define GLEWAPIENTRY __stdcall
|
||||
# endif
|
||||
# else
|
||||
# define APIENTRY
|
||||
# endif
|
||||
@ -101,14 +112,6 @@ typedef _W64 int ptrdiff_t;
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef GLAPIENTRY
|
||||
#define GLAPIENTRY APIENTRY
|
||||
#endif
|
||||
|
||||
#ifndef GLEWAPIENTRY
|
||||
#define GLEWAPIENTRY APIENTRY
|
||||
#endif
|
||||
|
||||
/*
|
||||
* GLEW_STATIC is defined for static library.
|
||||
* GLEW_BUILD is defined for building the DLL library.
|
||||
@ -170,6 +173,8 @@ typedef _W64 int ptrdiff_t;
|
||||
#define GLAPI extern
|
||||
#endif
|
||||
|
||||
#endif /* _WIN32 */
|
||||
|
||||
#ifndef GLAPIENTRY
|
||||
#define GLAPIENTRY
|
||||
#endif
|
||||
@ -178,8 +183,6 @@ typedef _W64 int ptrdiff_t;
|
||||
#define GLEWAPIENTRY
|
||||
#endif
|
||||
|
||||
#endif /* _WIN32 */
|
||||
|
||||
/* GLEW depends on extension string entry points for internal purposes */
|
||||
|
||||
#ifdef GLEW_SUBSET
|
||||
@ -785,7 +788,7 @@ GLAPI void GLAPIENTRY glBindTexture (GLenum target, GLuint texture);
|
||||
GLAPI void GLAPIENTRY glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
|
||||
GLAPI void GLAPIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
|
||||
GLAPI void GLAPIENTRY glCallList (GLuint list);
|
||||
GLAPI void GLAPIENTRY glCallLists (GLsizei n, GLenum type, const GLvoid *lists);
|
||||
GLAPI void GLAPIENTRY glCallLists (GLsizei n, GLenum type, const void *lists);
|
||||
GLAPI void GLAPIENTRY glClear (GLbitfield mask);
|
||||
GLAPI void GLAPIENTRY glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
|
||||
GLAPI void GLAPIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
|
||||
@ -827,7 +830,7 @@ GLAPI void GLAPIENTRY glColor4us (GLushort red, GLushort green, GLushort blue, G
|
||||
GLAPI void GLAPIENTRY glColor4usv (const GLushort *v);
|
||||
GLAPI void GLAPIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
|
||||
GLAPI void GLAPIENTRY glColorMaterial (GLenum face, GLenum mode);
|
||||
GLAPI void GLAPIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
|
||||
GLAPI void GLAPIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const void *pointer);
|
||||
GLAPI void GLAPIENTRY glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
|
||||
GLAPI void GLAPIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
|
||||
GLAPI void GLAPIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
|
||||
@ -843,10 +846,10 @@ GLAPI void GLAPIENTRY glDisable (GLenum cap);
|
||||
GLAPI void GLAPIENTRY glDisableClientState (GLenum array);
|
||||
GLAPI void GLAPIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
|
||||
GLAPI void GLAPIENTRY glDrawBuffer (GLenum mode);
|
||||
GLAPI void GLAPIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
|
||||
GLAPI void GLAPIENTRY glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
|
||||
GLAPI void GLAPIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const void *indices);
|
||||
GLAPI void GLAPIENTRY glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
|
||||
GLAPI void GLAPIENTRY glEdgeFlag (GLboolean flag);
|
||||
GLAPI void GLAPIENTRY glEdgeFlagPointer (GLsizei stride, const GLvoid *pointer);
|
||||
GLAPI void GLAPIENTRY glEdgeFlagPointer (GLsizei stride, const void *pointer);
|
||||
GLAPI void GLAPIENTRY glEdgeFlagv (const GLboolean *flag);
|
||||
GLAPI void GLAPIENTRY glEnable (GLenum cap);
|
||||
GLAPI void GLAPIENTRY glEnableClientState (GLenum array);
|
||||
@ -891,7 +894,7 @@ GLAPI void GLAPIENTRY glGetMaterialiv (GLenum face, GLenum pname, GLint *params)
|
||||
GLAPI void GLAPIENTRY glGetPixelMapfv (GLenum map, GLfloat *values);
|
||||
GLAPI void GLAPIENTRY glGetPixelMapuiv (GLenum map, GLuint *values);
|
||||
GLAPI void GLAPIENTRY glGetPixelMapusv (GLenum map, GLushort *values);
|
||||
GLAPI void GLAPIENTRY glGetPointerv (GLenum pname, GLvoid* *params);
|
||||
GLAPI void GLAPIENTRY glGetPointerv (GLenum pname, void* *params);
|
||||
GLAPI void GLAPIENTRY glGetPolygonStipple (GLubyte *mask);
|
||||
GLAPI const GLubyte * GLAPIENTRY glGetString (GLenum name);
|
||||
GLAPI void GLAPIENTRY glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params);
|
||||
@ -899,14 +902,14 @@ GLAPI void GLAPIENTRY glGetTexEnviv (GLenum target, GLenum pname, GLint *params)
|
||||
GLAPI void GLAPIENTRY glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params);
|
||||
GLAPI void GLAPIENTRY glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params);
|
||||
GLAPI void GLAPIENTRY glGetTexGeniv (GLenum coord, GLenum pname, GLint *params);
|
||||
GLAPI void GLAPIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
|
||||
GLAPI void GLAPIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
|
||||
GLAPI void GLAPIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params);
|
||||
GLAPI void GLAPIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params);
|
||||
GLAPI void GLAPIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
|
||||
GLAPI void GLAPIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
|
||||
GLAPI void GLAPIENTRY glHint (GLenum target, GLenum mode);
|
||||
GLAPI void GLAPIENTRY glIndexMask (GLuint mask);
|
||||
GLAPI void GLAPIENTRY glIndexPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
|
||||
GLAPI void GLAPIENTRY glIndexPointer (GLenum type, GLsizei stride, const void *pointer);
|
||||
GLAPI void GLAPIENTRY glIndexd (GLdouble c);
|
||||
GLAPI void GLAPIENTRY glIndexdv (const GLdouble *c);
|
||||
GLAPI void GLAPIENTRY glIndexf (GLfloat c);
|
||||
@ -918,7 +921,7 @@ GLAPI void GLAPIENTRY glIndexsv (const GLshort *c);
|
||||
GLAPI void GLAPIENTRY glIndexub (GLubyte c);
|
||||
GLAPI void GLAPIENTRY glIndexubv (const GLubyte *c);
|
||||
GLAPI void GLAPIENTRY glInitNames (void);
|
||||
GLAPI void GLAPIENTRY glInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer);
|
||||
GLAPI void GLAPIENTRY glInterleavedArrays (GLenum format, GLsizei stride, const void *pointer);
|
||||
GLAPI GLboolean GLAPIENTRY glIsEnabled (GLenum cap);
|
||||
GLAPI GLboolean GLAPIENTRY glIsList (GLuint list);
|
||||
GLAPI GLboolean GLAPIENTRY glIsTexture (GLuint texture);
|
||||
@ -964,7 +967,7 @@ GLAPI void GLAPIENTRY glNormal3i (GLint nx, GLint ny, GLint nz);
|
||||
GLAPI void GLAPIENTRY glNormal3iv (const GLint *v);
|
||||
GLAPI void GLAPIENTRY glNormal3s (GLshort nx, GLshort ny, GLshort nz);
|
||||
GLAPI void GLAPIENTRY glNormal3sv (const GLshort *v);
|
||||
GLAPI void GLAPIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
|
||||
GLAPI void GLAPIENTRY glNormalPointer (GLenum type, GLsizei stride, const void *pointer);
|
||||
GLAPI void GLAPIENTRY glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
|
||||
GLAPI void GLAPIENTRY glPassThrough (GLfloat token);
|
||||
GLAPI void GLAPIENTRY glPixelMapfv (GLenum map, GLsizei mapsize, const GLfloat *values);
|
||||
@ -1013,7 +1016,7 @@ GLAPI void GLAPIENTRY glRasterPos4iv (const GLint *v);
|
||||
GLAPI void GLAPIENTRY glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w);
|
||||
GLAPI void GLAPIENTRY glRasterPos4sv (const GLshort *v);
|
||||
GLAPI void GLAPIENTRY glReadBuffer (GLenum mode);
|
||||
GLAPI void GLAPIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
|
||||
GLAPI void GLAPIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels);
|
||||
GLAPI void GLAPIENTRY glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
|
||||
GLAPI void GLAPIENTRY glRectdv (const GLdouble *v1, const GLdouble *v2);
|
||||
GLAPI void GLAPIENTRY glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
|
||||
@ -1065,7 +1068,7 @@ GLAPI void GLAPIENTRY glTexCoord4i (GLint s, GLint t, GLint r, GLint q);
|
||||
GLAPI void GLAPIENTRY glTexCoord4iv (const GLint *v);
|
||||
GLAPI void GLAPIENTRY glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q);
|
||||
GLAPI void GLAPIENTRY glTexCoord4sv (const GLshort *v);
|
||||
GLAPI void GLAPIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
|
||||
GLAPI void GLAPIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const void *pointer);
|
||||
GLAPI void GLAPIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param);
|
||||
GLAPI void GLAPIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);
|
||||
GLAPI void GLAPIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param);
|
||||
@ -1076,14 +1079,14 @@ GLAPI void GLAPIENTRY glTexGenf (GLenum coord, GLenum pname, GLfloat param);
|
||||
GLAPI void GLAPIENTRY glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params);
|
||||
GLAPI void GLAPIENTRY glTexGeni (GLenum coord, GLenum pname, GLint param);
|
||||
GLAPI void GLAPIENTRY glTexGeniv (GLenum coord, GLenum pname, const GLint *params);
|
||||
GLAPI void GLAPIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
|
||||
GLAPI void GLAPIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
|
||||
GLAPI void GLAPIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
|
||||
GLAPI void GLAPIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
|
||||
GLAPI void GLAPIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
|
||||
GLAPI void GLAPIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
|
||||
GLAPI void GLAPIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
|
||||
GLAPI void GLAPIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
|
||||
GLAPI void GLAPIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
|
||||
GLAPI void GLAPIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
|
||||
GLAPI void GLAPIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
|
||||
GLAPI void GLAPIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
|
||||
GLAPI void GLAPIENTRY glTranslated (GLdouble x, GLdouble y, GLdouble z);
|
||||
GLAPI void GLAPIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z);
|
||||
GLAPI void GLAPIENTRY glVertex2d (GLdouble x, GLdouble y);
|
||||
@ -1110,7 +1113,7 @@ GLAPI void GLAPIENTRY glVertex4i (GLint x, GLint y, GLint z, GLint w);
|
||||
GLAPI void GLAPIENTRY glVertex4iv (const GLint *v);
|
||||
GLAPI void GLAPIENTRY glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w);
|
||||
GLAPI void GLAPIENTRY glVertex4sv (const GLshort *v);
|
||||
GLAPI void GLAPIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
|
||||
GLAPI void GLAPIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const void *pointer);
|
||||
GLAPI void GLAPIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
|
||||
#define GLEW_VERSION_1_1 GLEW_GET_VAR(__GLEW_VERSION_1_1)
|
||||
|
@ -36,7 +36,7 @@ GLboolean glewExperimental = GL_FALSE;
|
||||
|
||||
#if defined(_WIN32)
|
||||
extern GLenum GLEWAPIENTRY wglewContextInit (void);
|
||||
#elif !defined(__ANDROID__) && !defined(__native_client__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))
|
||||
#elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))
|
||||
extern GLenum GLEWAPIENTRY glxewContextInit (void);
|
||||
#endif /* _WIN32 */
|
||||
|
||||
@ -47,7 +47,7 @@ GLenum GLEWAPIENTRY glewInit (void)
|
||||
if ( r != 0 ) return r;
|
||||
#if defined(_WIN32)
|
||||
return wglewContextInit();
|
||||
#elif !defined(__ANDROID__) && !defined(__native_client__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX)) /* _UNIX */
|
||||
#elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX)) /* _UNIX */
|
||||
return glxewContextInit();
|
||||
#else
|
||||
return r;
|
||||
|
@ -1,5 +1,6 @@
|
||||
/*
|
||||
** The OpenGL Extension Wrangler Library
|
||||
** Copyright (C) 2008-2013, Nigel Stewart <nigels[]users sourceforge net>
|
||||
** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
** Copyright (C) 2002, Lev Povalahev
|
||||
|
@ -4,7 +4,7 @@
|
||||
return ret;
|
||||
}
|
||||
|
||||
#elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
|
||||
#elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
|
||||
|
||||
#if defined(GLEW_MX)
|
||||
GLboolean glxewContextIsSupported (const GLXEWContext* ctx, const char* name)
|
||||
|
@ -54,8 +54,6 @@ GLEWAPI const GLubyte * GLEWAPIENTRY glewGetString (GLenum name);
|
||||
#ifdef GLEW_APIENTRY_DEFINED
|
||||
#undef GLEW_APIENTRY_DEFINED
|
||||
#undef APIENTRY
|
||||
#undef GLAPIENTRY
|
||||
#define GLAPIENTRY
|
||||
#endif
|
||||
|
||||
#ifdef GLEW_CALLBACK_DEFINED
|
||||
|
@ -32,7 +32,7 @@
|
||||
#include <GL/glew.h>
|
||||
#if defined(_WIN32)
|
||||
# include <GL/wglew.h>
|
||||
#elif !defined(__ANDROID__) && !defined(__native_client__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))
|
||||
#elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))
|
||||
# include <GL/glxew.h>
|
||||
#endif
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <GL/glew.h>
|
||||
#if defined(_WIN32)
|
||||
#include <GL/wglew.h>
|
||||
#elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
|
||||
#elif !defined(__APPLE__) && !defined(__HAIKU__) || defined(GLEW_APPLE_GLX)
|
||||
#include <GL/glxew.h>
|
||||
#endif
|
||||
|
||||
@ -20,7 +20,7 @@ GLEWContext _glewctx;
|
||||
#ifdef _WIN32
|
||||
WGLEWContext _wglewctx;
|
||||
#define wglewGetContext() (&_wglewctx)
|
||||
#elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
|
||||
#elif !defined(__APPLE__) && !defined(__HAIKU__) || defined(GLEW_APPLE_GLX)
|
||||
GLXEWContext _glxewctx;
|
||||
#define glxewGetContext() (&_glxewctx)
|
||||
#endif
|
||||
@ -28,7 +28,7 @@ GLXEWContext _glxewctx;
|
||||
|
||||
#if defined(_WIN32)
|
||||
GLboolean glewCreateContext (int* pixelformat);
|
||||
#elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
|
||||
#elif !defined(__APPLE__) && !defined(__HAIKU__) || defined(GLEW_APPLE_GLX)
|
||||
GLboolean glewCreateContext (const char* display, int* visual);
|
||||
#else
|
||||
GLboolean glewCreateContext ();
|
||||
|
@ -58,7 +58,12 @@ int main (void)
|
||||
return 1;
|
||||
}
|
||||
#if defined(_WIN32)
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
||||
if (fopen_s(&f, "glewinfo.txt", "w") != 0)
|
||||
f = stdout;
|
||||
#else
|
||||
f = fopen("glewinfo.txt", "w");
|
||||
#endif
|
||||
if (f == NULL) f = stdout;
|
||||
#else
|
||||
f = stdout;
|
||||
@ -202,7 +207,7 @@ GLboolean glewCreateContext ()
|
||||
if (GL_FALSE == aglSetCurrentContext(ctx)) return GL_TRUE;
|
||||
/* Needed for Regal on the Mac */
|
||||
#if defined(GLEW_REGAL) && defined(__APPLE__)
|
||||
RegalMakeCurrent(octx);
|
||||
RegalMakeCurrent(ctx);
|
||||
#endif
|
||||
return GL_FALSE;
|
||||
}
|
||||
@ -215,6 +220,21 @@ void glewDestroyContext ()
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
||||
#elif defined(__HAIKU__)
|
||||
|
||||
GLboolean glewCreateContext ()
|
||||
{
|
||||
/* TODO: Haiku: We need to call C++ code here */
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
void glewDestroyContext ()
|
||||
{
|
||||
/* TODO: Haiku: We need to call C++ code here */
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
||||
#else /* __UNIX || (__APPLE__ && GLEW_APPLE_GLX) */
|
||||
|
||||
Display* dpy = NULL;
|
||||
|
@ -6,7 +6,7 @@ LD := cc
|
||||
LN :=
|
||||
LDFLAGS.EXTRA =
|
||||
LIBDIR = $(GLEW_DEST)/lib
|
||||
LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
|
||||
LDFLAGS.GL = -lGL -lX11
|
||||
LDFLAGS.STATIC = -Wl,-Bstatic
|
||||
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
|
||||
WARN = -Wall -W
|
||||
|
@ -6,7 +6,7 @@ CFLAGS.EXTRA = -dynamic -fno-common
|
||||
LDFLAGS.EXTRA =
|
||||
ifneq (undefined, $(origin GLEW_APPLE_GLX))
|
||||
CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX'
|
||||
LDFLAGS.GL = -L/usr/X11R6/lib -lXmu -lXi -lGL -lXext -lX11
|
||||
LDFLAGS.GL = -L/usr/X11R6/lib -lGL -lX11
|
||||
else
|
||||
LDFLAGS.GL = -framework AGL -framework OpenGL
|
||||
endif
|
||||
|
@ -6,7 +6,7 @@ CFLAGS.EXTRA = -arch ppc -dynamic -fno-common
|
||||
LDFLAGS.EXTRA = -arch ppc
|
||||
ifneq (undefined, $(origin GLEW_APPLE_GLX))
|
||||
CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX'
|
||||
LDFLAGS.GL = -L/usr/X11R6/lib -lXmu -lXi -lGL -lXext -lX11
|
||||
LDFLAGS.GL = -L/usr/X11R6/lib -lGL -lX11
|
||||
else
|
||||
LDFLAGS.GL = -framework AGL -framework OpenGL
|
||||
endif
|
||||
|
@ -6,7 +6,7 @@ CFLAGS.EXTRA = -arch x86_64 -dynamic -fno-common
|
||||
LDFLAGS.EXTRA = -arch x86_64
|
||||
ifneq (undefined, $(origin GLEW_APPLE_GLX))
|
||||
CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX'
|
||||
LDFLAGS.GL = -L/usr/X11R6/lib -lXmu -lXi -lGL -lXext -lX11
|
||||
LDFLAGS.GL = -L/usr/X11R6/lib -lGL -lX11
|
||||
else
|
||||
LDFLAGS.GL = -framework AGL -framework OpenGL
|
||||
endif
|
||||
|
@ -2,7 +2,7 @@ NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = ld
|
||||
LDFLAGS.EXTRA = -L/usr/X11R6/lib
|
||||
LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
|
||||
LDFLAGS.GL = -lGL -lX11
|
||||
LDFLAGS.STATIC = -Wl,-Bstatic
|
||||
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
|
||||
CFLAGS.EXTRA += -I/usr/X11R6/include
|
||||
|
@ -2,7 +2,7 @@ NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = cc
|
||||
LDFLAGS.EXTRA = -L/usr/X11R6/lib
|
||||
LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
|
||||
LDFLAGS.GL = -lGL -lX11
|
||||
LDFLAGS.STATIC = -Wl,-Bstatic
|
||||
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
|
||||
NAME = GLEW
|
||||
|
29
config/Makefile.haiku
Normal file
29
config/Makefile.haiku
Normal file
@ -0,0 +1,29 @@
|
||||
NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = cc
|
||||
ifneq (undefined, $(origin GLEW_MX))
|
||||
CFLAGS.EXTRA = -DGLEW_MX
|
||||
endif
|
||||
|
||||
LDFLAGS.GL = -lGL
|
||||
LDFLAGS.STATIC = -Wl,-Bstatic
|
||||
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
|
||||
|
||||
NAME = GLEW
|
||||
WARN = -Wall -W
|
||||
POPT = -O2
|
||||
|
||||
BIN.SUFFIX =
|
||||
|
||||
LIB.SONAME = lib$(NAME).so.$(SO_MAJOR)
|
||||
LIB.DEVLNK = lib$(NAME).so
|
||||
LIB.SHARED = lib$(NAME).so.$(SO_VERSION)
|
||||
LIB.STATIC = lib$(NAME).a
|
||||
LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME)
|
||||
|
||||
LIB.SONAME.MX = lib$(NAME)mx.so.$(SO_MAJOR)
|
||||
LIB.DEVLNK.MX = lib$(NAME)mx.so
|
||||
LIB.SHARED.MX = lib$(NAME)mx.so.$(SO_VERSION)
|
||||
LIB.STATIC.MX = lib$(NAME)mx.a
|
||||
LDFLAGS.SO.MX = -shared -Wl,-soname=$(LIB.SONAME.MX)
|
||||
|
@ -2,7 +2,7 @@ NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = cc
|
||||
LDFLAGS.EXTRA = -L/usr/X11R6/lib
|
||||
LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
|
||||
LDFLAGS.GL = -lGL -lX11
|
||||
LDFLAGS.STATIC = -Wl,-Bstatic
|
||||
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
|
||||
NAME = GLEW
|
||||
|
@ -16,7 +16,7 @@ else
|
||||
LDFLAGS.EXTRA = -L/usr/X11R6/lib -L/usr/lib
|
||||
LIBDIR = $(GLEW_DEST)/lib
|
||||
endif
|
||||
LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
|
||||
LDFLAGS.GL = -lGL -lX11
|
||||
LDFLAGS.STATIC = -Wl,-Bstatic
|
||||
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
|
||||
NAME = GLEW
|
||||
|
@ -2,7 +2,7 @@ NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = ld
|
||||
LDFLAGS.EXTRA = -L/usr/X11R7/lib -R /usr/X11R7/lib
|
||||
LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
|
||||
LDFLAGS.GL = -lGL -lX11
|
||||
LDFLAGS.STATIC = -Wl,-Bstatic
|
||||
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
|
||||
CFLAGS.EXTRA += -I/usr/X11R7/include -fPIC
|
||||
|
@ -2,7 +2,7 @@ NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = ld
|
||||
LDFLAGS.EXTRA = -L/usr/X11R6/lib
|
||||
LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11 -lm
|
||||
LDFLAGS.GL = -lGLU -lGL -lX11 -lm
|
||||
LDFLAGS.STATIC = -Wl,-Bstatic
|
||||
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
|
||||
CFLAGS.EXTRA += -I/usr/X11R6/include
|
||||
|
@ -4,7 +4,7 @@ LD = ld
|
||||
CFLAGS.EXTRA = -I/usr/openwin/include
|
||||
LDFLAGS.SO = -G
|
||||
LDFLAGS.EXTRA = -L/usr/openwin/lib
|
||||
LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
|
||||
LDFLAGS.GL = -lGL -lX11
|
||||
NAME = GLEW
|
||||
BIN.SUFFIX =
|
||||
POPT = -xO2
|
||||
|
@ -4,7 +4,7 @@ LD = ld
|
||||
CFLAGS.EXTRA = -I/usr/openwin/include
|
||||
LDFLAGS.SO = -G
|
||||
LDFLAGS.EXTRA = -L/usr/openwin/lib
|
||||
LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
|
||||
LDFLAGS.GL = -lGL -lX11
|
||||
NAME = GLEW
|
||||
BIN.SUFFIX =
|
||||
POPT = -O2
|
||||
|
@ -143,7 +143,8 @@ width="88" height="32" border="0" alt="Support This Project"></a></td></tr> -->
|
||||
<li>gcc compiler</li>
|
||||
</ul>
|
||||
|
||||
Ubuntu: <pre>sudo apt-get install Xmu-dev Xi-Dev</pre>
|
||||
Ubuntu: <pre>sudo apt-get install libXmu-dev libXi-dev libgl-dev dos2unix</pre>
|
||||
Fedora: <pre>sudo yum install libXmu-devel libXi-devel libGL-devel dos2unix</pre>
|
||||
<!-- begin footer.html -->
|
||||
</td></tr></table></body>
|
||||
<!-- end footer.html -->
|
||||
|
983
doc/glew.html
983
doc/glew.html
File diff suppressed because it is too large
Load Diff
@ -159,8 +159,9 @@ An up-to-date copy is also available using <a href="http://git-scm.com/">git</a>
|
||||
<a href="https://sourceforge.net/projects/glew/files/glew/snapshots/">Unsupported snapshots</a> are also available:
|
||||
</p>
|
||||
<ul>
|
||||
<li><a href="http://sourceforge.net/projects/glew/files/glew/snapshots/glew-20140110.tgz/download">glew-20140110.tgz</a></li>
|
||||
<li><a href="http://sourceforge.net/projects/glew/files/glew/snapshots/glew-20131216.tgz/download">glew-20131216.tgz</a></li>
|
||||
<li><a href="http://sourceforge.net/projects/glew/files/glew/snapshots/glew-20130715.tgz/download">glew-20130715.tgz</a></li>
|
||||
<li><a href="http://sourceforge.net/projects/glew/files/glew/snapshots/glew-20130118.tgz/download">glew-20130118.tgz</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Supported Extensions</h2>
|
||||
|
@ -148,18 +148,19 @@ width="88" height="32" border="0" alt="Support This Project"></a></td></tr> -->
|
||||
<tr><td class="num">39</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/DX_interop.txt">NV_DX_interop</a></td></tr>
|
||||
<tr><td class="num">40</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/DX_interop2.txt">NV_DX_interop2</a></td></tr>
|
||||
<tr><td class="num">41</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/copy_image.txt">NV_copy_image</a></td></tr>
|
||||
<tr><td class="num">42</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/float_buffer.txt">NV_float_buffer</a></td></tr>
|
||||
<tr><td class="num">43</td><td> </td><td><a href="http://developer.download.nvidia.com/opengl/specs/WGL_nv_gpu_affinity.txt">NV_gpu_affinity</a></td></tr>
|
||||
<tr><td class="num">44</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/multisample_coverage.txt">NV_multisample_coverage</a></td></tr>
|
||||
<tr><td class="num">45</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/present_video.txt">NV_present_video</a></td></tr>
|
||||
<tr><td class="num">46</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/render_depth_texture.txt">NV_render_depth_texture</a></td></tr>
|
||||
<tr><td class="num">47</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/render_texture_rectangle.txt">NV_render_texture_rectangle</a></td></tr>
|
||||
<tr><td class="num">48</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/wgl_swap_group.txt">NV_swap_group</a></td></tr>
|
||||
<tr><td class="num">49</td><td> </td><td><a href="http://oss.sgi.com/projects/ogl-sample/registry/NV/vertex_array_range.txt">NV_vertex_array_range</a></td></tr>
|
||||
<tr><td class="num">50</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/video_capture.txt">NV_video_capture</a></td></tr>
|
||||
<tr><td class="num">51</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/wgl_video_output.txt">NV_video_output</a></td></tr>
|
||||
<tr><td class="num">42</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/wgl_delay_before_swap.txt">NV_delay_before_swap</a></td></tr>
|
||||
<tr><td class="num">43</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/float_buffer.txt">NV_float_buffer</a></td></tr>
|
||||
<tr><td class="num">44</td><td> </td><td><a href="http://developer.download.nvidia.com/opengl/specs/WGL_nv_gpu_affinity.txt">NV_gpu_affinity</a></td></tr>
|
||||
<tr><td class="num">45</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/multisample_coverage.txt">NV_multisample_coverage</a></td></tr>
|
||||
<tr><td class="num">46</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/present_video.txt">NV_present_video</a></td></tr>
|
||||
<tr><td class="num">47</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/render_depth_texture.txt">NV_render_depth_texture</a></td></tr>
|
||||
<tr><td class="num">48</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/render_texture_rectangle.txt">NV_render_texture_rectangle</a></td></tr>
|
||||
<tr><td class="num">49</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/wgl_swap_group.txt">NV_swap_group</a></td></tr>
|
||||
<tr><td class="num">50</td><td> </td><td><a href="http://oss.sgi.com/projects/ogl-sample/registry/NV/vertex_array_range.txt">NV_vertex_array_range</a></td></tr>
|
||||
<tr><td class="num">51</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/video_capture.txt">NV_video_capture</a></td></tr>
|
||||
<tr><td class="num">52</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/NV/wgl_video_output.txt">NV_video_output</a></td></tr>
|
||||
<tr><td><br></td><td></td><td></td></tr>
|
||||
<tr><td class="num">52</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/OML/wgl_sync_control.txt">OML_sync_control</a></td></tr>
|
||||
<tr><td class="num">53</td><td> </td><td><a href="http://www.opengl.org/registry/specs/gl/OML/wgl_sync_control.txt">OML_sync_control</a></td></tr>
|
||||
</table>
|
||||
<!-- begin footer.html -->
|
||||
</td></tr></table></body>
|
||||
|
@ -4,6 +4,7 @@
|
||||
** Copyright (C) Nate Robins, 1997
|
||||
** Michael Wimmer, 1999
|
||||
** Milan Ikits, 2002-2008
|
||||
** Nigel Stewart, 2008-2013
|
||||
**
|
||||
** visualinfo is a small utility that displays all available visuals,
|
||||
** aka. pixelformats, in an OpenGL system along with renderer version
|
||||
@ -37,7 +38,7 @@
|
||||
#include <GL/wglew.h>
|
||||
#elif defined(__APPLE__) && !defined(GLEW_APPLE_GLX)
|
||||
#include <AGL/agl.h>
|
||||
#else
|
||||
#elif !defined(__HAIKU__)
|
||||
#include <GL/glxew.h>
|
||||
#endif
|
||||
|
||||
@ -47,7 +48,7 @@ GLEWContext _glewctx;
|
||||
# ifdef _WIN32
|
||||
WGLEWContext _wglewctx;
|
||||
# define wglewGetContext() (&_wglewctx)
|
||||
# elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
|
||||
# elif !defined(__APPLE__) && !defined(__HAIKU__) || defined(GLEW_APPLE_GLX)
|
||||
GLXEWContext _glxewctx;
|
||||
# define glxewGetContext() (&_glxewctx)
|
||||
# endif
|
||||
@ -61,7 +62,7 @@ typedef struct GLContextStruct
|
||||
HGLRC rc;
|
||||
#elif defined(__APPLE__) && !defined(GLEW_APPLE_GLX)
|
||||
AGLContext ctx, octx;
|
||||
#else
|
||||
#elif !defined(__HAIKU__)
|
||||
Display* dpy;
|
||||
XVisualInfo* vi;
|
||||
GLXContext ctx;
|
||||
@ -129,7 +130,7 @@ main (int argc, char** argv)
|
||||
err = glewContextInit(glewGetContext());
|
||||
# ifdef _WIN32
|
||||
err = err || wglewContextInit(wglewGetContext());
|
||||
# elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
|
||||
# elif !defined(__APPLE__) && !defined(__HAIKU__) || defined(GLEW_APPLE_GLX)
|
||||
err = err || glxewContextInit(glxewGetContext());
|
||||
# endif
|
||||
#else
|
||||
@ -146,7 +147,14 @@ main (int argc, char** argv)
|
||||
/* open file */
|
||||
#if defined(_WIN32)
|
||||
if (!displaystdout)
|
||||
{
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
||||
if (fopen_s(&file, "visualinfo.txt", "w") != 0)
|
||||
file = stdout;
|
||||
#else
|
||||
file = fopen("visualinfo.txt", "w");
|
||||
#endif
|
||||
}
|
||||
if (file == NULL)
|
||||
file = stdout;
|
||||
#else
|
||||
@ -182,6 +190,10 @@ main (int argc, char** argv)
|
||||
}
|
||||
#elif defined(__APPLE__) && !defined(GLEW_APPLE_GLX)
|
||||
|
||||
#elif defined(__HAIKU__)
|
||||
|
||||
/* TODO */
|
||||
|
||||
#else
|
||||
/* GLX extensions */
|
||||
fprintf(file, "GLX extensions (GLX_): \n");
|
||||
@ -231,7 +243,11 @@ void PrintExtensions (const char* s)
|
||||
fprintf(file, " %s\n", t);
|
||||
p++;
|
||||
i = (int)strlen(p);
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
||||
strcpy_s(t, sizeof(t), p);
|
||||
#else
|
||||
strcpy(t, p);
|
||||
#endif
|
||||
}
|
||||
s++;
|
||||
}
|
||||
@ -582,7 +598,7 @@ VisualInfo (GLContext* ctx)
|
||||
#elif defined(__APPLE__) && !defined(GLEW_APPLE_GLX)
|
||||
|
||||
void
|
||||
VisualInfo (GLContext* ctx)
|
||||
VisualInfo (GLContext* __attribute__((__unused__)) ctx)
|
||||
{
|
||||
/*
|
||||
int attrib[] = { AGL_RGBA, AGL_NONE };
|
||||
@ -598,6 +614,16 @@ VisualInfo (GLContext* ctx)
|
||||
*/
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
#elif defined(__HAIKU__)
|
||||
|
||||
void
|
||||
VisualInfo (GLContext* ctx)
|
||||
{
|
||||
/* TODO */
|
||||
}
|
||||
|
||||
#else /* GLX */
|
||||
|
||||
void
|
||||
@ -1074,6 +1100,29 @@ void DestroyContext (GLContext* ctx)
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
||||
#elif defined(__HAIKU__)
|
||||
|
||||
void
|
||||
InitContext (GLContext* ctx)
|
||||
{
|
||||
/* TODO */
|
||||
}
|
||||
|
||||
GLboolean
|
||||
CreateContext (GLContext* ctx)
|
||||
{
|
||||
/* TODO */
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
DestroyContext (GLContext* ctx)
|
||||
{
|
||||
/* TODO */
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
||||
#else /* __UNIX || (__APPLE__ && GLEW_APPLE_GLX) */
|
||||
|
||||
void InitContext (GLContext* ctx)
|
||||
|
Loading…
Reference in New Issue
Block a user