Commit a79f6214 authored by Matteo F. Vescovi's avatar Matteo F. Vescovi

Merge tag 'upstream/1.12.0'

Upstream version 1.12.0

# gpg: Signature made Tue Feb  3 16:33:21 2015 CET
# gpg:                using RSA key 0x0612F4944ECDCD5A
# gpg: Good signature from "Matteo F. Vescovi <mfv@debian.org>" [ultimate]
# gpg:                 aka "Matteo F. Vescovi <mfvescovi@gmail.com>" [ultimate]
# Primary key fingerprint: 4E8E 810A 6B44 5FDE 68DA  D025 8062 3989 83B2 CF7A
#      Subkey fingerprint: F3DD 09F8 DA87 D1DF 5046  C99B 0612 F494 4ECD CD5A
parents 78a37acd f96f5b69
project(GLEW)
cmake_minimum_required(VERSION 2.4)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
set(GLEW_VERSION "1.11.0")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
set(GLEW_LIB_NAME glew32)
else(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
set(GLEW_LIB_NAME GLEW)
set(DLL_PREFIX lib)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
#
# All platforms need OpenGL
#
include(FindPkgConfig)
pkg_check_modules( OpenGL REQUIRED gl )
#
# Linux needs X11
#
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
find_package(X11 REQUIRED)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(CMAKE_C_FLAGS "${CFLAGS} ${CMAKE_C_FLAGS} -DGLEW_BUILD -DGLEW_NO_GLU -O2 -Wall -W" )
include_directories( ${PROJECT_SOURCE_DIR}/include )
add_library(GLEW_static STATIC src/glew.c )
add_library(GLEW_shared SHARED src/glew.c )
set_target_properties(GLEW_static PROPERTIES OUTPUT_NAME ${GLEW_LIB_NAME} PREFIX lib)
set_target_properties(GLEW_shared PROPERTIES OUTPUT_NAME ${GLEW_LIB_NAME} PREFIX "${DLL_PREFIX}")
target_link_libraries(GLEW_shared ${OpenGL_LDFLAGS})
add_library(GLEW_MX_static STATIC src/glew.c )
add_library(GLEW_MX_shared SHARED src/glew.c )
set_target_properties(GLEW_MX_static PROPERTIES OUTPUT_NAME ${GLEW_LIB_NAME}mx COMPILE_FLAGS "-DGLEW_MX" PREFIX lib)
set_target_properties(GLEW_MX_shared PROPERTIES OUTPUT_NAME ${GLEW_LIB_NAME}mx COMPILE_FLAGS "-DGLEW_MX" PREFIX "${DLL_PREFIX}")
target_link_libraries(GLEW_MX_shared ${OpenGL_LDFLAGS})
add_executable(glewinfo src/glewinfo.c)
target_link_libraries(glewinfo GLEW_shared ${OpenGL_LDFLAGS})
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_link_libraries(glewinfo ${X11_LIBRARIES})
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
add_executable(visualinfo src/visualinfo.c)
target_link_libraries(visualinfo GLEW_shared ${OpenGL_LDFLAGS})
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_link_libraries(visualinfo ${X11_LIBRARIES})
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
install(
TARGETS
GLEW_static
GLEW_shared
GLEW_MX_static
GLEW_MX_shared
glewinfo
visualinfo
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
install(CODE "execute_process( COMMAND bash -x -c \"sed -e 's%@prefix@%${CMAKE_INSTALL_PREFIX}%g' -e 's%@exec_prefix@%\\\${prefix}%g' -e 's%@libdir@%\\\${prefix}/lib%g' -e 's%@includedir@%\\\${prefix}/include%g' -e 's/\@version\@/${GLEW_VERSION}/g' -e 's/\@cflags\@//g' -e 's/\@libname\@/${GLEW_LIB_NAME}/g' -e 's|@requireslib@|glu|g' < ${CMAKE_SOURCE_DIR}/glew.pc.in > ${CMAKE_BINARY_DIR}/glew.pc\" )" )
install(CODE "execute_process( COMMAND bash -x -c \"sed -e 's%@prefix@%${CMAKE_INSTALL_PREFIX}%g' -e 's%@exec_prefix@%\\\${prefix}%g' -e 's%@libdir@%\\\${prefix}/lib%g' -e 's%@includedir@%\\\${prefix}/include%g' -e 's/\@version\@/${GLEW_VERSION}/g' -e 's/\@cflags\@/-DGLEW_MX/g' -e 's/\@libname\@/${GLEW_LIB_NAME}mx/g' -e 's|@requireslib@|glu|g' < ${CMAKE_SOURCE_DIR}/glew.pc.in > ${CMAKE_BINARY_DIR}/glewmx.pc\" )" )
install(FILES ${CMAKE_BINARY_DIR}/glew.pc ${CMAKE_BINARY_DIR}/glewmx.pc DESTINATION lib/pkgconfig)
......@@ -125,7 +125,7 @@ tmp/$(SYSTEM)/default/static/glew.o: src/glew.c include/GL/glew.h include/GL/wgl
tmp/$(SYSTEM)/default/shared/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h
@mkdir -p $(dir $@)
$(CC) -DGLEW_NO_GLU $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
$(CC) -DGLEW_NO_GLU -DGLEW_BUILD $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
# Force re-write of glew.pc, GLEW_DEST can vary
......@@ -166,7 +166,7 @@ tmp/$(SYSTEM)/mx/static/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h
tmp/$(SYSTEM)/mx/shared/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h
@mkdir -p $(dir $@)
$(CC) -DGLEW_NO_GLU -DGLEW_MX $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
$(CC) -DGLEW_NO_GLU -DGLEW_MX -DGLEW_BUILD $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
# Force re-write of glewmx.pc, GLEW_DEST can vary
......
GLEW - The OpenGL Extension Wrangler Library
http://glew.sourceforge.net/
https://github.com/nigels-com/glew
See doc/index.html for more information.
If you downloaded the tarball from the GLEW website, you just need to:
......@@ -5,16 +10,16 @@ If you downloaded the tarball from the GLEW website, you just need to:
Unix:
make
sudo -s
make install
make clean
Windows:
use the project file in build/vc6/
use the project file in build/vc12/
If you wish to build GLEW from scratch (update the extension data from
the net or add your own extension information), you need a Unix
......@@ -22,3 +27,8 @@ environment (including wget, perl, and GNU make). The extension data
is regenerated from the top level source directory with:
make extensions
An alternative to generating the GLEW sources from scratch is to
download a pre-generated (unsupported) snapshot:
https://sourceforge.net/projects/glew/files/glew/snapshots/
......@@ -490,5 +490,21 @@ EOT
grep -v 'glBlendBarrierKHR' $1/GL_KHR_blend_equation_advanced_coherent > tmp
mv tmp $1/GL_KHR_blend_equation_advanced_coherent
# Filter out GL_NONE enum from GL_KHR_robustness
grep -v 'GL_NONE' $1/GL_KHR_context_flush_control > tmp
mv tmp $1/GL_KHR_context_flush_control
# Filter out CoverageModulation from NV_framebuffer_mixed_samples
# Superset of EXT_raster_multisample
grep -v "CoverageModulation" $1/GL_NV_framebuffer_mixed_samples > tmp
mv tmp $1/GL_NV_framebuffer_mixed_samples
# Filter out glRasterSamplesEXT from NV_framebuffer_mixed_samples
# Superset of EXT_raster_multisample
grep -v "RasterSamplesEXT" $1/GL_NV_framebuffer_mixed_samples > tmp
mv tmp $1/GL_NV_framebuffer_mixed_samples
# clean up
rm -f $1/*.bak
......@@ -156,7 +156,11 @@ sub output_tokens($$)
if (${$tbl}{$b} =~ /_/) {
1
} else {
hex ${$tbl}{$a} <=> hex ${$tbl}{$b}
if (hex ${$tbl}{$a} eq hex ${$tbl}{$b}) {
$a cmp $b
} else {
hex ${$tbl}{$a} <=> hex ${$tbl}{$b}
}
}
}
}
......
......@@ -20,7 +20,7 @@ my @sections = (
"Name",
"Name Strings?",
"New Procedures and Functions",
"New Tokens",
"New Tokens.*", # Optional (GL/WGL/GLX/...) suffix
"Additions to Chapter.*",
);
......@@ -350,7 +350,12 @@ foreach my $spec (sort @speclist)
if (${$tokens}{$b} =~ /_/) {
1
} else {
hex ${$tokens}{$a} <=> hex ${$tokens}{$b}
if (hex ${$tokens}{$a} eq hex ${$tokens}{$b})
{
$a cmp $b
} else {
hex ${$tokens}{$a} <=> hex ${$tokens}{$b}
}
}
}
}
......
......@@ -19,7 +19,7 @@ if [ ! -d $1 ] ; then
mkdir -p $1
# Parse each of the extensions in the registry
find $2 -name doc -type d -prune -o -name \*.txt -print | \
find $2 -name doc -type d -prune -o -name "*.txt" -print | \
grep -v -f $3 | sort | bin/parse_spec.pl $1
fi
GL_NV_path_rendering
http://www.opengl.org/registry/specs/NV/path_rendering.txt
GL_NV_path_rendering
GL_CLOSE_PATH_NV 0x00
GL_BOLD_BIT_NV 0x01
GL_GLYPH_WIDTH_BIT_NV 0x01
GL_GLYPH_HEIGHT_BIT_NV 0x02
GL_ITALIC_BIT_NV 0x02
GL_MOVE_TO_NV 0x02
GL_RELATIVE_MOVE_TO_NV 0x03
GL_LINE_TO_NV 0x04
GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV 0x04
GL_RELATIVE_LINE_TO_NV 0x05
GL_HORIZONTAL_LINE_TO_NV 0x06
GL_RELATIVE_HORIZONTAL_LINE_TO_NV 0x07
GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV 0x08
GL_VERTICAL_LINE_TO_NV 0x08
GL_RELATIVE_VERTICAL_LINE_TO_NV 0x09
GL_QUADRATIC_CURVE_TO_NV 0x0A
GL_RELATIVE_QUADRATIC_CURVE_TO_NV 0x0B
GL_CUBIC_CURVE_TO_NV 0x0C
GL_RELATIVE_CUBIC_CURVE_TO_NV 0x0D
GL_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0E
GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0F
GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV 0x10
GL_SMOOTH_CUBIC_CURVE_TO_NV 0x10
GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV 0x11
GL_SMALL_CCW_ARC_TO_NV 0x12
GL_RELATIVE_SMALL_CCW_ARC_TO_NV 0x13
GL_SMALL_CW_ARC_TO_NV 0x14
GL_RELATIVE_SMALL_CW_ARC_TO_NV 0x15
GL_LARGE_CCW_ARC_TO_NV 0x16
GL_RELATIVE_LARGE_CCW_ARC_TO_NV 0x17
GL_LARGE_CW_ARC_TO_NV 0x18
GL_RELATIVE_LARGE_CW_ARC_TO_NV 0x19
GL_GLYPH_VERTICAL_BEARING_X_BIT_NV 0x20
GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV 0x40
GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV 0x80
GL_RESTART_PATH_NV 0xF0
GL_DUP_FIRST_CUBIC_CURVE_TO_NV 0xF2
GL_DUP_LAST_CUBIC_CURVE_TO_NV 0xF4
GL_RECT_NV 0xF6
GL_CIRCULAR_CCW_ARC_TO_NV 0xF8
GL_CIRCULAR_CW_ARC_TO_NV 0xFA
GL_CIRCULAR_TANGENT_ARC_TO_NV 0xFC
GL_ARC_TO_NV 0xFE
GL_RELATIVE_ARC_TO_NV 0xFF
GL_GLYPH_HAS_KERNING_BIT_NV 0x100
GL_PRIMARY_COLOR 0x8577
GL_PATH_FORMAT_SVG_NV 0x9070
GL_PATH_FORMAT_PS_NV 0x9071
GL_STANDARD_FONT_NAME_NV 0x9072
GL_SYSTEM_FONT_NAME_NV 0x9073
GL_FILE_NAME_NV 0x9074
GL_PATH_STROKE_WIDTH_NV 0x9075
GL_PATH_END_CAPS_NV 0x9076
GL_PATH_INITIAL_END_CAP_NV 0x9077
GL_PATH_TERMINAL_END_CAP_NV 0x9078
GL_PATH_JOIN_STYLE_NV 0x9079
GL_PATH_MITER_LIMIT_NV 0x907A
GL_PATH_DASH_CAPS_NV 0x907B
GL_PATH_INITIAL_DASH_CAP_NV 0x907C
GL_PATH_TERMINAL_DASH_CAP_NV 0x907D
GL_PATH_DASH_OFFSET_NV 0x907E
GL_PATH_CLIENT_LENGTH_NV 0x907F
GL_PATH_FILL_MODE_NV 0x9080
GL_PATH_FILL_MASK_NV 0x9081
GL_PATH_FILL_COVER_MODE_NV 0x9082
GL_PATH_STROKE_COVER_MODE_NV 0x9083
GL_PATH_STROKE_MASK_NV 0x9084
GL_COUNT_UP_NV 0x9088
GL_COUNT_DOWN_NV 0x9089
GL_PATH_OBJECT_BOUNDING_BOX_NV 0x908A
GL_CONVEX_HULL_NV 0x908B
GL_BOUNDING_BOX_NV 0x908D
GL_TRANSLATE_X_NV 0x908E
GL_TRANSLATE_Y_NV 0x908F
GL_TRANSLATE_2D_NV 0x9090
GL_TRANSLATE_3D_NV 0x9091
GL_AFFINE_2D_NV 0x9092
GL_AFFINE_3D_NV 0x9094
GL_TRANSPOSE_AFFINE_2D_NV 0x9096
GL_TRANSPOSE_AFFINE_3D_NV 0x9098
GL_UTF8_NV 0x909A
GL_UTF16_NV 0x909B
GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV 0x909C
GL_PATH_COMMAND_COUNT_NV 0x909D
GL_PATH_COORD_COUNT_NV 0x909E
GL_PATH_DASH_ARRAY_COUNT_NV 0x909F
GL_PATH_COMPUTED_LENGTH_NV 0x90A0
GL_PATH_FILL_BOUNDING_BOX_NV 0x90A1
GL_PATH_STROKE_BOUNDING_BOX_NV 0x90A2
GL_SQUARE_NV 0x90A3
GL_ROUND_NV 0x90A4
GL_TRIANGULAR_NV 0x90A5
GL_BEVEL_NV 0x90A6
GL_MITER_REVERT_NV 0x90A7
GL_MITER_TRUNCATE_NV 0x90A8
GL_SKIP_MISSING_GLYPH_NV 0x90A9
GL_USE_MISSING_GLYPH_NV 0x90AA
GL_PATH_ERROR_POSITION_NV 0x90AB
GL_PATH_FOG_GEN_MODE_NV 0x90AC
GL_ACCUM_ADJACENT_PAIRS_NV 0x90AD
GL_ADJACENT_PAIRS_NV 0x90AE
GL_FIRST_TO_REST_NV 0x90AF
GL_PATH_GEN_MODE_NV 0x90B0
GL_PATH_GEN_COEFF_NV 0x90B1
GL_PATH_GEN_COLOR_FORMAT_NV 0x90B2
GL_PATH_GEN_COMPONENTS_NV 0x90B3
GL_PATH_DASH_OFFSET_RESET_NV 0x90B4
GL_MOVE_TO_RESETS_NV 0x90B5
GL_MOVE_TO_CONTINUES_NV 0x90B6
GL_PATH_STENCIL_FUNC_NV 0x90B7
GL_PATH_STENCIL_REF_NV 0x90B8
GL_PATH_STENCIL_VALUE_MASK_NV 0x90B9
GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV 0x90BD
GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV 0x90BE
GL_PATH_COVER_DEPTH_FUNC_NV 0x90BF
GL_FONT_X_MIN_BOUNDS_BIT_NV 0x00010000
GL_FONT_Y_MIN_BOUNDS_BIT_NV 0x00020000
GL_FONT_X_MAX_BOUNDS_BIT_NV 0x00040000
GL_FONT_Y_MAX_BOUNDS_BIT_NV 0x00080000
GL_FONT_UNITS_PER_EM_BIT_NV 0x00100000
GL_FONT_ASCENDER_BIT_NV 0x00200000
GL_FONT_DESCENDER_BIT_NV 0x00400000
GL_FONT_HEIGHT_BIT_NV 0x00800000
GL_FONT_MAX_ADVANCE_WIDTH_BIT_NV 0x01000000
GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV 0x02000000
GL_FONT_UNDERLINE_POSITION_BIT_NV 0x04000000
GL_FONT_UNDERLINE_THICKNESS_BIT_NV 0x08000000
GL_FONT_HAS_KERNING_BIT_NV 0x10000000
void glCopyPathNV (GLuint resultPath, GLuint srcPath)
void glCoverFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues)
void glCoverFillPathNV (GLuint path, GLenum coverMode)
void glCoverStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues)
void glCoverStrokePathNV (GLuint name, GLenum coverMode)
void glDeletePathsNV (GLuint path, GLsizei range)
GLuint glGenPathsNV (GLsizei range)
void glGetPathColorGenfvNV (GLenum color, GLenum pname, GLfloat* value)
void glGetPathColorGenivNV (GLenum color, GLenum pname, GLint* value)
void glGetPathCommandsNV (GLuint name, GLubyte* commands)
void glGetPathCoordsNV (GLuint name, GLfloat* coords)
void glGetPathDashArrayNV (GLuint name, GLfloat* dashArray)
GLfloat glGetPathLengthNV (GLuint path, GLsizei startSegment, GLsizei numSegments)
void glGetPathMetricRangeNV (GLbitfield metricQueryMask, GLuint fistPathName, GLsizei numPaths, GLsizei stride, GLfloat* metrics)
void glGetPathMetricsNV (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLsizei stride, GLfloat *metrics)
void glGetPathParameterfvNV (GLuint name, GLenum param, GLfloat* value)
void glGetPathParameterivNV (GLuint name, GLenum param, GLint* value)
void glGetPathSpacingNV (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing)
void glGetPathTexGenfvNV (GLenum texCoordSet, GLenum pname, GLfloat* value)
void glGetPathTexGenivNV (GLenum texCoordSet, GLenum pname, GLint* value)
void glInterpolatePathsNV (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight)
GLboolean glIsPathNV (GLuint path)
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 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 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)
void glPathParameterivNV (GLuint path, GLenum pname, const GLint* value)
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 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)
void glStencilFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues)
void glStencilFillPathNV (GLuint path, GLenum fillMode, GLuint mask)
void glStencilStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues)
void glStencilStrokePathNV (GLuint path, GLint reference, GLuint mask)
void glTransformPathNV (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat* transformValues)
void glWeightPathsNV (GLuint resultPath, GLsizei numPaths, const GLuint paths[], const GLfloat weights[])
GL_VERSION_4_2
https://www.opengl.org/registry/doc/glspec42.compatibility.20120427.pdf
GL_COPY_READ_BUFFER_BINDING 0x8F36
GL_COPY_WRITE_BUFFER_BINDING 0x8F37
GL_COMPRESSED_RGBA_BPTC_UNORM 0x8E8C
GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D
GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E
......
GL_VERSION_4_5
https://www.opengl.org/registry/doc/glspec45.compatibility.pdf
GLenum glGetGraphicsResetStatus (void)
......@@ -42,7 +42,8 @@
<li>wget</li>
<li>GNU sed</li>
<li>gcc compiler</li>
<li>git</li>
</ul>
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>
Ubuntu: <pre>sudo apt-get install libXmu-dev libXi-dev libgl-dev dos2unix git wget</pre>
Fedora: <pre>sudo yum install libXmu-devel libXi-devel libGL-devel dos2unix git wget</pre>
......@@ -13,7 +13,7 @@ Mac OS X, FreeBSD, Irix, and Solaris.
<a href="http://sourceforge.net/projects/glew/">GLEW</a> is distributed
as source and precompiled binaries.<br/>
The latest release is
<a href="https://sourceforge.net/projects/glew/files/glew/1.11.0/">1.11.0</a>[08-11-14]:
<a href="https://sourceforge.net/projects/glew/files/glew/1.12.0/">1.12.0</a>[26-01-15]:
</p>
<p>
</p>
......@@ -27,8 +27,8 @@ The latest release is
<td align="right"><b>Source</b></td>
<td></td>
<td align="left">
<a href="https://sourceforge.net/projects/glew/files/glew/1.11.0/glew-1.11.0.zip/download">ZIP</a>&nbsp;|&nbsp;
<a href="https://sourceforge.net/projects/glew/files/glew/1.11.0/glew-1.11.0.tgz/download">TGZ</a></td>
<a href="https://sourceforge.net/projects/glew/files/glew/1.12.0/glew-1.12.0.zip/download">ZIP</a>&nbsp;|&nbsp;
<a href="https://sourceforge.net/projects/glew/files/glew/1.12.0/glew-1.12.0.tgz/download">TGZ</a></td>
<td></td>
</tr>
<tr>
......@@ -36,7 +36,7 @@ The latest release is
<td align="right"><b>Binaries</b></td>
<td></td>
<td align="left">
<a href="https://sourceforge.net/projects/glew/files/glew/1.11.0/glew-1.11.0-win32.zip/download">Windows 32-bit and 64-bit</a>
<a href="https://sourceforge.net/projects/glew/files/glew/1.12.0/glew-1.12.0-win32.zip/download">Windows 32-bit and 64-bit</a>
</td>
<td></td>
</tr>
......@@ -60,14 +60,13 @@ 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-20140726.tgz/download">glew-20140726.tgz</a></li>
<li><a href="http://sourceforge.net/projects/glew/files/glew/snapshots/glew-20140206.tgz/download">glew-20140206.tgz</a></li>
<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-20150124.tgz/download">glew-20150124.tgz</a></li>
<li><a href="http://sourceforge.net/projects/glew/files/glew/snapshots/glew-20140918.tgz/download">glew-20140918.tgz</a></li>
</ul>
<h2>Supported Extensions</h2>
<p>
The latest release contains support for OpenGL 4.4 and the following extensions:
The latest release contains support for OpenGL 4.5 and the following extensions:
</p>
<ul>
<li><a href="glew.html">OpenGL extensions</a>
......@@ -77,6 +76,7 @@ The latest release contains support for OpenGL 4.4 and the following extensions:
<h2>News</h2>
<ul>
<li>[26-01-15] <a href="https://sourceforge.net/projects/glew/files/glew/1.12.0/">GLEW 1.12.0</a> fixes minor bugs and adds new extensions</li>
<li>[08-11-14] <a href="https://sourceforge.net/projects/glew/files/glew/1.11.0/">GLEW 1.11.0</a> adds support for OpenGL 4.5, new extensions</li>
<li>[07-22-13] <a href="https://sourceforge.net/projects/glew/files/glew/1.10.0/">GLEW 1.10.0</a> adds support for OpenGL 4.4, new extensions</li>
<li>[08-06-12] <a href="https://sourceforge.net/projects/glew/files/glew/1.9.0/">GLEW 1.9.0</a> adds support for OpenGL 4.3, new extensions</li>
......@@ -112,9 +112,9 @@ The latest release contains support for OpenGL 4.4 and the following extensions:
<h2>Links</h2>
<ul>
<li><a href="http://www.opengl.org/sdk/">OpenGL Software Development Kit</a></li>
<li><a href="http://www.opengl.org/resources/features/OGLextensions/">All About OpenGL Extensions</a></li>
<li><a href="http://www.opengl.org/registry/">OpenGL Extension Registry</a></li>
<li><a href="http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Conceptual/OpenGLExtensionsGuide/Reference/reference.html">APPLE OpenGL Extensions Guide</a></li>
<li><a href="https://www.opengl.org/wiki/OpenGL_Extension">OpenGL Wiki: Extensions</a></li>
<li><a href="http://developer.nvidia.com/nvidia-opengl-specs">NVIDIA OpenGL Extension Specifications</a></li>
<li><a href="http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Conceptual/OpenGLExtensionsGuide/Reference/reference.html">Apple OpenGL Extensions Guide</a></li>
</ul>
<h2>Change Log</h2>
<hr align="center">
<ul class="none">
<li><b>1.12.0</b> [26-01-15]
<ul>
<li> New extensions:
<ul>
<li> GL_EXT_polygon_offset_clamp
<li> GL_EXT_post_depth_coverage
<li> GL_EXT_raster_multisample
<li> GL_EXT_sparse_texture2
<li> GL_EXT_texture_filter_minmax
<li> GL_NV_conservative_raster
<li> GL_NV_fill_rectangle
<li> GL_NV_fragment_coverage_to_color
<li> GL_NV_fragment_shader_interlock
<li> GL_NV_framebuffer_mixed_samples
<li> GL_NV_geometry_shader_passthrough
<li> GL_NV_internalformat_sample_query
<li> GL_NV_sample_locations
<li> GL_NV_sample_mask_override_coverage
<li> GL_NV_shader_atomic_fp16_vector
<li> GL_NV_uniform_buffer_unified_memory
<li> GL_NV_viewport_array2
</ul>
<li> <a href="http://sourceforge.net/p/glew/bugs/milestone/1.12.0/">Bug fixes</a>
</ul>
</ul>
<hr align="center">
<ul class="none">
<li><b>1.11.0</b> [08-11-14]
......@@ -19,7 +47,6 @@
<li> GL_ARB_ES3_1_compatibility
<li> GL_ARB_clip_control
<li> GL_ARB_conditional_render_inverted
<li> GL_ARB_context_flush_control
<li> GL_ARB_cull_distance
<li> GL_ARB_derivative_control
<li> GL_ARB_direct_state_access
......@@ -36,6 +63,7 @@
<li> GL_INTEL_performance_query
<li> GL_KHR_blend_equation_advanced
<li> GL_KHR_blend_equation_advanced_coherent
<li> GL_KHR_context_flush_control
<li> GL_KHR_robust_buffer_access_behavior
<li> GL_KHR_robustness
<li> GL_KHR_texture_compression_astc_hdr
......
GLX_ARB_context_flush_control
http://www.opengl.org/registry/specs/KHR/context_flush_control.txt
GLX_ARB_context_flush_control
GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0x0000
GLX_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097
GLX_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098
......@@ -41,6 +41,10 @@ GL_ARB_direct_state_access
void glGetNamedFramebufferAttachmentParameteriv (GLuint framebuffer, GLenum attachment, GLenum pname, GLint* params)
void glGetNamedFramebufferParameteriv (GLuint framebuffer, GLenum pname, GLint* param)
void glGetNamedRenderbufferParameteriv (GLuint renderbuffer, GLenum pname, GLint* params)
void glGetQueryBufferObjecti64v (GLuint id,GLuint buffer,GLenum pname,GLintptr offset)
void glGetQueryBufferObjectiv (GLuint id,GLuint buffer,GLenum pname,GLintptr offset)
void glGetQueryBufferObjectui64v (GLuint id,GLuint buffer,GLenum pname,GLintptr offset)
void glGetQueryBufferObjectuiv (GLuint id,GLuint buffer,GLenum pname,GLintptr offset)
void glGetTextureImage (GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels)
void glGetTextureLevelParameterfv (GLuint texture, GLint level, GLenum pname, GLfloat* params)
void glGetTextureLevelParameteriv (GLuint texture, GLint level, GLenum pname, GLint* params)
......
GL_EXT_polygon_offset_clamp
http://www.opengl.org/registry/specs/EXT/polygon_offset_clamp.txt
GL_EXT_polygon_offset_clamp
GL_POLYGON_OFFSET_CLAMP_EXT 0x8E1B
void glPolygonOffsetClampEXT (GLfloat factor, GLfloat units, GLfloat clamp)
GL_EXT_post_depth_coverage
http://www.opengl.org/registry/specs/EXT/post_depth_coverage.txt
GL_EXT_post_depth_coverage
GL_EXT_raster_multisample
http://www.opengl.org/registry/specs/NV/framebuffer_mixed_samples.txt
GL_EXT_raster_multisample
GL_COLOR_SAMPLES_NV 0x8E20
GL_RASTER_MULTISAMPLE_EXT 0x9327
GL_RASTER_SAMPLES_EXT 0x9328
GL_MAX_RASTER_SAMPLES_EXT 0x9329
GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT 0x932A
GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT 0x932B
GL_EFFECTIVE_RASTER_SAMPLES_EXT 0x932C
GL_DEPTH_SAMPLES_NV 0x932D
GL_STENCIL_SAMPLES_NV 0x932E
GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NV 0x932F
GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NV 0x9330
GL_COVERAGE_MODULATION_TABLE_NV 0x9331
GL_COVERAGE_MODULATION_NV 0x9332
GL_COVERAGE_MODULATION_TABLE_SIZE_NV 0x9333
void glCoverageModulationNV (GLenum components)
void glCoverageModulationTableNV (GLsizei n, const GLfloat* v)
void glGetCoverageModulationTableNV (GLsizei bufsize, GLfloat* v)
void glRasterSamplesEXT (GLuint samples, GLboolean fixedsamplelocations)
GL_EXT_sparse_texture2
http://www.opengl.org/registry/specs/EXT/sparse_texture2.txt
GL_EXT_sparse_texture2
GL_EXT_texture_filter_minmax
http://www.opengl.org/registry/specs/EXT/texture_filter_minmax.txt
GL_EXT_texture_filter_minmax
GL_TEXTURE_REDUCTION_MODE_EXT 0x9366
GL_WEIGHTED_AVERAGE_EXT 0x9367
GL_KHR_context_flush_control
http://www.opengl.org/registry/specs/KHR/context_flush_control.txt
GL_KHR_context_flush_control
GL_CONTEXT_RELEASE_BEHAVIOR 0x82FB
GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82FC
GL_NV_conservative_raster
http://www.opengl.org/registry/specs/NV/conservative_raster.txt
GL_NV_conservative_raster
GL_CONSERVATIVE_RASTERIZATION_NV 0x9346
GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV 0x9347
GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV 0x9348
GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV 0x9349
void glSubpixelPrecisionBiasNV (GLuint xbits, GLuint ybits)
GL_NV_fill_rectangle
http://www.opengl.org/registry/specs/NV/fill_rectangle.txt
GL_NV_fill_rectangle
GL_FILL_RECTANGLE_NV 0x933C
GL_NV_fragment_coverage_to_color
http://www.opengl.org/registry/specs/NV/fragment_coverage_to_color.txt
GL_NV_fragment_coverage_to_color
GL_FRAGMENT_COVERAGE_TO_COLOR_NV 0x92DD
GL_FRAGMENT_COVERAGE_COLOR_NV 0x92DE
void glFragmentCoverageColorNV (GLuint color)
GL_NV_fragment_shader_interlock
http://www.opengl.org/registry/specs/NV/fragment_shader_interlock.txt
GL_NV_fragment_shader_interlock
GL_NV_framebuffer_mixed_samples
http://www.opengl.org/registry/specs/NV/framebuffer_mixed_samples.txt
GL_NV_framebuffer_mixed_samples
GL_COLOR_SAMPLES_NV 0x8E20
GL_RASTER_MULTISAMPLE_EXT 0x9327
GL_RASTER_SAMPLES_EXT 0x9328
GL_MAX_RASTER_SAMPLES_EXT 0x9329
GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT 0x932A
GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT 0x932B
GL_EFFECTIVE_RASTER_SAMPLES_EXT 0x932C
GL_DEPTH_SAMPLES_NV 0x932D
GL_STENCIL_SAMPLES_NV 0x932E
GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NV 0x932F
GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NV 0x9330
GL_COVERAGE_MODULATION_TABLE_NV 0x9331
GL_COVERAGE_MODULATION_NV 0x9332
GL_COVERAGE_MODULATION_TABLE_SIZE_NV 0x9333
GL_NV_geometry_shader_passthrough
http://www.opengl.org/registry/specs/NV/geometry_shader_passthrough.txt
GL_NV_geometry_shader_passthrough
GL_NV_internalformat_sample_query
http://www.opengl.org/registry/specs/NV/internalformat_sample_query.txt
GL_NV_internalformat_sample_query
GL_MULTISAMPLES_NV 0x9371
GL_SUPERSAMPLE_SCALE_X_NV 0x9372
GL_SUPERSAMPLE_SCALE_Y_NV 0x9373
GL_CONFORMANT_NV 0x9374
void glGetInternalformatSampleivNV (GLenum target, GLenum internalformat, GLsizei samples, GLenum pname, GLsizei bufSize, GLint* params)
This diff is collapsed.
GL_NV_path_rendering_shared_edge
http://www.opengl.org/registry/specs/NV/path_rendering_shared_edge.txt
GL_NV_path_rendering_shared_edge
GL_SHARED_EDGE_NV 0xC0
GL_NV_sample_locations
http://www.opengl.org/registry/specs/NV/sample_locations.txt
GL_NV_sample_locations
GL_SAMPLE_LOCATION_NV 0x8E50
GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV 0x933D
GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV 0x933E
GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV 0x933F
GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV 0x9340
GL_PROGRAMMABLE_SAMPLE_LOCATION_NV 0x9341
GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV 0x9342
GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV 0x9343
void glFramebufferSampleLocationsfvNV (GLenum target, GLuint start, GLsizei count, const GLfloat* v)
void glNamedFramebufferSampleLocationsfvNV (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat* v)
GL_NV_sample_mask_override_coverage
http://www.opengl.org/registry/specs/NV/sample_mask_override_coverage.txt
GL_NV_sample_mask_override_coverage
GL_NV_shader_atomic_fp16_vector
http://www.opengl.org/registry/specs/NV/shader_atomic_fp16_vector.txt
GL_NV_shader_atomic_fp16_vector
GL_NV_uniform_buffer_unified_memory
http://www.opengl.org/registry/specs/NV/uniform_buffer_unified_memory.txt
GL_NV_uniform_buffer_unified_memory
GL_UNIFORM_BUFFER_UNIFIED_NV 0x936E
GL_UNIFORM_BUFFER_ADDRESS_NV 0x936F
GL_UNIFORM_BUFFER_LENGTH_NV 0x9370
GL_NV_viewport_array2
http://www.opengl.org/registry/specs/NV/viewport_array2.txt
GL_NV_viewport_array2
GL_OES_single_precision
http://www.opengl.org/registry/specs/OES/OES_single_precision.txt
GL_OES_single_precision
void glClearDepthfOES (GLclampd depth)
void glClearDepthfOES (GLclampf depth)
void glClipPlanefOES (GLenum plane, const GLfloat* equation)
void glDepthRangefOES (GLclampf n, GLclampf f)
void glFrustumfOES (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f)
......
WGL_ARB_context_flush_control
http://www.opengl.org/registry/specs/KHR/context_flush_control.txt
WGL_ARB_context_flush_control
WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0x0000
WGL_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097
WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098
......@@ -211,7 +211,7 @@ static GLboolean _glewStrSame (const GLubyte* a, const GLubyte* b, GLuint n)
return i == n ? GL_TRUE : GL_FALSE;
}
static GLboolean _glewStrSame1 (GLubyte** a, GLuint* na, const GLubyte* b, GLuint nb)
static GLboolean _glewStrSame1 (const GLubyte** a, GLuint* na, const GLubyte* b, GLuint nb)
{
while (*na > 0 && (**a == ' ' || **a == '\n' || **a == '\r' || **a == '\t'))