-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds GLSLComputeShader Added OpenGLFunctions object wrapping all GL functions Every OpenGLContext now has access to OpenGLFunctions object initialized with all the available functions according to the current GL context capabilities Upgraded GL headers to latest 4.6 Revamped GL headers and GL function handling: GL function list generated directly from latest GL headers via scripts Removed legacy GLES code Removed legacy VL_... wrapper functions for GL functions coming from different extensions
- Loading branch information
Showing
76 changed files
with
24,217 additions
and
35,858 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# Usage: ./generate_GLExtensionList.sh > ../src/vlGraphics/GL/GLExtensionList.hpp | ||
|
||
GLDIR=../src/external/Khronos/GL | ||
|
||
echo '// File automatically generated on '$(date '+%Y-%m-%d %H:%M:%S') | ||
|
||
echo | ||
echo '// GL Extensions' | ||
echo | ||
sed -n "s/#ifndef\s*\(GL_.*_[_a-zA-Z0-9]*\)/\1/p" $GLDIR/khronos_glext.h | sort | grep -v GL_VERSION | xargs -L 1 -I {} echo 'VL_EXTENSION('{}')' | ||
echo | ||
echo '// GLX Extensions' | ||
echo | ||
sed -n "s/#ifndef\s*\(GLX_.*_[_a-zA-Z0-9]*\)/\1/p" $GLDIR/khronos_glxext.h | sort | xargs -L 1 -I {} echo 'VL_EXTENSION('{}')' | ||
echo | ||
echo '// WGL Extensions' | ||
echo | ||
sed -n "s/#ifndef\s*\(WGL_.*_[_a-zA-Z0-9]*\)/\1/p" $GLDIR/khronos_wglext.h | sort | xargs -L 1 -I {} echo 'VL_EXTENSION('{}')' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
# Usage: ./generate_GLFunctionList.sh > ../src/vlGraphics/GL/GLFunctionList.hpp | ||
|
||
GLDIR=../src/external/Khronos/GL | ||
|
||
echo '// File automatically generated on '$(date '+%Y-%m-%d %H:%M:%S') | ||
|
||
echo | ||
echo '// GL Extensions' | ||
echo | ||
sed -n -E "s/.*\s*APIENTRY\s*(gl[^(]*).*/VL_GL_FUNCTION( PFN\\U\\1PROC, \\E\\1 )/p" $GLDIR/khronos_glext.h | sort | ||
echo | ||
echo '// WGL Extensions' | ||
echo | ||
echo '#if defined(VL_PLATFORM_WINDOWS)' | ||
sed -n -E "s/.*\s*WINAPI\s*(wgl[^(]*).*/VL_GL_FUNCTION( PFN\\U\\1PROC, \\E\\1 )/p" $GLDIR/khronos_wglext.h | sort | ||
echo '#endif' | ||
echo | ||
echo '// GLX Extensions' | ||
echo | ||
echo '#if defined(VL_PLATFORM_LINUX)' | ||
sed -n -E "s/.*\s*(glX[^(]*).*/VL_GL_FUNCTION( PFN\\U\\1PROC, \\E\\1 )/p" $GLDIR/khronos_glxext.h | sort | ||
echo '#endif' | ||
echo | ||
echo '#if defined(VL_PLATFORM_MACOSX)' | ||
echo ' Nothing to do here?' | ||
echo '#endif' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# Usage: ./generate_GLFunctionList_1_1.sh > ../src/vlGraphics/GL/GLFunctionList_1_1.hpp | ||
# Note: to generate gl_1_1.h take Mesa's or Win's gl.h and remove all functions above 1.1 | ||
|
||
GLDIR=../src/external/Khronos/GL | ||
|
||
echo '// File automatically generated on '$(date '+%Y-%m-%d %H:%M:%S') | ||
|
||
echo | ||
echo '// GL 1.1 Functions' | ||
echo | ||
sed -n -E "s/.*\s*APIENTRY\s*(gl[^(]*).*/VL_GL_FUNCTION( \\1 )/p" gl_1_1.h | sort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.