pax_global_header00006660000000000000000000000064134744440110014514gustar00rootroot0000000000000052 comment=78e495c9e98f2e88813a128fb82af961628d8e27 glad-0.1.30/000077500000000000000000000000001347444401100125045ustar00rootroot00000000000000glad-0.1.30/.gitignore000066400000000000000000000002401347444401100144700ustar00rootroot00000000000000*.pyc /*.xml *.kdev4 build/ *.o *.a a.out *.kdev_include_paths main.c *.diff .idea dist/ *.egg-info /khrplatform.h /eglplatform.h /vk_platform.h rust/ glad-rs/ glad-0.1.30/CMakeLists.txt000066400000000000000000000115061347444401100152470ustar00rootroot00000000000000cmake_minimum_required(VERSION 3.0) # Silence warning about PROJECT_VERSION cmake_policy(SET CMP0048 NEW) # Enable MACOSX_RPATH by default cmake_policy(SET CMP0042 NEW) if(NOT CMAKE_VERSION VERSION_LESS 3.1) # Silence warning about if() cmake_policy(SET CMP0054 NEW) endif() project(GLAD VERSION 0.1.30 LANGUAGES C) set(GLAD_DIR "${CMAKE_CURRENT_SOURCE_DIR}") set(GLAD_OUT_DIR "${CMAKE_CURRENT_BINARY_DIR}") find_package(PythonInterp REQUIRED) # Options set(GLAD_PROFILE "compatibility" CACHE STRING "OpenGL profile") set(GLAD_API "" CACHE STRING "API type/version pairs, like \"gl=3.2,gles=\", no version means latest") set(GLAD_GENERATOR "c" CACHE STRING "Language to generate the binding for") set(GLAD_EXTENSIONS "" CACHE STRING "Path to extensions file or comma separated list of extensions, if missing all extensions are included") set(GLAD_SPEC "gl" CACHE STRING "Name of the spec") option(GLAD_NO_LOADER "No loader" OFF) option(GLAD_REPRODUCIBLE "Reproducible build" OFF) if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) option(GLAD_EXPORT "Set export variables for external project" OFF) else() option(GLAD_EXPORT "Set export variables for external project" ON) endif() option(GLAD_INSTALL "Generate installation target" OFF) if(GLAD_GENERATOR STREQUAL "d") list(APPEND GLAD_SOURCES "${GLAD_OUT_DIR}/glad/gl/all.d" "${GLAD_OUT_DIR}/glad/gl/enums.d" "${GLAD_OUT_DIR}/glad/gl/ext.d" "${GLAD_OUT_DIR}/glad/gl/funcs.d" "${GLAD_OUT_DIR}/glad/gl/gl.d" "${GLAD_OUT_DIR}/glad/gl/loader.d" "${GLAD_OUT_DIR}/glad/gl/types.d" ) elseif(GLAD_GENERATOR STREQUAL "volt") list(APPEND GLAD_SOURCES "${GLAD_OUT_DIR}/amp/gl/enums.volt" "${GLAD_OUT_DIR}/amp/gl/ext.volt" "${GLAD_OUT_DIR}/amp/gl/funcs.volt" "${GLAD_OUT_DIR}/amp/gl/gl.volt" "${GLAD_OUT_DIR}/amp/gl/loader.volt" "${GLAD_OUT_DIR}/amp/gl/package.volt" "${GLAD_OUT_DIR}/amp/gl/types.volt" ) else() set(GLAD_INCLUDE_DIRS "${GLAD_OUT_DIR}/include") list(APPEND GLAD_SOURCES "${GLAD_OUT_DIR}/src/glad.c" "${GLAD_INCLUDE_DIRS}/glad/glad.h" ) endif() if(GLAD_NO_LOADER) set(GLAD_NO_LOADER_ARG "--no-loader") endif() if(GLAD_REPRODUCIBLE) set(GLAD_REPRODUCIBLE_ARG "--reproducible") endif() add_custom_command( OUTPUT ${GLAD_SOURCES} COMMAND ${PYTHON_EXECUTABLE} -m glad --profile=${GLAD_PROFILE} --out-path=${GLAD_OUT_DIR} --api=${GLAD_API} --generator=${GLAD_GENERATOR} --extensions=${GLAD_EXTENSIONS} --spec=${GLAD_SPEC} ${GLAD_NO_LOADER_ARG} ${GLAD_REPRODUCIBLE_ARG} WORKING_DIRECTORY ${GLAD_DIR} COMMENT "Generating GLAD" ) add_custom_target(glad-generate-files DEPENDS ${GLAD_SOURCES}) set_source_files_properties(${GLAD_SOURCES} PROPERTIES GENERATED TRUE) add_library(glad ${GLAD_SOURCES}) add_dependencies(glad glad-generate-files) target_include_directories(glad PUBLIC $ INTERFACE $) # Are we building a shared library? get_target_property(library_type glad TYPE) if (library_type STREQUAL SHARED_LIBRARY) # If so, define the macro GLAD_API_EXPORT on the command line. target_compile_definitions(glad PUBLIC GLAD_GLAPI_EXPORT PRIVATE GLAD_GLAPI_EXPORT_BUILD) endif() if(GLAD_LINKER_LANGUAGE) set_target_properties(glad PROPERTIES LINKER_LANGUAGE ${GLAD_LINKER_LANGUAGE}) endif() # Export if(GLAD_EXPORT) set(GLAD_LIBRARIES glad PARENT_SCOPE) set(GLAD_INCLUDE_DIRS ${GLAD_INCLUDE_DIRS} PARENT_SCOPE) endif() # Install if(GLAD_INSTALL) set(config_install_dir "lib/cmake/glad") set(version_config "${CMAKE_CURRENT_BINARY_DIR}/gladConfigVersion.cmake") set(project_config "${CMAKE_CURRENT_BINARY_DIR}/gladConfig.cmake") set(targets_export_name "gladTargets") set(namespace "glad::") # Include module with fuction 'write_basic_package_version_file' include(CMakePackageConfigHelpers) # Configure 'gladConfigVersion.cmake' # PROJECT_VERSION is used as a VERSION write_basic_package_version_file("${version_config}" COMPATIBILITY SameMajorVersion) # Configure 'gladConfig.cmake' # Uses targets_export_name variable. configure_package_config_file( "Config.cmake.in" "${project_config}" INSTALL_DESTINATION "${config_install_dir}") # Targets: install( TARGETS glad EXPORT "${targets_export_name}" LIBRARY DESTINATION "lib" ARCHIVE DESTINATION "lib" RUNTIME DESTINATION "bin" INCLUDES DESTINATION "include") if(GLAD_INCLUDE_DIRS) install( DIRECTORY ${GLAD_INCLUDE_DIRS} DESTINATION ${CMAKE_INSTALL_PREFIX}) endif() # Install gladConfig.cmake, gladConfigVersion.cmake install( FILES "${project_config}" "${version_config}" DESTINATION "${config_install_dir}") # Create and install gladTargets.cmake install( EXPORT "${targets_export_name}" NAMESPACE "${namespace}" DESTINATION "${config_install_dir}") endif() glad-0.1.30/Config.cmake.in000066400000000000000000000001611347444401100153160ustar00rootroot00000000000000@PACKAGE_INIT@ include("${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake") check_required_components(glad) glad-0.1.30/LICENSE000066400000000000000000000020761347444401100135160ustar00rootroot00000000000000The MIT License (MIT) Copyright (c) 2013-2018 David Herberth Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. glad-0.1.30/MANIFEST.in000066400000000000000000000000601347444401100142360ustar00rootroot00000000000000recursive-include glad *.c *.h *.d *.volt *.xml glad-0.1.30/README.md000066400000000000000000000203621347444401100137660ustar00rootroot00000000000000glad ==== GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs. Use the [webservice](https://glad.dav1d.de) to generate the files you need! ```c #include int main(int argc, char **argv) { // .. setup the context if(!gladLoadGL()) { printf("Something went wrong!\n"); exit(-1); } printf("OpenGL %d.%d\n", GLVersion.major, GLVersion.minor); // .. render here .. } ``` Examples: * [simple.c](https://github.com/Dav1dde/glad/blob/master/example/c/simple.c) * [hellowindow2.cpp](https://github.com/Dav1dde/glad/blob/master/example/c%2B%2B/hellowindow2.cpp) using [GLFW](https://glfw.org): ## Usage ## **If you don't want to install glad you can use the [webservice](https://glad.dav1d.de)** Otherwise either install glad via pip: # Windows pip install glad # Linux pip install --user glad # Linux global (root) pip install glad glad --help To install the most recent version from Github: pip install --upgrade git+https://github.com/dav1dde/glad.git#egg=glad Or launch glad directly (after cloning the repository): python -m glad --help Possible commandline options: usage: glad [-h] [--profile {core,compatibility}] --out-path OUT [--api API] --generator {c,d,volt} [--extensions EXTENSIONS] [--spec {gl,egl,glx,wgl}] [--no-loader] Uses the official Khronos-XML specs to generate a GL/GLES/EGL/GLX/WGL Loader made for your needs. Glad currently supports the languages C, D and Volt. optional arguments: -h, --help show this help message and exit --profile {core,compatibility} OpenGL profile (defaults to compatibility) --out-path OUT Output path for loader --api API API type/version pairs, like "gl=3.2,gles=", no version means latest --generator {c,c-debug,d,volt} Language to generate the binding for --extensions EXTENSIONS Path to extensions file or comma separated list of extensions, if missing all extensions are included --spec {gl,egl,glx,wgl} Name of the spec --reproducible Makes the build reproducible by not fetching the latest specification from Khronos --no-loader --omit-khrplatform Omits inclusion of the khrplatform.h file which is often unnecessary. Only has an effect if used together with c generators. --local-files Forces every file directly into the output directory. No src or include subdirectories are generated. Only has an effect if used together with c generators. To generate a loader for C with two extensions, it could look like this: python main.py --generator=c --extensions=GL_EXT_framebuffer_multisample,GL_EXT_texture_filter_anisotropic --out-path=GL `--out-path` and `--generator` are required! If the `--extensions` option is missing, glad adds support for all extensions found in the specification. When integrating glad into your build system the `--reproducible` option is highly recommended, it prevents the build from failing in case Khronos made incompatible changes to the specification. ## Generators ## ### C/C++ ### ```c struct gladGLversionStruct { int major; int minor; }; extern struct gladGLversionStruct GLVersion; typedef void* (* GLADloadproc)(const char *name); /* * Load OpenGL using the internal loader. * Returns the true/1 if loading succeeded. * */ int gladLoadGL(void); /* * Load OpenGL using an external loader like SDL_GL_GetProcAddress. * * Substitute GL with the API you generated * */ int gladLoadGLLoader(GLADloadproc); ``` `glad.h` completely replaces any `gl.h` or `gl3.h` only include `glad.h`. ```c if(!gladLoadGL()) { exit(-1); } printf("OpenGL Version %d.%d loaded", GLVersion.major, GLVersion.minor); if(GLAD_GL_EXT_framebuffer_multisample) { /* GL_EXT_framebuffer_multisample is supported */ } if(GLAD_GL_VERSION_3_0) { /* We support at least OpenGL version 3 */ } ``` On non-Windows platforms glad requires `libdl`, make sure to link with it (`-ldl` for gcc)! Note, there are two kinds of extension/version symbols, e.g. `GL_VERSION_3_0` and `GLAD_VERSION_3_0`. Latter is a runtime boolean (represented as integer), whereas the first (not prefixed with `GLAD_`) is a compiletime-constant, indicating that this header supports this version (the official headers define these symbols as well). The runtime booleans are only valid *after* a succesful call to `gladLoadGL` or `gladLoadGLLoader`. ### C/C++ Debug ### The C-Debug generator extends the API by these two functions: ```c // this symbol only exists if generated with the c-debug generator #define GLAD_DEBUG typedef void (* GLADcallback)(const char *name, void *funcptr, int len_args, ...); /* * Sets a callback which will be called before every function call * to a function loaded by glad. * */ GLAPI void glad_set_pre_callback(GLADcallback cb); /* * Sets a callback which will be called after every function call * to a function loaded by glad. * */ GLAPI void glad_set_post_callback(GLADcallback cb); ``` To call a function like `glGetError` in a callback prefix it with `glad_`, e.g. the default post callback looks like this: ```c void _post_call_callback_default(const char *name, void *funcptr, int len_args, ...) { GLenum error_code; error_code = glad_glGetError(); if (error_code != GL_NO_ERROR) { fprintf(stderr, "ERROR %d in %s\n", error_code, name); } } ``` You can also submit own implementations for every call made by overwriting the function pointer with the name of the function prefixed by `glad_debug_`. E.g. you could disable the callbacks for glClear with `glad_debug_glClear = glad_glClear`, where `glad_glClear` is the function pointer loaded by glad. The `glClear` macro is defined as `#define glClear glad_debug_glClear`, `glad_debug_glClear` is initialized with a default implementation, which calls the two callbacks and the real function, in this case `glad_glClear`. ### D ### Import `glad.gl` for OpenGL functions/extensions, import `glad.loader` to import the functions needed to initialize glad and load the OpenGL functions. ```d enforce(gladLoadGL()); // optionally you can pass a loader to this function writefln("OpenGL Version %d.%d loaded", GLVersion.major, GLVersion.minor); if(GL_EXT_framebuffer_multisample) { /* GL_EXT_framebuffer_multisample is supported */ } if(GL_VERSION_3_0) { /* We support at least OpenGL version 3 */ } ``` On non-Windows platforms glad requires `libdl`, make sure to link with it (`L-ldl` for dmd)! ## FAQ ## ### How do I build glad or how do I integrate glad? Easiest way of using glad is through the [webservice](https://glad.dav1d.de). Alternatively glad integrates with: * `CMake` * [Conan](https://bintray.com/bincrafters/public-conan/glad%3Abincrafters) [![Download](https://api.bintray.com/packages/bincrafters/public-conan/glad%3Abincrafters/images/download.svg) ](https://bintray.com/bincrafters/public-conan/glad%3Abincrafters/_latestVersion) Thanks for all the help and support maintaining those! ### glad includes windows.h [#42](https://github.com/Dav1dde/glad/issues/42) **Since 0.1.30:** glad does not include `windows.h` anymore. **Before 0.1.30:** Defining `APIENTRY` before including `glad.h` solves this problem: ```c #ifdef _WIN32 #define APIENTRY __stdcall #endif #include ``` But make sure you have the correct definition of `APIENTRY` for platforms which define `_WIN32` but don't use `__stdcall` ### What's the license of glad generated code? [#101](https://github.com/Dav1dde/glad/issues/101) Any of Public Domain, WTFPL or CC0. ## Contribute ## Contributing is easy! Found a bug? Message me or make a pull request! Added a new generator backend? Make a pull request! Special thanks for all the people who contributed and are going to contribute! Also to these who helped me solve a problem when I simply could not think of a solution. glad-0.1.30/example/000077500000000000000000000000001347444401100141375ustar00rootroot00000000000000glad-0.1.30/example/c++/000077500000000000000000000000001347444401100145075ustar00rootroot00000000000000glad-0.1.30/example/c++/hellowindow2.cpp000066400000000000000000000046671347444401100176450ustar00rootroot00000000000000#include // GLAD #include // GLFW #include // This example is taken from https://learnopengl.com/ // https://learnopengl.com/code_viewer.php?code=getting-started/hellowindow2 // The code originally used GLEW, I replaced it with Glad // Compile: // g++ example/c++/hellowindow2.cpp -Ibuild/include build/src/glad.c -lglfw -ldl // Function prototypes void key_callback(GLFWwindow* window, int key, int scancode, int action, int mode); // Window dimensions const GLuint WIDTH = 800, HEIGHT = 600; // The MAIN function, from here we start the application and run the game loop int main() { std::cout << "Starting GLFW context, OpenGL 3.3" << std::endl; // Init GLFW glfwInit(); // Set all the required options for GLFW glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); glfwWindowHint(GLFW_RESIZABLE, GL_FALSE); // Create a GLFWwindow object that we can use for GLFW's functions GLFWwindow* window = glfwCreateWindow(WIDTH, HEIGHT, "LearnOpenGL", NULL, NULL); glfwMakeContextCurrent(window); if (window == NULL) { std::cout << "Failed to create GLFW window" << std::endl; glfwTerminate(); return -1; } // Set the required callback functions glfwSetKeyCallback(window, key_callback); if (!gladLoadGLLoader((GLADloadproc) glfwGetProcAddress)) { std::cout << "Failed to initialize OpenGL context" << std::endl; return -1; } // Define the viewport dimensions glViewport(0, 0, WIDTH, HEIGHT); // Game loop while (!glfwWindowShouldClose(window)) { // Check if any events have been activated (key pressed, mouse moved etc.) and call corresponding response functions glfwPollEvents(); // Render // Clear the colorbuffer glClearColor(0.2f, 0.3f, 0.3f, 1.0f); glClear(GL_COLOR_BUFFER_BIT); // Swap the screen buffers glfwSwapBuffers(window); } // Terminates GLFW, clearing any resources allocated by GLFW. glfwTerminate(); return 0; } // Is called whenever a key is pressed/released via GLFW void key_callback(GLFWwindow* window, int key, int scancode, int action, int mode) { std::cout << key << std::endl; if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS) glfwSetWindowShouldClose(window, GL_TRUE); } glad-0.1.30/example/c++/sdl.cpp000066400000000000000000000046731347444401100160070ustar00rootroot00000000000000// python -m glad --out-path=build --api="gl=2.1" --extensions="" --generator="c" // g++ example/c++/sdl.cpp build/src/glad.c -Ibuild/include -lSDL2 -ldl #include #include #include int main(int argc, char **argv) { if (SDL_Init(SDL_INIT_VIDEO) != 0) { std::cerr << "SDL2 video subsystem couldn't be initialized. Error: " << SDL_GetError() << std::endl; exit(1); } SDL_Window* window = SDL_CreateWindow("Glad Sample", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 800, 600, SDL_WINDOW_SHOWN | SDL_WINDOW_OPENGL); SDL_Renderer* renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED); if (renderer == nullptr) { std::cerr << "SDL2 Renderer couldn't be created. Error: " << SDL_GetError() << std::endl; exit(1); } // Create a OpenGL context on SDL2 SDL_GLContext gl_context = SDL_GL_CreateContext(window); // Load GL extensions using glad if (!gladLoadGLLoader((GLADloadproc) SDL_GL_GetProcAddress)) { std::cerr << "Failed to initialize the OpenGL context." << std::endl; exit(1); } // Loaded OpenGL successfully. std::cout << "OpenGL version loaded: " << GLVersion.major << "." << GLVersion.minor << std::endl; // Create an event handler SDL_Event event; // Loop condition bool running = true; while (running) { SDL_PollEvent(&event); switch(event.type) { case SDL_QUIT: running = false; break; case SDL_KEYDOWN: switch(event.key.keysym.sym) { case SDLK_ESCAPE: running = false; break; } } glClearColor(0, 0, 0, 1); // You'd want to use modern OpenGL here glColor3d(0, 1, 0); glBegin(GL_TRIANGLES); glVertex2f(.2, 0); glVertex2f(.01, .2); glVertex2f(-.2, 0); glEnd(); SDL_GL_SwapWindow(window); } // Destroy everything to not leak memory. SDL_GL_DeleteContext(gl_context); SDL_DestroyRenderer(renderer); SDL_DestroyWindow(window); SDL_Quit(); return 0; } glad-0.1.30/example/c/000077500000000000000000000000001347444401100143615ustar00rootroot00000000000000glad-0.1.30/example/c/simple.c000066400000000000000000000040351347444401100160200ustar00rootroot00000000000000#include #include #include #ifdef __APPLE__ #include #else #include #endif // This file is a modified version of gl3w's test.c // https://github.com/skaslev/gl3w/blob/master/src/test.c // Compile: // gcc example/c/simple.c -Ibuild/include build/src/glad.c -lglut -ldl static int width = 600, height = 600; static void display(void) { glClearColor(1.0f, 0.2f, 0.7f, 1.0f); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glutSwapBuffers(); glutPostRedisplay(); } static void reshape(int w, int h) { width = w > 1 ? w : 1; height = h > 1 ? h : 1; glViewport(0, 0, width, height); glClearDepth(1.0); glClearColor(0.0f, 0.0f, 0.0f, 0.0f); glEnable(GL_DEPTH_TEST); } #ifdef GLAD_DEBUG void pre_gl_call(const char *name, void *funcptr, int len_args, ...) { printf("Calling: %s (%d arguments)\n", name, len_args); } #endif int main(int argc, char **argv) { if(gladLoadGL()) { // you need an OpenGL context before loading glad printf("I did load GL with no context!\n"); exit(-1); } glutInit(&argc, argv); glutInitDisplayMode(GLUT_RGBA | GLUT_DEPTH | GLUT_DOUBLE); glutInitWindowSize(width, height); glutCreateWindow("cookie"); glutReshapeFunc(reshape); glutDisplayFunc(display); if(!gladLoadGL()) { printf("Something went wrong!\n"); exit(-1); } #ifdef GLAD_DEBUG // before every opengl call call pre_gl_call glad_set_pre_callback(pre_gl_call); // don't use the callback for glClear // (glClear could be replaced with your own function) glad_debug_glClear = glad_glClear; #endif // gladLoadGLLoader(&glutGetProcAddress); printf("OpenGL %d.%d\n", GLVersion.major, GLVersion.minor); if (GLVersion.major < 2) { printf("Your system doesn't support OpenGL >= 2!\n"); return -1; } printf("OpenGL %s, GLSL %s\n", glGetString(GL_VERSION), glGetString(GL_SHADING_LANGUAGE_VERSION)); glutMainLoop(); return 0; } glad-0.1.30/glad/000077500000000000000000000000001347444401100134135ustar00rootroot00000000000000glad-0.1.30/glad/__init__.py000066400000000000000000000000311347444401100155160ustar00rootroot00000000000000 __version__ = '0.1.30' glad-0.1.30/glad/__main__.py000066400000000000000000000144171347444401100155140ustar00rootroot00000000000000#!/usr/bin/env python """ Uses the official Khronos-XML specs to generate a GL/GLES/EGL/GLX/WGL Loader made for your needs. Glad currently supports the languages C, D, Nim, Pascal and Volt. """ import logging from glad.opener import URLOpener from glad.spec import SPECS import glad.lang import glad.files from glad.util import Version logger = logging.getLogger('glad') def main(): import os.path import argparse from argparse import ArgumentParser opener = URLOpener() def get_spec(value, reproducible=False): if value not in SPECS: raise argparse.ArgumentTypeError('Unknown specification') spec_cls = SPECS[value] if reproducible: logger.info('reproducible build, using packaged specification: \'%s.xml\'', value) try: return spec_cls.from_file(glad.files.open_local(value + '.xml')) except IOError: raise ValueError('unable to open reproducible copy of {}.xml, ' 'try dropping --reproducible'.format(value)) if os.path.exists(value + '.xml'): logger.info('using local specification: \'%s.xml\'', value) return spec_cls.from_file(value + '.xml') logger.info('downloading latest \'%s\' specification', value) return spec_cls.from_remote(opener=opener) def ext_file(value): msg = 'Invalid extensions argument' if os.path.exists(value): msg = 'Invalid extensions file' try: with open(value, 'r') as f: return f.read().split() except IOError: pass else: return [v.strip() for v in value.split(',') if v] raise argparse.ArgumentTypeError(msg) def version(value): if value is None or len(value.strip()) == 0: return None v = value if '.' not in v: v = '{}.0'.format(v) try: return Version(*map(int, v.split('.'))) except ValueError: pass raise argparse.ArgumentTypeError('Invalid version: "{}"'.format(value)) def cmdapi(value): try: return dict((p[0], version(p[1])) for p in (list(map(str.strip, e.split('='))) for e in filter(bool, map(str.strip, value.split(','))))) except IndexError: pass raise argparse.ArgumentTypeError( 'Invalid api-string: "{}"'.format(value) ) description = __doc__ parser = ArgumentParser(description=description) parser.add_argument('--profile', dest='profile', choices=['core', 'compatibility'], default='compatibility', help='OpenGL profile (defaults to compatibility)') parser.add_argument('--out-path', dest='out', required=True, help='Output path for loader') parser.add_argument('--api', dest='api', type=cmdapi, help='API type/version pairs, like "gl=3.2,gles=", ' 'no version means latest') parser.add_argument('--generator', dest='generator', default='d', choices=['c', 'c-debug', 'd', 'nim', 'pascal', 'volt'], required=True, help='Language to generate the binding for') parser.add_argument('--extensions', dest='extensions', default=None, type=ext_file, help='Path to extensions file or comma separated ' 'list of extensions, if missing ' 'all extensions are included') parser.add_argument('--spec', dest='spec', default='gl', choices=['gl', 'egl', 'glx', 'wgl'], help='Name of the spec') parser.add_argument('--reproducible', default=False, action='store_true', help='Makes the build reproducible by not fetching ' 'the latest specification from Khronos') parser.add_argument('--no-loader', dest='no_loader', action='store_true') parser.add_argument('--omit-khrplatform', dest='omit_khrplatform', action='store_true', help='Omits inclusion of the khrplatform.h ' 'file which is often unnecessary. ' 'Only has an effect if used together ' 'with c generators.') parser.add_argument('--local-files', dest='local_files', action='store_true', help='Forces every file directly into the output ' 'directory. No src or include subdirectories ' 'are generated. ' 'Only has an effect if used together ' 'with c generators.') parser.add_argument('--quiet', dest='quiet', action='store_true') ns = parser.parse_args() if not ns.quiet: logging.basicConfig( format='[%(asctime)s][%(levelname)s\t][%(name)-7s\t]: %(message)s', datefmt='%m/%d/%Y %H:%M:%S', level=logging.DEBUG ) if ns.omit_khrplatform: logger.warn('--omit-khrplatform enabled, with recent changes to the specification ' 'this is not very well supported by Khronos anymore and may break your build.') spec = get_spec(ns.spec, reproducible=ns.reproducible) if spec.NAME == 'gl': spec.profile = ns.profile api = ns.api if api is None or len(api.keys()) == 0: api = {spec.NAME: None} generator_cls, loader_cls = glad.lang.get_generator( ns.generator, spec.NAME.lower() ) if loader_cls is None: return parser.error('API/Spec not yet supported') loader = loader_cls(api, disabled=ns.no_loader, local_files=ns.local_files) logger.info('generating \'%s\' bindings', spec.NAME) with generator_cls( ns.out, spec, api, ns.extensions, loader=loader, opener=opener, local_files=ns.local_files, omit_khrplatform=ns.omit_khrplatform, reproducible=ns.reproducible ) as generator: generator.generate() logger.info('generating \'%s\' bindings - done', spec.NAME) if __name__ == '__main__': main() glad-0.1.30/glad/files/000077500000000000000000000000001347444401100145155ustar00rootroot00000000000000glad-0.1.30/glad/files/__init__.py000066400000000000000000000016321347444401100166300ustar00rootroot00000000000000import os.path import logging try: from pkg_resources import resource_exists, resource_stream except ImportError: def resource_exists(*args, **kwargs): return False def resource_stream(*args, **kwargs): return None BASE_PATH = os.path.abspath(os.path.dirname(__file__)) logger = logging.getLogger('glad.files') def open_local(name, *args, **kwargs): # use pkg_resources when available, makes it work in zipped modules # or other environments if resource_exists(__name__, name): logger.info('opening \'%s\' from packaged resource', name) return resource_stream(__name__, name) # fallback to filesystem logger.info('opening \'%s\' from packaged path', name) local_path = os.path.normpath(os.path.join(BASE_PATH, os.path.join(name))) if not local_path.startswith(BASE_PATH): raise ValueError return open(local_path, *args, **kwargs) glad-0.1.30/glad/files/egl.xml000066400000000000000000005100251347444401100160110ustar00rootroot00000000000000 #include <KHR/khrplatform.h> #include <EGL/eglplatform.h> struct AHardwareBuffer; typedef unsigned int EGLBoolean; typedef unsigned int EGLenum; typedef intptr_t EGLAttribKHR; typedef intptr_t EGLAttrib; typedef void *EGLClientBuffer; typedef void *EGLConfig; typedef void *EGLContext; typedef void *EGLDeviceEXT; typedef void *EGLDisplay; typedef void *EGLImage; typedef void *EGLImageKHR; typedef void *EGLLabelKHR; typedef void *EGLObjectKHR; typedef void *EGLOutputLayerEXT; typedef void *EGLOutputPortEXT; typedef void *EGLStreamKHR; typedef void *EGLSurface; typedef void *EGLSync; typedef void *EGLSyncKHR; typedef void *EGLSyncNV; typedef void (*__eglMustCastToProperFunctionPointerType)(void); typedef khronos_utime_nanoseconds_t EGLTimeKHR; typedef khronos_utime_nanoseconds_t EGLTime; typedef khronos_utime_nanoseconds_t EGLTimeNV; typedef khronos_utime_nanoseconds_t EGLuint64NV; typedef khronos_uint64_t EGLuint64KHR; typedef khronos_stime_nanoseconds_t EGLnsecsANDROID; typedef int EGLNativeFileDescriptorKHR; typedef khronos_ssize_t EGLsizeiANDROID; typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize); typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize); struct EGLClientPixmapHI { void *pData; EGLint iWidth; EGLint iHeight; EGLint iStride; }; typedef void ( *EGLDEBUGPROCKHR)(EGLenum error,const char *command,EGLint messageType,EGLLabelKHR threadLabel,EGLLabelKHR objectLabel,const char* message); EGLBoolean eglBindAPI EGLenum api EGLBoolean eglBindTexImage EGLDisplay dpy EGLSurface surface EGLint buffer EGLBoolean eglChooseConfig EGLDisplay dpy const EGLint *attrib_list EGLConfig *configs EGLint config_size EGLint *num_config EGLBoolean eglClientSignalSyncEXT EGLDisplay dpy EGLSync sync const EGLAttrib *attrib_list EGLint eglClientWaitSync EGLDisplay dpy EGLSync sync EGLint flags EGLTime timeout EGLint eglClientWaitSyncKHR EGLDisplay dpy EGLSyncKHR sync EGLint flags EGLTimeKHR timeout EGLint eglClientWaitSyncNV EGLSyncNV sync EGLint flags EGLTimeNV timeout EGLBoolean eglCopyBuffers EGLDisplay dpy EGLSurface surface EGLNativePixmapType target EGLContext eglCreateContext EGLDisplay dpy EGLConfig config EGLContext share_context const EGLint *attrib_list EGLImageKHR eglCreateDRMImageMESA EGLDisplay dpy const EGLint *attrib_list EGLSyncNV eglCreateFenceSyncNV EGLDisplay dpy EGLenum condition const EGLint *attrib_list EGLImage eglCreateImage EGLDisplay dpy EGLContext ctx EGLenum target EGLClientBuffer buffer const EGLAttrib *attrib_list EGLImageKHR eglCreateImageKHR EGLDisplay dpy EGLContext ctx EGLenum target EGLClientBuffer buffer const EGLint *attrib_list EGLClientBuffer eglCreateNativeClientBufferANDROID const EGLint *attrib_list EGLSurface eglCreatePbufferFromClientBuffer EGLDisplay dpy EGLenum buftype EGLClientBuffer buffer EGLConfig config const EGLint *attrib_list EGLSurface eglCreatePbufferSurface EGLDisplay dpy EGLConfig config const EGLint *attrib_list EGLSurface eglCreatePixmapSurface EGLDisplay dpy EGLConfig config EGLNativePixmapType pixmap const EGLint *attrib_list EGLSurface eglCreatePixmapSurfaceHI EGLDisplay dpy EGLConfig config struct EGLClientPixmapHI *pixmap EGLSurface eglCreatePlatformPixmapSurface EGLDisplay dpy EGLConfig config void *native_pixmap const EGLAttrib *attrib_list EGLSurface eglCreatePlatformPixmapSurfaceEXT EGLDisplay dpy EGLConfig config void *native_pixmap const EGLint *attrib_list EGLSurface eglCreatePlatformWindowSurface EGLDisplay dpy EGLConfig config void *native_window const EGLAttrib *attrib_list EGLSurface eglCreatePlatformWindowSurfaceEXT EGLDisplay dpy EGLConfig config void *native_window const EGLint *attrib_list EGLStreamKHR eglCreateStreamFromFileDescriptorKHR EGLDisplay dpy EGLNativeFileDescriptorKHR file_descriptor EGLStreamKHR eglCreateStreamKHR EGLDisplay dpy const EGLint *attrib_list EGLStreamKHR eglCreateStreamAttribKHR EGLDisplay dpy const EGLAttrib *attrib_list EGLSurface eglCreateStreamProducerSurfaceKHR EGLDisplay dpy EGLConfig config EGLStreamKHR stream const EGLint *attrib_list EGLSyncKHR eglCreateStreamSyncNV EGLDisplay dpy EGLStreamKHR stream EGLenum type const EGLint *attrib_list EGLSync eglCreateSync EGLDisplay dpy EGLenum type const EGLAttrib *attrib_list EGLSyncKHR eglCreateSyncKHR EGLDisplay dpy EGLenum type const EGLint *attrib_list EGLSyncKHR eglCreateSync64KHR EGLDisplay dpy EGLenum type const EGLAttribKHR *attrib_list EGLSurface eglCreateWindowSurface EGLDisplay dpy EGLConfig config EGLNativeWindowType win const EGLint *attrib_list EGLint eglDebugMessageControlKHR EGLDEBUGPROCKHR callback const EGLAttrib *attrib_list EGLBoolean eglDestroyContext EGLDisplay dpy EGLContext ctx EGLBoolean eglDestroyImage EGLDisplay dpy EGLImage image EGLBoolean eglDestroyImageKHR EGLDisplay dpy EGLImageKHR image EGLBoolean eglDestroyStreamKHR EGLDisplay dpy EGLStreamKHR stream EGLBoolean eglDestroySurface EGLDisplay dpy EGLSurface surface EGLBoolean eglDestroySync EGLDisplay dpy EGLSync sync EGLBoolean eglDestroySyncKHR EGLDisplay dpy EGLSyncKHR sync EGLBoolean eglDestroySyncNV EGLSyncNV sync EGLint eglDupNativeFenceFDANDROID EGLDisplay dpy EGLSyncKHR sync EGLBoolean eglExportDMABUFImageMESA EGLDisplay dpy EGLImageKHR image int *fds EGLint *strides EGLint *offsets EGLBoolean eglExportDMABUFImageQueryMESA EGLDisplay dpy EGLImageKHR image int *fourcc int *num_planes EGLuint64KHR *modifiers EGLBoolean eglExportDRMImageMESA EGLDisplay dpy EGLImageKHR image EGLint *name EGLint *handle EGLint *stride EGLBoolean eglFenceNV EGLSyncNV sync EGLBoolean eglGetConfigAttrib EGLDisplay dpy EGLConfig config EGLint attribute EGLint *value EGLBoolean eglGetConfigs EGLDisplay dpy EGLConfig *configs EGLint config_size EGLint *num_config EGLContext eglGetCurrentContext EGLDisplay eglGetCurrentDisplay EGLSurface eglGetCurrentSurface EGLint readdraw EGLDisplay eglGetDisplay EGLNativeDisplayType display_id EGLint eglGetError EGLClientBuffer eglGetNativeClientBufferANDROID const struct AHardwareBuffer *buffer EGLBoolean eglGetOutputLayersEXT EGLDisplay dpy const EGLAttrib *attrib_list EGLOutputLayerEXT *layers EGLint max_layers EGLint *num_layers EGLBoolean eglGetOutputPortsEXT EGLDisplay dpy const EGLAttrib *attrib_list EGLOutputPortEXT *ports EGLint max_ports EGLint *num_ports EGLDisplay eglGetPlatformDisplay EGLenum platform void *native_display const EGLAttrib *attrib_list EGLDisplay eglGetPlatformDisplayEXT EGLenum platform void *native_display const EGLint *attrib_list __eglMustCastToProperFunctionPointerType eglGetProcAddress const char *procname EGLNativeFileDescriptorKHR eglGetStreamFileDescriptorKHR EGLDisplay dpy EGLStreamKHR stream EGLBoolean eglGetSyncAttrib EGLDisplay dpy EGLSync sync EGLint attribute EGLAttrib *value EGLBoolean eglGetSyncAttribKHR EGLDisplay dpy EGLSyncKHR sync EGLint attribute EGLint *value EGLBoolean eglGetSyncAttribNV EGLSyncNV sync EGLint attribute EGLint *value EGLuint64NV eglGetSystemTimeFrequencyNV EGLuint64NV eglGetSystemTimeNV EGLBoolean eglInitialize EGLDisplay dpy EGLint *major EGLint *minor EGLint eglLabelObjectKHR EGLDisplay display EGLenum objectType EGLObjectKHR object EGLLabelKHR label EGLBoolean eglLockSurfaceKHR EGLDisplay dpy EGLSurface surface const EGLint *attrib_list EGLBoolean eglMakeCurrent EGLDisplay dpy EGLSurface draw EGLSurface read EGLContext ctx EGLBoolean eglOutputLayerAttribEXT EGLDisplay dpy EGLOutputLayerEXT layer EGLint attribute EGLAttrib value EGLBoolean eglOutputPortAttribEXT EGLDisplay dpy EGLOutputPortEXT port EGLint attribute EGLAttrib value EGLBoolean eglPostSubBufferNV EGLDisplay dpy EGLSurface surface EGLint x EGLint y EGLint width EGLint height EGLBoolean eglPresentationTimeANDROID EGLDisplay dpy EGLSurface surface EGLnsecsANDROID time EGLBoolean eglGetCompositorTimingSupportedANDROID EGLDisplay dpy EGLSurface surface EGLint name EGLBoolean eglGetCompositorTimingANDROID EGLDisplay dpy EGLSurface surface EGLint numTimestamps const EGLint *names EGLnsecsANDROID *values EGLBoolean eglGetNextFrameIdANDROID EGLDisplay dpy EGLSurface surface EGLuint64KHR *frameId EGLBoolean eglGetFrameTimestampSupportedANDROID EGLDisplay dpy EGLSurface surface EGLint timestamp EGLBoolean eglGetFrameTimestampsANDROID EGLDisplay dpy EGLSurface surface EGLuint64KHR frameId EGLint numTimestamps const EGLint *timestamps EGLnsecsANDROID *values EGLenum eglQueryAPI EGLBoolean eglQueryContext EGLDisplay dpy EGLContext ctx EGLint attribute EGLint *value EGLBoolean eglQueryDebugKHR EGLint attribute EGLAttrib *value EGLBoolean eglQueryDeviceAttribEXT EGLDeviceEXT device EGLint attribute EGLAttrib *value const char *eglQueryDeviceStringEXT EGLDeviceEXT device EGLint name EGLBoolean eglQueryDevicesEXT EGLint max_devices EGLDeviceEXT *devices EGLint *num_devices EGLBoolean eglQueryDisplayAttribEXT EGLDisplay dpy EGLint attribute EGLAttrib *value EGLBoolean eglQueryDisplayAttribKHR EGLDisplay dpy EGLint name EGLAttrib *value EGLBoolean eglQueryDisplayAttribNV EGLDisplay dpy EGLint attribute EGLAttrib *value EGLBoolean eglQueryDmaBufFormatsEXT EGLDisplay dpy EGLint max_formats EGLint *formats EGLint *num_formats EGLBoolean eglQueryDmaBufModifiersEXT EGLDisplay dpy EGLint format EGLint max_modifiers EGLuint64KHR *modifiers EGLBoolean *external_only EGLint *num_modifiers EGLBoolean eglQueryNativeDisplayNV EGLDisplay dpy EGLNativeDisplayType *display_id EGLBoolean eglQueryNativePixmapNV EGLDisplay dpy EGLSurface surf EGLNativePixmapType *pixmap EGLBoolean eglQueryNativeWindowNV EGLDisplay dpy EGLSurface surf EGLNativeWindowType *window EGLBoolean eglQueryOutputLayerAttribEXT EGLDisplay dpy EGLOutputLayerEXT layer EGLint attribute EGLAttrib *value const char *eglQueryOutputLayerStringEXT EGLDisplay dpy EGLOutputLayerEXT layer EGLint name EGLBoolean eglQueryOutputPortAttribEXT EGLDisplay dpy EGLOutputPortEXT port EGLint attribute EGLAttrib *value const char *eglQueryOutputPortStringEXT EGLDisplay dpy EGLOutputPortEXT port EGLint name EGLBoolean eglQueryStreamKHR EGLDisplay dpy EGLStreamKHR stream EGLenum attribute EGLint *value EGLBoolean eglQueryStreamAttribKHR EGLDisplay dpy EGLStreamKHR stream EGLenum attribute EGLAttrib *value EGLBoolean eglQueryStreamMetadataNV EGLDisplay dpy EGLStreamKHR stream EGLenum name EGLint n EGLint offset EGLint size void *data EGLBoolean eglQueryStreamTimeKHR EGLDisplay dpy EGLStreamKHR stream EGLenum attribute EGLTimeKHR *value EGLBoolean eglQueryStreamu64KHR EGLDisplay dpy EGLStreamKHR stream EGLenum attribute EGLuint64KHR *value const char *eglQueryString EGLDisplay dpy EGLint name EGLBoolean eglQuerySurface EGLDisplay dpy EGLSurface surface EGLint attribute EGLint *value EGLBoolean eglQuerySurface64KHR EGLDisplay dpy EGLSurface surface EGLint attribute EGLAttribKHR *value EGLBoolean eglQuerySurfacePointerANGLE EGLDisplay dpy EGLSurface surface EGLint attribute void **value EGLBoolean eglReleaseTexImage EGLDisplay dpy EGLSurface surface EGLint buffer EGLBoolean eglReleaseThread EGLBoolean eglResetStreamNV EGLDisplay dpy EGLStreamKHR stream void eglSetBlobCacheFuncsANDROID EGLDisplay dpy EGLSetBlobFuncANDROID set EGLGetBlobFuncANDROID get EGLBoolean eglSetDamageRegionKHR EGLDisplay dpy EGLSurface surface EGLint *rects EGLint n_rects EGLBoolean eglSetStreamAttribKHR EGLDisplay dpy EGLStreamKHR stream EGLenum attribute EGLAttrib value EGLBoolean eglSetStreamMetadataNV EGLDisplay dpy EGLStreamKHR stream EGLint n EGLint offset EGLint size const void *data EGLBoolean eglSignalSyncKHR EGLDisplay dpy EGLSyncKHR sync EGLenum mode EGLBoolean eglSignalSyncNV EGLSyncNV sync EGLenum mode EGLBoolean eglStreamAttribKHR EGLDisplay dpy EGLStreamKHR stream EGLenum attribute EGLint value EGLBoolean eglStreamConsumerAcquireKHR EGLDisplay dpy EGLStreamKHR stream EGLBoolean eglStreamConsumerAcquireAttribKHR EGLDisplay dpy EGLStreamKHR stream const EGLAttrib *attrib_list EGLBoolean eglStreamConsumerGLTextureExternalKHR EGLDisplay dpy EGLStreamKHR stream EGLBoolean eglStreamConsumerGLTextureExternalAttribsNV EGLDisplay dpy EGLStreamKHR stream const EGLAttrib *attrib_list EGLBoolean eglStreamConsumerOutputEXT EGLDisplay dpy EGLStreamKHR stream EGLOutputLayerEXT layer EGLBoolean eglStreamConsumerReleaseKHR EGLDisplay dpy EGLStreamKHR stream EGLBoolean eglStreamConsumerReleaseAttribKHR EGLDisplay dpy EGLStreamKHR stream const EGLAttrib *attrib_list EGLBoolean eglStreamFlushNV EGLDisplay dpy EGLStreamKHR stream EGLBoolean eglSurfaceAttrib EGLDisplay dpy EGLSurface surface EGLint attribute EGLint value EGLBoolean eglSwapBuffers EGLDisplay dpy EGLSurface surface EGLBoolean eglSwapBuffersWithDamageEXT EGLDisplay dpy EGLSurface surface EGLint *rects EGLint n_rects EGLBoolean eglSwapBuffersWithDamageKHR EGLDisplay dpy EGLSurface surface EGLint *rects EGLint n_rects EGLBoolean eglSwapBuffersRegionNOK EGLDisplay dpy EGLSurface surface EGLint numRects const EGLint *rects EGLBoolean eglSwapBuffersRegion2NOK EGLDisplay dpy EGLSurface surface EGLint numRects const EGLint *rects EGLBoolean eglSwapInterval EGLDisplay dpy EGLint interval EGLBoolean eglTerminate EGLDisplay dpy EGLBoolean eglUnlockSurfaceKHR EGLDisplay dpy EGLSurface surface EGLBoolean eglUnsignalSyncEXT EGLDisplay dpy EGLSync sync const EGLAttrib *attrib_list EGLBoolean eglWaitClient EGLBoolean eglWaitGL EGLBoolean eglWaitNative EGLint engine EGLBoolean eglWaitSync EGLDisplay dpy EGLSync sync EGLint flags EGLint eglWaitSyncKHR EGLDisplay dpy EGLSyncKHR sync EGLint flags EGLBoolean eglCompositorSetContextListEXT const EGLint *external_ref_ids EGLint num_entries EGLBoolean eglCompositorSetContextAttributesEXT EGLint external_ref_id const EGLint *context_attributes EGLint num_entries EGLBoolean eglCompositorSetWindowListEXT EGLint external_ref_id const EGLint *external_win_ids EGLint num_entries EGLBoolean eglCompositorSetWindowAttributesEXT EGLint external_win_id const EGLint *window_attributes EGLint num_entries EGLBoolean eglCompositorBindTexWindowEXT EGLint external_win_id EGLBoolean eglCompositorSetSizeEXT EGLint external_win_id EGLint width EGLint height EGLBoolean eglCompositorSwapPolicyEXT EGLint external_win_id EGLint policy glad-0.1.30/glad/files/gl.xml000066400000000000000000123533521347444401100156570ustar00rootroot00000000000000 Copyright (c) 2013-2018 The Khronos Group Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ------------------------------------------------------------------------ This file, gl.xml, is the OpenGL and OpenGL API Registry. The canonical version of the registry, together with documentation, schema, and Python generator scripts used to generate C header files for OpenGL and OpenGL ES, can always be found in the Khronos Registry at https://github.com/KhronosGroup/OpenGL-Registry #include <stddef.h> #include <KHR/khrplatform.h> #ifndef GLEXT_64_TYPES_DEFINED /* This code block is duplicated in glxext.h, so must be protected */ #define GLEXT_64_TYPES_DEFINED /* Define int32_t, int64_t, and uint64_t types for UST/MSC */ /* (as used in the GL_EXT_timer_query extension). */ #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #include <inttypes.h> #elif defined(__sun__) || defined(__digital__) #include <inttypes.h> #if defined(__STDC__) #if defined(__arch64__) || defined(_LP64) typedef long int int64_t; typedef unsigned long int uint64_t; #else typedef long long int int64_t; typedef unsigned long long int uint64_t; #endif /* __arch64__ */ #endif /* __STDC__ */ #elif defined( __VMS ) || defined(__sgi) #include <inttypes.h> #elif defined(__SCO__) || defined(__USLC__) #include <stdint.h> #elif defined(__UNIXOS2__) || defined(__SOL64__) typedef long int int32_t; typedef long long int int64_t; typedef unsigned long long int uint64_t; #elif defined(_WIN32) && defined(__GNUC__) #include <stdint.h> #elif defined(_WIN32) typedef __int32 int32_t; typedef __int64 int64_t; typedef unsigned __int64 uint64_t; #else /* Fallback if nothing above works */ #include <inttypes.h> #endif #endif typedef unsigned int GLenum; typedef unsigned char GLboolean; typedef unsigned int GLbitfield; typedef void GLvoid; typedef signed char GLbyte; typedef short GLshort; typedef int GLint; typedef int GLclampx; typedef unsigned char GLubyte; typedef unsigned short GLushort; typedef unsigned int GLuint; typedef int GLsizei; typedef float GLfloat; typedef float GLclampf; typedef double GLdouble; typedef double GLclampd; typedef void *GLeglClientBufferEXT; typedef void *GLeglImageOES; typedef char GLchar; typedef char GLcharARB; #ifdef __APPLE__ typedef void *GLhandleARB; #else typedef unsigned int GLhandleARB; #endif typedef unsigned short GLhalfARB; typedef unsigned short GLhalf; typedef GLint GLfixed; typedef khronos_intptr_t GLintptr; typedef khronos_ssize_t GLsizeiptr; typedef int64_t GLint64; typedef uint64_t GLuint64; typedef ptrdiff_t GLintptrARB; typedef ptrdiff_t GLsizeiptrARB; typedef int64_t GLint64EXT; typedef uint64_t GLuint64EXT; typedef struct __GLsync *GLsync; struct _cl_context; struct _cl_event; typedef void ( *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); typedef void ( *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); typedef void ( *GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); typedef khronos_int32_t GLclampx; typedef khronos_int8_t GLbyte; typedef khronos_uint8_t GLubyte; typedef khronos_float_t GLfloat; typedef khronos_float_t GLclampf; typedef khronos_int32_t GLfixed; typedef khronos_int64_t GLint64; typedef khronos_uint64_t GLuint64; typedef khronos_intptr_t GLintptr; typedef khronos_ssize_t GLsizeiptr; typedef khronos_int8_t GLbyte; typedef khronos_uint8_t GLubyte; typedef khronos_float_t GLfloat; typedef khronos_float_t GLclampf; typedef khronos_int32_t GLfixed; typedef khronos_int64_t GLint64; typedef khronos_uint64_t GLuint64; typedef khronos_int64_t GLint64EXT; typedef khronos_uint64_t GLuint64EXT; typedef khronos_intptr_t GLintptr; typedef khronos_ssize_t GLsizeiptr; typedef khronos_uint8_t GLubyte; typedef khronos_float_t GLfloat; typedef khronos_intptr_t GLintptr; typedef khronos_ssize_t GLsizeiptr; typedef void ( *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,void *userParam); typedef unsigned short GLhalfNV; typedef GLintptr GLvdpauSurfaceNV; typedef void ( *GLVULKANPROCNV)(void); void glAccum GLenum op GLfloat value void glAccumxOES GLenum op GLfixed value void glActiveProgramEXT GLuint program void glActiveShaderProgram GLuint pipeline GLuint program void glActiveShaderProgramEXT GLuint pipeline GLuint program void glActiveStencilFaceEXT GLenum face void glActiveTexture GLenum texture void glActiveTextureARB GLenum texture void glActiveVaryingNV GLuint program const GLchar *name void glAlphaFragmentOp1ATI GLenum op GLuint dst GLuint dstMod GLuint arg1 GLuint arg1Rep GLuint arg1Mod void glAlphaFragmentOp2ATI GLenum op GLuint dst GLuint dstMod GLuint arg1 GLuint arg1Rep GLuint arg1Mod GLuint arg2 GLuint arg2Rep GLuint arg2Mod void glAlphaFragmentOp3ATI GLenum op GLuint dst GLuint dstMod GLuint arg1 GLuint arg1Rep GLuint arg1Mod GLuint arg2 GLuint arg2Rep GLuint arg2Mod GLuint arg3 GLuint arg3Rep GLuint arg3Mod void glAlphaFunc GLenum func GLfloat ref void glAlphaFuncQCOM GLenum func GLclampf ref void glAlphaFuncx GLenum func GLfixed ref void glAlphaFuncxOES GLenum func GLfixed ref void glAlphaToCoverageDitherControlNV GLenum mode void glApplyFramebufferAttachmentCMAAINTEL void glApplyTextureEXT GLenum mode GLboolean glAcquireKeyedMutexWin32EXT GLuint memory GLuint64 key GLuint timeout GLboolean glAreProgramsResidentNV GLsizei n const GLuint *programs GLboolean *residences GLboolean glAreTexturesResident GLsizei n const GLuint *textures GLboolean *residences GLboolean glAreTexturesResidentEXT GLsizei n const GLuint *textures GLboolean *residences void glArrayElement GLint i void glArrayElementEXT GLint i void glArrayObjectATI GLenum array GLint size GLenum type GLsizei stride GLuint buffer GLuint offset void glAsyncMarkerSGIX GLuint marker void glAttachObjectARB GLhandleARB containerObj GLhandleARB obj void glAttachShader GLuint program GLuint shader void glBegin GLenum mode void glBeginConditionalRender GLuint id GLenum mode void glBeginConditionalRenderNV GLuint id GLenum mode void glBeginConditionalRenderNVX GLuint id void glBeginFragmentShaderATI void glBeginOcclusionQueryNV GLuint id void glBeginPerfMonitorAMD GLuint monitor void glBeginPerfQueryINTEL GLuint queryHandle void glBeginQuery GLenum target GLuint id void glBeginQueryARB GLenum target GLuint id void glBeginQueryEXT GLenum target GLuint id void glBeginQueryIndexed GLenum target GLuint index GLuint id void glBeginTransformFeedback GLenum primitiveMode void glBeginTransformFeedbackEXT GLenum primitiveMode void glBeginTransformFeedbackNV GLenum primitiveMode void glBeginVertexShaderEXT void glBeginVideoCaptureNV GLuint video_capture_slot void glBindAttribLocation GLuint program GLuint index const GLchar *name void glBindAttribLocationARB GLhandleARB programObj GLuint index const GLcharARB *name void glBindBuffer GLenum target GLuint buffer void glBindBufferARB GLenum target GLuint buffer void glBindBufferBase GLenum target GLuint index GLuint buffer void glBindBufferBaseEXT GLenum target GLuint index GLuint buffer void glBindBufferBaseNV GLenum target GLuint index GLuint buffer void glBindBufferOffsetEXT GLenum target GLuint index GLuint buffer GLintptr offset void glBindBufferOffsetNV GLenum target GLuint index GLuint buffer GLintptr offset void glBindBufferRange GLenum target GLuint index GLuint buffer GLintptr offset GLsizeiptr size void glBindBufferRangeEXT GLenum target GLuint index GLuint buffer GLintptr offset GLsizeiptr size void glBindBufferRangeNV GLenum target GLuint index GLuint buffer GLintptr offset GLsizeiptr size void glBindBuffersBase GLenum target GLuint first GLsizei count const GLuint *buffers void glBindBuffersRange GLenum target GLuint first GLsizei count const GLuint *buffers const GLintptr *offsets const GLsizeiptr *sizes void glBindFragDataLocation GLuint program GLuint color const GLchar *name void glBindFragDataLocationEXT GLuint program GLuint color const GLchar *name void glBindFragDataLocationIndexed GLuint program GLuint colorNumber GLuint index const GLchar *name void glBindFragDataLocationIndexedEXT GLuint program GLuint colorNumber GLuint index const GLchar *name void glBindFragmentShaderATI GLuint id void glBindFramebuffer GLenum target GLuint framebuffer void glBindFramebufferEXT GLenum target GLuint framebuffer void glBindFramebufferOES GLenum target GLuint framebuffer void glBindImageTexture GLuint unit GLuint texture GLint level GLboolean layered GLint layer GLenum access GLenum format void glBindImageTextureEXT GLuint index GLuint texture GLint level GLboolean layered GLint layer GLenum access GLint format void glBindImageTextures GLuint first GLsizei count const GLuint *textures GLuint glBindLightParameterEXT GLenum light GLenum value GLuint glBindMaterialParameterEXT GLenum face GLenum value void glBindMultiTextureEXT GLenum texunit GLenum target GLuint texture GLuint glBindParameterEXT GLenum value void glBindProgramARB GLenum target GLuint program void glBindProgramNV GLenum target GLuint id void glBindProgramPipeline GLuint pipeline void glBindProgramPipelineEXT GLuint pipeline void glBindRenderbuffer GLenum target GLuint renderbuffer void glBindRenderbufferEXT GLenum target GLuint renderbuffer void glBindRenderbufferOES GLenum target GLuint renderbuffer void glBindSampler GLuint unit GLuint sampler void glBindSamplers GLuint first GLsizei count const GLuint *samplers void glBindShadingRateImageNV GLuint texture GLuint glBindTexGenParameterEXT GLenum unit GLenum coord GLenum value void glBindTexture GLenum target GLuint texture void glBindTextureEXT GLenum target GLuint texture void glBindTextureUnit GLuint unit GLuint texture GLuint glBindTextureUnitParameterEXT GLenum unit GLenum value void glBindTextures GLuint first GLsizei count const GLuint *textures void glBindTransformFeedback GLenum target GLuint id void glBindTransformFeedbackNV GLenum target GLuint id void glBindVertexArray GLuint array void glBindVertexArrayAPPLE GLuint array void glBindVertexArrayOES GLuint array void glBindVertexBuffer GLuint bindingindex GLuint buffer GLintptr offset GLsizei stride void glBindVertexBuffers GLuint first GLsizei count const GLuint *buffers const GLintptr *offsets const GLsizei *strides void glBindVertexShaderEXT GLuint id void glBindVideoCaptureStreamBufferNV GLuint video_capture_slot GLuint stream GLenum frame_region GLintptrARB offset void glBindVideoCaptureStreamTextureNV GLuint video_capture_slot GLuint stream GLenum frame_region GLenum target GLuint texture void glBinormal3bEXT GLbyte bx GLbyte by GLbyte bz void glBinormal3bvEXT const GLbyte *v void glBinormal3dEXT GLdouble bx GLdouble by GLdouble bz void glBinormal3dvEXT const GLdouble *v void glBinormal3fEXT GLfloat bx GLfloat by GLfloat bz void glBinormal3fvEXT const GLfloat *v void glBinormal3iEXT GLint bx GLint by GLint bz void glBinormal3ivEXT const GLint *v void glBinormal3sEXT GLshort bx GLshort by GLshort bz void glBinormal3svEXT const GLshort *v void glBinormalPointerEXT GLenum type GLsizei stride const void *pointer void glBitmap GLsizei width GLsizei height GLfloat xorig GLfloat yorig GLfloat xmove GLfloat ymove const GLubyte *bitmap void glBitmapxOES GLsizei width GLsizei height GLfixed xorig GLfixed yorig GLfixed xmove GLfixed ymove const GLubyte *bitmap void glBlendBarrier void glBlendBarrierKHR void glBlendBarrierNV void glBlendColor GLfloat red GLfloat green GLfloat blue GLfloat alpha void glBlendColorEXT GLfloat red GLfloat green GLfloat blue GLfloat alpha void glBlendColorxOES GLfixed red GLfixed green GLfixed blue GLfixed alpha void glBlendEquation GLenum mode void glBlendEquationEXT GLenum mode void glBlendEquationIndexedAMD GLuint buf GLenum mode void glBlendEquationOES GLenum mode void glBlendEquationSeparate GLenum modeRGB GLenum modeAlpha void glBlendEquationSeparateEXT GLenum modeRGB GLenum modeAlpha void glBlendEquationSeparateIndexedAMD GLuint buf GLenum modeRGB GLenum modeAlpha void glBlendEquationSeparateOES GLenum modeRGB GLenum modeAlpha void glBlendEquationSeparatei GLuint buf GLenum modeRGB GLenum modeAlpha void glBlendEquationSeparateiARB GLuint buf GLenum modeRGB GLenum modeAlpha void glBlendEquationSeparateiEXT GLuint buf GLenum modeRGB GLenum modeAlpha void glBlendEquationSeparateiOES GLuint buf GLenum modeRGB GLenum modeAlpha void glBlendEquationi GLuint buf GLenum mode void glBlendEquationiARB GLuint buf GLenum mode void glBlendEquationiEXT GLuint buf GLenum mode void glBlendEquationiOES GLuint buf GLenum mode void glBlendFunc GLenum sfactor GLenum dfactor void glBlendFuncIndexedAMD GLuint buf GLenum src GLenum dst void glBlendFuncSeparate GLenum sfactorRGB GLenum dfactorRGB GLenum sfactorAlpha GLenum dfactorAlpha void glBlendFuncSeparateEXT GLenum sfactorRGB GLenum dfactorRGB GLenum sfactorAlpha GLenum dfactorAlpha void glBlendFuncSeparateINGR GLenum sfactorRGB GLenum dfactorRGB GLenum sfactorAlpha GLenum dfactorAlpha void glBlendFuncSeparateIndexedAMD GLuint buf GLenum srcRGB GLenum dstRGB GLenum srcAlpha GLenum dstAlpha void glBlendFuncSeparateOES GLenum srcRGB GLenum dstRGB GLenum srcAlpha GLenum dstAlpha void glBlendFuncSeparatei GLuint buf GLenum srcRGB GLenum dstRGB GLenum srcAlpha GLenum dstAlpha void glBlendFuncSeparateiARB GLuint buf GLenum srcRGB GLenum dstRGB GLenum srcAlpha GLenum dstAlpha void glBlendFuncSeparateiEXT GLuint buf GLenum srcRGB GLenum dstRGB GLenum srcAlpha GLenum dstAlpha void glBlendFuncSeparateiOES GLuint buf GLenum srcRGB GLenum dstRGB GLenum srcAlpha GLenum dstAlpha void glBlendFunci GLuint buf GLenum src GLenum dst void glBlendFunciARB GLuint buf GLenum src GLenum dst void glBlendFunciEXT GLuint buf GLenum src GLenum dst void glBlendFunciOES GLuint buf GLenum src GLenum dst void glBlendParameteriNV GLenum pname GLint value void glBlitFramebuffer GLint srcX0 GLint srcY0 GLint srcX1 GLint srcY1 GLint dstX0 GLint dstY0 GLint dstX1 GLint dstY1 GLbitfield mask GLenum filter void glBlitFramebufferANGLE GLint srcX0 GLint srcY0 GLint srcX1 GLint srcY1 GLint dstX0 GLint dstY0 GLint dstX1 GLint dstY1 GLbitfield mask GLenum filter void glBlitFramebufferEXT GLint srcX0 GLint srcY0 GLint srcX1 GLint srcY1 GLint dstX0 GLint dstY0 GLint dstX1 GLint dstY1 GLbitfield mask GLenum filter void glBlitFramebufferNV GLint srcX0 GLint srcY0 GLint srcX1 GLint srcY1 GLint dstX0 GLint dstY0 GLint dstX1 GLint dstY1 GLbitfield mask GLenum filter void glBlitNamedFramebuffer GLuint readFramebuffer GLuint drawFramebuffer GLint srcX0 GLint srcY0 GLint srcX1 GLint srcY1 GLint dstX0 GLint dstY0 GLint dstX1 GLint dstY1 GLbitfield mask GLenum filter void glBufferAddressRangeNV GLenum pname GLuint index GLuint64EXT address GLsizeiptr length void glBufferAttachMemoryNV GLenum target GLuint memory GLuint64 offset void glBufferData GLenum target GLsizeiptr size const void *data GLenum usage void glBufferDataARB GLenum target GLsizeiptrARB size const void *data GLenum usage void glBufferPageCommitmentARB GLenum target GLintptr offset GLsizeiptr size GLboolean commit void glBufferParameteriAPPLE GLenum target GLenum pname GLint param void glBufferStorage GLenum target GLsizeiptr size const void *data GLbitfield flags void glBufferStorageEXT GLenum target GLsizeiptr size const void *data GLbitfield flags void glBufferStorageExternalEXT GLenum target GLintptr offset GLsizeiptr size GLeglClientBufferEXT clientBuffer GLbitfield flags void glBufferStorageMemEXT GLenum target GLsizeiptr size GLuint memory GLuint64 offset void glBufferSubData GLenum target GLintptr offset GLsizeiptr size const void *data void glBufferSubDataARB GLenum target GLintptrARB offset GLsizeiptrARB size const void *data void glCallCommandListNV GLuint list void glCallList GLuint list void glCallLists GLsizei n GLenum type const void *lists GLenum glCheckFramebufferStatus GLenum target GLenum glCheckFramebufferStatusEXT GLenum target GLenum glCheckFramebufferStatusOES GLenum target GLenum glCheckNamedFramebufferStatus GLuint framebuffer GLenum target GLenum glCheckNamedFramebufferStatusEXT GLuint framebuffer GLenum target void glClampColor GLenum target GLenum clamp void glClampColorARB GLenum target GLenum clamp void glClear GLbitfield mask void glClearAccum GLfloat red GLfloat green GLfloat blue GLfloat alpha void glClearAccumxOES GLfixed red GLfixed green GLfixed blue GLfixed alpha void glClearBufferData GLenum target GLenum internalformat GLenum format GLenum type const void *data void glClearBufferSubData GLenum target GLenum internalformat GLintptr offset GLsizeiptr size GLenum format GLenum type const void *data void glClearBufferfi GLenum buffer GLint drawbuffer GLfloat depth GLint stencil void glClearBufferfv GLenum buffer GLint drawbuffer const GLfloat *value void glClearBufferiv GLenum buffer GLint drawbuffer const GLint *value void glClearBufferuiv GLenum buffer GLint drawbuffer const GLuint *value void glClearColor GLfloat red GLfloat green GLfloat blue GLfloat alpha void glClearColorIiEXT GLint red GLint green GLint blue GLint alpha void glClearColorIuiEXT GLuint red GLuint green GLuint blue GLuint alpha void glClearColorx GLfixed red GLfixed green GLfixed blue GLfixed alpha void glClearColorxOES GLfixed red GLfixed green GLfixed blue GLfixed alpha void glClearDepth GLdouble depth void glClearDepthdNV GLdouble depth void glClearDepthf GLfloat d void glClearDepthfOES GLclampf depth void glClearDepthx GLfixed depth void glClearDepthxOES GLfixed depth void glClearIndex GLfloat c void glClearNamedBufferData GLuint buffer GLenum internalformat GLenum format GLenum type const void *data void glClearNamedBufferDataEXT GLuint buffer GLenum internalformat GLenum format GLenum type const void *data void glClearNamedBufferSubData GLuint buffer GLenum internalformat GLintptr offset GLsizeiptr size GLenum format GLenum type const void *data void glClearNamedBufferSubDataEXT GLuint buffer GLenum internalformat GLsizeiptr offset GLsizeiptr size GLenum format GLenum type const void *data void glClearNamedFramebufferfi GLuint framebuffer GLenum buffer GLint drawbuffer GLfloat depth GLint stencil void glClearNamedFramebufferfv GLuint framebuffer GLenum buffer GLint drawbuffer const GLfloat *value void glClearNamedFramebufferiv GLuint framebuffer GLenum buffer GLint drawbuffer const GLint *value void glClearNamedFramebufferuiv GLuint framebuffer GLenum buffer GLint drawbuffer const GLuint *value void glClearPixelLocalStorageuiEXT GLsizei offset GLsizei n const GLuint *values void glClearStencil GLint s void glClearTexImage GLuint texture GLint level GLenum format GLenum type const void *data void glClearTexImageEXT GLuint texture GLint level GLenum format GLenum type const void *data void glClearTexSubImage GLuint texture GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLenum format GLenum type const void *data void glClearTexSubImageEXT GLuint texture GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLenum format GLenum type const void *data void glClientActiveTexture GLenum texture void glClientActiveTextureARB GLenum texture void glClientActiveVertexStreamATI GLenum stream void glClientAttribDefaultEXT GLbitfield mask GLenum glClientWaitSync GLsync sync GLbitfield flags GLuint64 timeout GLenum glClientWaitSyncAPPLE GLsync sync GLbitfield flags GLuint64 timeout void glClipControl GLenum origin GLenum depth void glClipControlEXT GLenum origin GLenum depth void glClipPlane GLenum plane const GLdouble *equation void glClipPlanef GLenum p const GLfloat *eqn void glClipPlanefIMG GLenum p const GLfloat *eqn void glClipPlanefOES GLenum plane const GLfloat *equation void glClipPlanex GLenum plane const GLfixed *equation void glClipPlanexIMG GLenum p const GLfixed *eqn void glClipPlanexOES GLenum plane const GLfixed *equation void glColor3b GLbyte red GLbyte green GLbyte blue void glColor3bv const GLbyte *v void glColor3d GLdouble red GLdouble green GLdouble blue void glColor3dv const GLdouble *v void glColor3f GLfloat red GLfloat green GLfloat blue void glColor3fVertex3fSUN GLfloat r GLfloat g GLfloat b GLfloat x GLfloat y GLfloat z void glColor3fVertex3fvSUN const GLfloat *c const GLfloat *v void glColor3fv const GLfloat *v void glColor3hNV GLhalfNV red GLhalfNV green GLhalfNV blue void glColor3hvNV const GLhalfNV *v void glColor3i GLint red GLint green GLint blue void glColor3iv const GLint *v void glColor3s GLshort red GLshort green GLshort blue void glColor3sv const GLshort *v void glColor3ub GLubyte red GLubyte green GLubyte blue void glColor3ubv const GLubyte *v void glColor3ui GLuint red GLuint green GLuint blue void glColor3uiv const GLuint *v void glColor3us GLushort red GLushort green GLushort blue void glColor3usv const GLushort *v void glColor3xOES GLfixed red GLfixed green GLfixed blue void glColor3xvOES const GLfixed *components void glColor4b GLbyte red GLbyte green GLbyte blue GLbyte alpha void glColor4bv const GLbyte *v void glColor4d GLdouble red GLdouble green GLdouble blue GLdouble alpha void glColor4dv const GLdouble *v void glColor4f GLfloat red GLfloat green GLfloat blue GLfloat alpha void glColor4fNormal3fVertex3fSUN GLfloat r GLfloat g GLfloat b GLfloat a GLfloat nx GLfloat ny GLfloat nz GLfloat x GLfloat y GLfloat z void glColor4fNormal3fVertex3fvSUN const GLfloat *c const GLfloat *n const GLfloat *v void glColor4fv const GLfloat *v void glColor4hNV GLhalfNV red GLhalfNV green GLhalfNV blue GLhalfNV alpha void glColor4hvNV const GLhalfNV *v void glColor4i GLint red GLint green GLint blue GLint alpha void glColor4iv const GLint *v void glColor4s GLshort red GLshort green GLshort blue GLshort alpha void glColor4sv const GLshort *v void glColor4ub GLubyte red GLubyte green GLubyte blue GLubyte alpha void glColor4ubVertex2fSUN GLubyte r GLubyte g GLubyte b GLubyte a GLfloat x GLfloat y void glColor4ubVertex2fvSUN const GLubyte *c const GLfloat *v void glColor4ubVertex3fSUN GLubyte r GLubyte g GLubyte b GLubyte a GLfloat x GLfloat y GLfloat z void glColor4ubVertex3fvSUN const GLubyte *c const GLfloat *v void glColor4ubv const GLubyte *v void glColor4ui GLuint red GLuint green GLuint blue GLuint alpha void glColor4uiv const GLuint *v void glColor4us GLushort red GLushort green GLushort blue GLushort alpha void glColor4usv const GLushort *v void glColor4x GLfixed red GLfixed green GLfixed blue GLfixed alpha void glColor4xOES GLfixed red GLfixed green GLfixed blue GLfixed alpha void glColor4xvOES const GLfixed *components void glColorFormatNV GLint size GLenum type GLsizei stride void glColorFragmentOp1ATI GLenum op GLuint dst GLuint dstMask GLuint dstMod GLuint arg1 GLuint arg1Rep GLuint arg1Mod void glColorFragmentOp2ATI GLenum op GLuint dst GLuint dstMask GLuint dstMod GLuint arg1 GLuint arg1Rep GLuint arg1Mod GLuint arg2 GLuint arg2Rep GLuint arg2Mod void glColorFragmentOp3ATI GLenum op GLuint dst GLuint dstMask GLuint dstMod GLuint arg1 GLuint arg1Rep GLuint arg1Mod GLuint arg2 GLuint arg2Rep GLuint arg2Mod GLuint arg3 GLuint arg3Rep GLuint arg3Mod void glColorMask GLboolean red GLboolean green GLboolean blue GLboolean alpha void glColorMaskIndexedEXT GLuint index GLboolean r GLboolean g GLboolean b GLboolean a void glColorMaski GLuint index GLboolean r GLboolean g GLboolean b GLboolean a void glColorMaskiEXT GLuint index GLboolean r GLboolean g GLboolean b GLboolean a void glColorMaskiOES GLuint index GLboolean r GLboolean g GLboolean b GLboolean a void glColorMaterial GLenum face GLenum mode void glColorP3ui GLenum type GLuint color void glColorP3uiv GLenum type const GLuint *color void glColorP4ui GLenum type GLuint color void glColorP4uiv GLenum type const GLuint *color void glColorPointer GLint size GLenum type GLsizei stride const void *pointer void glColorPointerEXT GLint size GLenum type GLsizei stride GLsizei count const void *pointer void glColorPointerListIBM GLint size GLenum type GLint stride const void **pointer GLint ptrstride void glColorPointervINTEL GLint size GLenum type const void **pointer void glColorSubTable GLenum target GLsizei start GLsizei count GLenum format GLenum type const void *data void glColorSubTableEXT GLenum target GLsizei start GLsizei count GLenum format GLenum type const void *data void glColorTable GLenum target GLenum internalformat GLsizei width GLenum format GLenum type const void *table void glColorTableEXT GLenum target GLenum internalFormat GLsizei width GLenum format GLenum type const void *table void glColorTableParameterfv GLenum target GLenum pname const GLfloat *params void glColorTableParameterfvSGI GLenum target GLenum pname const GLfloat *params void glColorTableParameteriv GLenum target GLenum pname const GLint *params void glColorTableParameterivSGI GLenum target GLenum pname const GLint *params void glColorTableSGI GLenum target GLenum internalformat GLsizei width GLenum format GLenum type const void *table void glCombinerInputNV GLenum stage GLenum portion GLenum variable GLenum input GLenum mapping GLenum componentUsage void glCombinerOutputNV GLenum stage GLenum portion GLenum abOutput GLenum cdOutput GLenum sumOutput GLenum scale GLenum bias GLboolean abDotProduct GLboolean cdDotProduct GLboolean muxSum void glCombinerParameterfNV GLenum pname GLfloat param void glCombinerParameterfvNV GLenum pname const GLfloat *params void glCombinerParameteriNV GLenum pname GLint param void glCombinerParameterivNV GLenum pname const GLint *params void glCombinerStageParameterfvNV GLenum stage GLenum pname const GLfloat *params void glCommandListSegmentsNV GLuint list GLuint segments void glCompileCommandListNV GLuint list void glCompileShader GLuint shader void glCompileShaderARB GLhandleARB shaderObj void glCompileShaderIncludeARB GLuint shader GLsizei count const GLchar *const*path const GLint *length void glCompressedMultiTexImage1DEXT GLenum texunit GLenum target GLint level GLenum internalformat GLsizei width GLint border GLsizei imageSize const void *bits void glCompressedMultiTexImage2DEXT GLenum texunit GLenum target GLint level GLenum internalformat GLsizei width GLsizei height GLint border GLsizei imageSize const void *bits void glCompressedMultiTexImage3DEXT GLenum texunit GLenum target GLint level GLenum internalformat GLsizei width GLsizei height GLsizei depth GLint border GLsizei imageSize const void *bits void glCompressedMultiTexSubImage1DEXT GLenum texunit GLenum target GLint level GLint xoffset GLsizei width GLenum format GLsizei imageSize const void *bits void glCompressedMultiTexSubImage2DEXT GLenum texunit GLenum target GLint level GLint xoffset GLint yoffset GLsizei width GLsizei height GLenum format GLsizei imageSize const void *bits void glCompressedMultiTexSubImage3DEXT GLenum texunit GLenum target GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLenum format GLsizei imageSize const void *bits void glCompressedTexImage1D GLenum target GLint level GLenum internalformat GLsizei width GLint border GLsizei imageSize const void *data void glCompressedTexImage1DARB 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 glCompressedTexImage2DARB 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 glCompressedTexImage3DARB GLenum target GLint level GLenum internalformat GLsizei width GLsizei height GLsizei depth GLint border GLsizei imageSize const void *data void glCompressedTexImage3DOES 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 glCompressedTexSubImage1DARB 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 glCompressedTexSubImage2DARB 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 glCompressedTexSubImage3DARB GLenum target GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLenum format GLsizei imageSize const void *data void glCompressedTexSubImage3DOES GLenum target GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLenum format GLsizei imageSize const void *data void glCompressedTextureImage1DEXT GLuint texture GLenum target GLint level GLenum internalformat GLsizei width GLint border GLsizei imageSize const void *bits void glCompressedTextureImage2DEXT GLuint texture GLenum target GLint level GLenum internalformat GLsizei width GLsizei height GLint border GLsizei imageSize const void *bits void glCompressedTextureImage3DEXT GLuint texture GLenum target GLint level GLenum internalformat GLsizei width GLsizei height GLsizei depth GLint border GLsizei imageSize const void *bits void glCompressedTextureSubImage1D GLuint texture GLint level GLint xoffset GLsizei width GLenum format GLsizei imageSize const void *data void glCompressedTextureSubImage1DEXT GLuint texture GLenum target GLint level GLint xoffset GLsizei width GLenum format GLsizei imageSize const void *bits void glCompressedTextureSubImage2D GLuint texture GLint level GLint xoffset GLint yoffset GLsizei width GLsizei height GLenum format GLsizei imageSize const void *data void glCompressedTextureSubImage2DEXT GLuint texture GLenum target GLint level GLint xoffset GLint yoffset GLsizei width GLsizei height GLenum format GLsizei imageSize const void *bits void glCompressedTextureSubImage3D GLuint texture GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLenum format GLsizei imageSize const void *data void glCompressedTextureSubImage3DEXT GLuint texture GLenum target GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLenum format GLsizei imageSize const void *bits void glConservativeRasterParameterfNV GLenum pname GLfloat value void glConservativeRasterParameteriNV GLenum pname GLint param void glConvolutionFilter1D GLenum target GLenum internalformat GLsizei width GLenum format GLenum type const void *image void glConvolutionFilter1DEXT 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 glConvolutionFilter2DEXT GLenum target GLenum internalformat GLsizei width GLsizei height GLenum format GLenum type const void *image void glConvolutionParameterf GLenum target GLenum pname GLfloat params void glConvolutionParameterfEXT GLenum target GLenum pname GLfloat params void glConvolutionParameterfv GLenum target GLenum pname const GLfloat *params void glConvolutionParameterfvEXT GLenum target GLenum pname const GLfloat *params void glConvolutionParameteri GLenum target GLenum pname GLint params void glConvolutionParameteriEXT GLenum target GLenum pname GLint params void glConvolutionParameteriv GLenum target GLenum pname const GLint *params void glConvolutionParameterivEXT GLenum target GLenum pname const GLint *params void glConvolutionParameterxOES GLenum target GLenum pname GLfixed param void glConvolutionParameterxvOES GLenum target GLenum pname const GLfixed *params void glCopyBufferSubData GLenum readTarget GLenum writeTarget GLintptr readOffset GLintptr writeOffset GLsizeiptr size void glCopyBufferSubDataNV GLenum readTarget GLenum writeTarget GLintptr readOffset GLintptr writeOffset GLsizeiptr size void glCopyColorSubTable GLenum target GLsizei start GLint x GLint y GLsizei width void glCopyColorSubTableEXT GLenum target GLsizei start GLint x GLint y GLsizei width void glCopyColorTable GLenum target GLenum internalformat GLint x GLint y GLsizei width void glCopyColorTableSGI GLenum target GLenum internalformat GLint x GLint y GLsizei width void glCopyConvolutionFilter1D GLenum target GLenum internalformat GLint x GLint y GLsizei width void glCopyConvolutionFilter1DEXT 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 glCopyConvolutionFilter2DEXT GLenum target GLenum internalformat GLint x GLint y GLsizei width GLsizei height void glCopyImageSubData GLuint srcName GLenum srcTarget GLint srcLevel GLint srcX GLint srcY GLint srcZ GLuint dstName GLenum dstTarget GLint dstLevel GLint dstX GLint dstY GLint dstZ GLsizei srcWidth GLsizei srcHeight GLsizei srcDepth void glCopyImageSubDataEXT GLuint srcName GLenum srcTarget GLint srcLevel GLint srcX GLint srcY GLint srcZ GLuint dstName GLenum dstTarget GLint dstLevel GLint dstX GLint dstY GLint dstZ GLsizei srcWidth GLsizei srcHeight GLsizei srcDepth void glCopyImageSubDataNV GLuint srcName GLenum srcTarget GLint srcLevel GLint srcX GLint srcY GLint srcZ GLuint dstName GLenum dstTarget GLint dstLevel GLint dstX GLint dstY GLint dstZ GLsizei width GLsizei height GLsizei depth void glCopyImageSubDataOES GLuint srcName GLenum srcTarget GLint srcLevel GLint srcX GLint srcY GLint srcZ GLuint dstName GLenum dstTarget GLint dstLevel GLint dstX GLint dstY GLint dstZ GLsizei srcWidth GLsizei srcHeight GLsizei srcDepth void glCopyMultiTexImage1DEXT GLenum texunit GLenum target GLint level GLenum internalformat GLint x GLint y GLsizei width GLint border void glCopyMultiTexImage2DEXT GLenum texunit GLenum target GLint level GLenum internalformat GLint x GLint y GLsizei width GLsizei height GLint border void glCopyMultiTexSubImage1DEXT GLenum texunit GLenum target GLint level GLint xoffset GLint x GLint y GLsizei width void glCopyMultiTexSubImage2DEXT GLenum texunit GLenum target GLint level GLint xoffset GLint yoffset GLint x GLint y GLsizei width GLsizei height void glCopyMultiTexSubImage3DEXT GLenum texunit GLenum target GLint level GLint xoffset GLint yoffset GLint zoffset GLint x GLint y GLsizei width GLsizei height void glCopyNamedBufferSubData GLuint readBuffer GLuint writeBuffer GLintptr readOffset GLintptr writeOffset GLsizeiptr size void glCopyPathNV GLuint resultPath GLuint srcPath void glCopyPixels GLint x GLint y GLsizei width GLsizei height GLenum type void glCopyTexImage1D GLenum target GLint level GLenum internalformat GLint x GLint y GLsizei width GLint border void glCopyTexImage1DEXT GLenum target GLint level GLenum internalformat GLint x GLint y GLsizei width GLint border void glCopyTexImage2D GLenum target GLint level GLenum internalformat GLint x GLint y GLsizei width GLsizei height GLint border void glCopyTexImage2DEXT GLenum target GLint level GLenum internalformat GLint x GLint y GLsizei width GLsizei height GLint border void glCopyTexSubImage1D GLenum target GLint level GLint xoffset GLint x GLint y GLsizei width void glCopyTexSubImage1DEXT GLenum target GLint level GLint xoffset GLint x GLint y GLsizei width void glCopyTexSubImage2D GLenum target GLint level GLint xoffset GLint yoffset GLint x GLint y GLsizei width GLsizei height void glCopyTexSubImage2DEXT GLenum target GLint level GLint xoffset GLint yoffset GLint x GLint y GLsizei width GLsizei height void glCopyTexSubImage3D GLenum target GLint level GLint xoffset GLint yoffset GLint zoffset GLint x GLint y GLsizei width GLsizei height void glCopyTexSubImage3DEXT GLenum target GLint level GLint xoffset GLint yoffset GLint zoffset GLint x GLint y GLsizei width GLsizei height void glCopyTexSubImage3DOES GLenum target GLint level GLint xoffset GLint yoffset GLint zoffset GLint x GLint y GLsizei width GLsizei height void glCopyTextureImage1DEXT GLuint texture GLenum target GLint level GLenum internalformat GLint x GLint y GLsizei width GLint border void glCopyTextureImage2DEXT GLuint texture GLenum target GLint level GLenum internalformat GLint x GLint y GLsizei width GLsizei height GLint border void glCopyTextureLevelsAPPLE GLuint destinationTexture GLuint sourceTexture GLint sourceBaseLevel GLsizei sourceLevelCount void glCopyTextureSubImage1D GLuint texture GLint level GLint xoffset GLint x GLint y GLsizei width void glCopyTextureSubImage1DEXT GLuint texture GLenum target GLint level GLint xoffset GLint x GLint y GLsizei width void glCopyTextureSubImage2D GLuint texture GLint level GLint xoffset GLint yoffset GLint x GLint y GLsizei width GLsizei height void glCopyTextureSubImage2DEXT GLuint texture GLenum target GLint level GLint xoffset GLint yoffset GLint x GLint y GLsizei width GLsizei height void glCopyTextureSubImage3D GLuint texture GLint level GLint xoffset GLint yoffset GLint zoffset GLint x GLint y GLsizei width GLsizei height void glCopyTextureSubImage3DEXT GLuint texture GLenum target GLint level GLint xoffset GLint yoffset GLint zoffset GLint x GLint y GLsizei width GLsizei height 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 path GLenum coverMode void glCoverageMaskNV GLboolean mask void glCoverageModulationNV GLenum components void glCoverageModulationTableNV GLsizei n const GLfloat *v void glCoverageOperationNV GLenum operation void glCreateBuffers GLsizei n GLuint *buffers void glCreateCommandListsNV GLsizei n GLuint *lists void glCreateFramebuffers GLsizei n GLuint *framebuffers void glCreateMemoryObjectsEXT GLsizei n GLuint *memoryObjects void glCreatePerfQueryINTEL GLuint queryId GLuint *queryHandle GLuint glCreateProgram GLhandleARB glCreateProgramObjectARB void glCreateProgramPipelines GLsizei n GLuint *pipelines void glCreateQueries GLenum target GLsizei n GLuint *ids void glCreateRenderbuffers GLsizei n GLuint *renderbuffers void glCreateSamplers GLsizei n GLuint *samplers GLuint glCreateShader GLenum type GLhandleARB glCreateShaderObjectARB GLenum shaderType GLuint glCreateShaderProgramEXT GLenum type const GLchar *string GLuint glCreateShaderProgramv GLenum type GLsizei count const GLchar *const*strings GLuint glCreateShaderProgramvEXT GLenum type GLsizei count const GLchar **strings void glCreateStatesNV GLsizei n GLuint *states GLsync glCreateSyncFromCLeventARB struct _cl_context *context struct _cl_event *event GLbitfield flags void glCreateTextures GLenum target GLsizei n GLuint *textures void glCreateTransformFeedbacks GLsizei n GLuint *ids void glCreateVertexArrays GLsizei n GLuint *arrays void glCullFace GLenum mode void glCullParameterdvEXT GLenum pname GLdouble *params void glCullParameterfvEXT GLenum pname GLfloat *params void glCurrentPaletteMatrixARB GLint index void glCurrentPaletteMatrixOES GLuint matrixpaletteindex void glDebugMessageCallback GLDEBUGPROC callback const void *userParam void glDebugMessageCallbackAMD GLDEBUGPROCAMD callback void *userParam void glDebugMessageCallbackARB GLDEBUGPROCARB callback const void *userParam void glDebugMessageCallbackKHR GLDEBUGPROCKHR callback const void *userParam void glDebugMessageControl GLenum source GLenum type GLenum severity GLsizei count const GLuint *ids GLboolean enabled void glDebugMessageControlARB GLenum source GLenum type GLenum severity GLsizei count const GLuint *ids GLboolean enabled void glDebugMessageControlKHR GLenum source GLenum type GLenum severity GLsizei count const GLuint *ids GLboolean enabled void glDebugMessageEnableAMD GLenum category GLenum severity GLsizei count const GLuint *ids GLboolean enabled void glDebugMessageInsert GLenum source GLenum type GLuint id GLenum severity GLsizei length const GLchar *buf void glDebugMessageInsertAMD GLenum category GLenum severity GLuint id GLsizei length const GLchar *buf void glDebugMessageInsertARB GLenum source GLenum type GLuint id GLenum severity GLsizei length const GLchar *buf void glDebugMessageInsertKHR GLenum source GLenum type GLuint id GLenum severity GLsizei length const GLchar *buf void glDeformSGIX GLbitfield mask void glDeformationMap3dSGIX GLenum target GLdouble u1 GLdouble u2 GLint ustride GLint uorder GLdouble v1 GLdouble v2 GLint vstride GLint vorder GLdouble w1 GLdouble w2 GLint wstride GLint worder const GLdouble *points void glDeformationMap3fSGIX GLenum target GLfloat u1 GLfloat u2 GLint ustride GLint uorder GLfloat v1 GLfloat v2 GLint vstride GLint vorder GLfloat w1 GLfloat w2 GLint wstride GLint worder const GLfloat *points void glDeleteAsyncMarkersSGIX GLuint marker GLsizei range void glDeleteBuffers GLsizei n const GLuint *buffers void glDeleteBuffersARB GLsizei n const GLuint *buffers void glDeleteCommandListsNV GLsizei n const GLuint *lists void glDeleteFencesAPPLE GLsizei n const GLuint *fences void glDeleteFencesNV GLsizei n const GLuint *fences void glDeleteFragmentShaderATI GLuint id void glDeleteFramebuffers GLsizei n const GLuint *framebuffers void glDeleteFramebuffersEXT GLsizei n const GLuint *framebuffers void glDeleteFramebuffersOES GLsizei n const GLuint *framebuffers void glDeleteLists GLuint list GLsizei range void glDeleteMemoryObjectsEXT GLsizei n const GLuint *memoryObjects void glDeleteNamedStringARB GLint namelen const GLchar *name void glDeleteNamesAMD GLenum identifier GLuint num const GLuint *names void glDeleteObjectARB GLhandleARB obj void glDeleteOcclusionQueriesNV GLsizei n const GLuint *ids void glDeletePathsNV GLuint path GLsizei range void glDeletePerfMonitorsAMD GLsizei n GLuint *monitors void glDeletePerfQueryINTEL GLuint queryHandle void glDeleteProgram GLuint program void glDeleteProgramPipelines GLsizei n const GLuint *pipelines void glDeleteProgramPipelinesEXT GLsizei n const GLuint *pipelines void glDeleteProgramsARB GLsizei n const GLuint *programs void glDeleteProgramsNV GLsizei n const GLuint *programs void glDeleteQueries GLsizei n const GLuint *ids void glDeleteQueriesARB GLsizei n const GLuint *ids void glDeleteQueriesEXT GLsizei n const GLuint *ids void glDeleteQueryResourceTagNV GLsizei n const GLint *tagIds void glDeleteRenderbuffers GLsizei n const GLuint *renderbuffers void glDeleteRenderbuffersEXT GLsizei n const GLuint *renderbuffers void glDeleteRenderbuffersOES GLsizei n const GLuint *renderbuffers void glDeleteSamplers GLsizei count const GLuint *samplers void glDeleteSemaphoresEXT GLsizei n const GLuint *semaphores void glDeleteShader GLuint shader void glDeleteStatesNV GLsizei n const GLuint *states void glDeleteSync GLsync sync void glDeleteSyncAPPLE GLsync sync void glDeleteTextures GLsizei n const GLuint *textures void glDeleteTexturesEXT GLsizei n const GLuint *textures void glDeleteTransformFeedbacks GLsizei n const GLuint *ids void glDeleteTransformFeedbacksNV GLsizei n const GLuint *ids void glDeleteVertexArrays GLsizei n const GLuint *arrays void glDeleteVertexArraysAPPLE GLsizei n const GLuint *arrays void glDeleteVertexArraysOES GLsizei n const GLuint *arrays void glDeleteVertexShaderEXT GLuint id void glDepthBoundsEXT GLclampd zmin GLclampd zmax void glDepthBoundsdNV GLdouble zmin GLdouble zmax void glDepthFunc GLenum func void glDepthMask GLboolean flag void glDepthRange GLdouble n GLdouble f void glDepthRangeArrayfvNV GLuint first GLsizei count const GLfloat *v void glDepthRangeArrayfvOES GLuint first GLsizei count const GLfloat *v void glDepthRangeArrayv GLuint first GLsizei count const GLdouble *v void glDepthRangeIndexed GLuint index GLdouble n GLdouble f void glDepthRangeIndexedfNV GLuint index GLfloat n GLfloat f void glDepthRangeIndexedfOES GLuint index GLfloat n GLfloat f void glDepthRangedNV GLdouble zNear GLdouble zFar void glDepthRangef GLfloat n GLfloat f void glDepthRangefOES GLclampf n GLclampf f void glDepthRangex GLfixed n GLfixed f void glDepthRangexOES GLfixed n GLfixed f void glDetachObjectARB GLhandleARB containerObj GLhandleARB attachedObj void glDetachShader GLuint program GLuint shader void glDetailTexFuncSGIS GLenum target GLsizei n const GLfloat *points void glDisable GLenum cap void glDisableClientState GLenum array void glDisableClientStateIndexedEXT GLenum array GLuint index void glDisableClientStateiEXT GLenum array GLuint index void glDisableDriverControlQCOM GLuint driverControl void glDisableIndexedEXT GLenum target GLuint index void glDisableVariantClientStateEXT GLuint id void glDisableVertexArrayAttrib GLuint vaobj GLuint index void glDisableVertexArrayAttribEXT GLuint vaobj GLuint index void glDisableVertexArrayEXT GLuint vaobj GLenum array void glDisableVertexAttribAPPLE GLuint index GLenum pname void glDisableVertexAttribArray GLuint index void glDisableVertexAttribArrayARB GLuint index void glDisablei GLenum target GLuint index void glDisableiEXT GLenum target GLuint index void glDisableiNV GLenum target GLuint index void glDisableiOES GLenum target GLuint index void glDiscardFramebufferEXT GLenum target GLsizei numAttachments const GLenum *attachments void glDispatchCompute GLuint num_groups_x GLuint num_groups_y GLuint num_groups_z void glDispatchComputeGroupSizeARB GLuint num_groups_x GLuint num_groups_y GLuint num_groups_z GLuint group_size_x GLuint group_size_y GLuint group_size_z void glDispatchComputeIndirect GLintptr indirect void glDrawArrays GLenum mode GLint first GLsizei count void glDrawArraysEXT GLenum mode GLint first GLsizei count void glDrawArraysIndirect GLenum mode const void *indirect void glDrawArraysInstanced GLenum mode GLint first GLsizei count GLsizei instancecount void glDrawArraysInstancedANGLE GLenum mode GLint first GLsizei count GLsizei primcount void glDrawArraysInstancedARB GLenum mode GLint first GLsizei count GLsizei primcount void glDrawArraysInstancedBaseInstance GLenum mode GLint first GLsizei count GLsizei instancecount GLuint baseinstance void glDrawArraysInstancedBaseInstanceEXT GLenum mode GLint first GLsizei count GLsizei instancecount GLuint baseinstance void glDrawArraysInstancedEXT GLenum mode GLint start GLsizei count GLsizei primcount void glDrawArraysInstancedNV GLenum mode GLint first GLsizei count GLsizei primcount void glDrawBuffer GLenum buf void glDrawBuffers GLsizei n const GLenum *bufs void glDrawBuffersARB GLsizei n const GLenum *bufs void glDrawBuffersATI GLsizei n const GLenum *bufs void glDrawBuffersEXT GLsizei n const GLenum *bufs void glDrawBuffersIndexedEXT GLint n const GLenum *location const GLint *indices void glDrawBuffersNV GLsizei n const GLenum *bufs void glDrawCommandsAddressNV GLenum primitiveMode const GLuint64 *indirects const GLsizei *sizes GLuint count void glDrawCommandsNV GLenum primitiveMode GLuint buffer const GLintptr *indirects const GLsizei *sizes GLuint count void glDrawCommandsStatesAddressNV const GLuint64 *indirects const GLsizei *sizes const GLuint *states const GLuint *fbos GLuint count void glDrawCommandsStatesNV GLuint buffer const GLintptr *indirects const GLsizei *sizes const GLuint *states const GLuint *fbos GLuint count void glDrawElementArrayAPPLE GLenum mode GLint first GLsizei count void glDrawElementArrayATI GLenum mode GLsizei count void glDrawElements GLenum mode GLsizei count GLenum type const void *indices void glDrawElementsBaseVertex GLenum mode GLsizei count GLenum type const void *indices GLint basevertex void glDrawElementsBaseVertexEXT GLenum mode GLsizei count GLenum type const void *indices GLint basevertex void glDrawElementsBaseVertexOES GLenum mode GLsizei count GLenum type const void *indices GLint basevertex void glDrawElementsIndirect GLenum mode GLenum type const void *indirect void glDrawElementsInstanced GLenum mode GLsizei count GLenum type const void *indices GLsizei instancecount void glDrawElementsInstancedANGLE GLenum mode GLsizei count GLenum type const void *indices GLsizei primcount void glDrawElementsInstancedARB GLenum mode GLsizei count GLenum type const void *indices GLsizei primcount void glDrawElementsInstancedBaseInstance GLenum mode GLsizei count GLenum type const void *indices GLsizei instancecount GLuint baseinstance void glDrawElementsInstancedBaseInstanceEXT GLenum mode GLsizei count GLenum type const void *indices GLsizei instancecount GLuint baseinstance void glDrawElementsInstancedBaseVertex GLenum mode GLsizei count GLenum type const void *indices GLsizei instancecount GLint basevertex void glDrawElementsInstancedBaseVertexBaseInstance GLenum mode GLsizei count GLenum type const void *indices GLsizei instancecount GLint basevertex GLuint baseinstance void glDrawElementsInstancedBaseVertexBaseInstanceEXT GLenum mode GLsizei count GLenum type const void *indices GLsizei instancecount GLint basevertex GLuint baseinstance void glDrawElementsInstancedBaseVertexEXT GLenum mode GLsizei count GLenum type const void *indices GLsizei instancecount GLint basevertex void glDrawElementsInstancedBaseVertexOES GLenum mode GLsizei count GLenum type const void *indices GLsizei instancecount GLint basevertex void glDrawElementsInstancedEXT GLenum mode GLsizei count GLenum type const void *indices GLsizei primcount void glDrawElementsInstancedNV GLenum mode GLsizei count GLenum type const void *indices GLsizei primcount void glDrawMeshArraysSUN GLenum mode GLint first GLsizei count GLsizei width void glDrawMeshTasksNV GLuint first GLuint count void glDrawMeshTasksIndirectNV GLintptr indirect void glDrawPixels GLsizei width GLsizei height GLenum format GLenum type const void *pixels void glDrawRangeElementArrayAPPLE GLenum mode GLuint start GLuint end GLint first GLsizei count void glDrawRangeElementArrayATI GLenum mode GLuint start GLuint end GLsizei count void glDrawRangeElements GLenum mode GLuint start GLuint end GLsizei count GLenum type const void *indices void glDrawRangeElementsBaseVertex GLenum mode GLuint start GLuint end GLsizei count GLenum type const void *indices GLint basevertex void glDrawRangeElementsBaseVertexEXT GLenum mode GLuint start GLuint end GLsizei count GLenum type const void *indices GLint basevertex void glDrawRangeElementsBaseVertexOES GLenum mode GLuint start GLuint end GLsizei count GLenum type const void *indices GLint basevertex void glDrawRangeElementsEXT GLenum mode GLuint start GLuint end GLsizei count GLenum type const void *indices void glDrawTexfOES GLfloat x GLfloat y GLfloat z GLfloat width GLfloat height void glDrawTexfvOES const GLfloat *coords void glDrawTexiOES GLint x GLint y GLint z GLint width GLint height void glDrawTexivOES const GLint *coords void glDrawTexsOES GLshort x GLshort y GLshort z GLshort width GLshort height void glDrawTexsvOES const GLshort *coords void glDrawTextureNV GLuint texture GLuint sampler GLfloat x0 GLfloat y0 GLfloat x1 GLfloat y1 GLfloat z GLfloat s0 GLfloat t0 GLfloat s1 GLfloat t1 void glDrawTexxOES GLfixed x GLfixed y GLfixed z GLfixed width GLfixed height void glDrawTexxvOES const GLfixed *coords void glDrawTransformFeedback GLenum mode GLuint id void glDrawTransformFeedbackEXT GLenum mode GLuint id void glDrawTransformFeedbackInstanced GLenum mode GLuint id GLsizei instancecount void glDrawTransformFeedbackInstancedEXT GLenum mode GLuint id GLsizei instancecount void glDrawTransformFeedbackNV GLenum mode GLuint id void glDrawTransformFeedbackStream GLenum mode GLuint id GLuint stream void glDrawTransformFeedbackStreamInstanced GLenum mode GLuint id GLuint stream GLsizei instancecount void glEGLImageTargetRenderbufferStorageOES GLenum target GLeglImageOES image void glEGLImageTargetTexStorageEXT GLenum target GLeglImageOES image const GLint* attrib_list void glEGLImageTargetTexture2DOES GLenum target GLeglImageOES image void glEGLImageTargetTextureStorageEXT GLuint texture GLeglImageOES image const GLint* attrib_list void glEdgeFlag GLboolean flag void glEdgeFlagFormatNV GLsizei stride void glEdgeFlagPointer GLsizei stride const void *pointer void glEdgeFlagPointerEXT GLsizei stride GLsizei count const GLboolean *pointer void glEdgeFlagPointerListIBM GLint stride const GLboolean **pointer GLint ptrstride void glEdgeFlagv const GLboolean *flag void glElementPointerAPPLE GLenum type const void *pointer void glElementPointerATI GLenum type const void *pointer void glEnable GLenum cap void glEnableClientState GLenum array void glEnableClientStateIndexedEXT GLenum array GLuint index void glEnableClientStateiEXT GLenum array GLuint index void glEnableDriverControlQCOM GLuint driverControl void glEnableIndexedEXT GLenum target GLuint index void glEnableVariantClientStateEXT GLuint id void glEnableVertexArrayAttrib GLuint vaobj GLuint index void glEnableVertexArrayAttribEXT GLuint vaobj GLuint index void glEnableVertexArrayEXT GLuint vaobj GLenum array void glEnableVertexAttribAPPLE GLuint index GLenum pname void glEnableVertexAttribArray GLuint index void glEnableVertexAttribArrayARB GLuint index void glEnablei GLenum target GLuint index void glEnableiEXT GLenum target GLuint index void glEnableiNV GLenum target GLuint index void glEnableiOES GLenum target GLuint index void glEnd void glEndConditionalRender void glEndConditionalRenderNV void glEndConditionalRenderNVX void glEndFragmentShaderATI void glEndList void glEndOcclusionQueryNV void glEndPerfMonitorAMD GLuint monitor void glEndPerfQueryINTEL GLuint queryHandle void glEndQuery GLenum target void glEndQueryARB GLenum target void glEndQueryEXT GLenum target void glEndQueryIndexed GLenum target GLuint index void glEndTilingQCOM GLbitfield preserveMask void glEndTransformFeedback void glEndTransformFeedbackEXT void glEndTransformFeedbackNV void glEndVertexShaderEXT void glEndVideoCaptureNV GLuint video_capture_slot void glEvalCoord1d GLdouble u void glEvalCoord1dv const GLdouble *u void glEvalCoord1f GLfloat u void glEvalCoord1fv const GLfloat *u void glEvalCoord1xOES GLfixed u void glEvalCoord1xvOES const GLfixed *coords void glEvalCoord2d GLdouble u GLdouble v void glEvalCoord2dv const GLdouble *u void glEvalCoord2f GLfloat u GLfloat v void glEvalCoord2fv const GLfloat *u void glEvalCoord2xOES GLfixed u GLfixed v void glEvalCoord2xvOES const GLfixed *coords void glEvalMapsNV GLenum target GLenum mode void glEvalMesh1 GLenum mode GLint i1 GLint i2 void glEvalMesh2 GLenum mode GLint i1 GLint i2 GLint j1 GLint j2 void glEvalPoint1 GLint i void glEvalPoint2 GLint i GLint j void glEvaluateDepthValuesARB void glExecuteProgramNV GLenum target GLuint id const GLfloat *params void glExtGetBufferPointervQCOM GLenum target void **params void glExtGetBuffersQCOM GLuint *buffers GLint maxBuffers GLint *numBuffers void glExtGetFramebuffersQCOM GLuint *framebuffers GLint maxFramebuffers GLint *numFramebuffers void glExtGetProgramBinarySourceQCOM GLuint program GLenum shadertype GLchar *source GLint *length void glExtGetProgramsQCOM GLuint *programs GLint maxPrograms GLint *numPrograms void glExtGetRenderbuffersQCOM GLuint *renderbuffers GLint maxRenderbuffers GLint *numRenderbuffers void glExtGetShadersQCOM GLuint *shaders GLint maxShaders GLint *numShaders void glExtGetTexLevelParameterivQCOM GLuint texture GLenum face GLint level GLenum pname GLint *params void glExtGetTexSubImageQCOM GLenum target GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLenum format GLenum type void *texels void glExtGetTexturesQCOM GLuint *textures GLint maxTextures GLint *numTextures GLboolean glExtIsProgramBinaryQCOM GLuint program void glExtTexObjectStateOverrideiQCOM GLenum target GLenum pname GLint param void glExtractComponentEXT GLuint res GLuint src GLuint num void glFeedbackBuffer GLsizei size GLenum type GLfloat *buffer void glFeedbackBufferxOES GLsizei n GLenum type const GLfixed *buffer GLsync glFenceSync GLenum condition GLbitfield flags GLsync glFenceSyncAPPLE GLenum condition GLbitfield flags void glFinalCombinerInputNV GLenum variable GLenum input GLenum mapping GLenum componentUsage void glFinish GLint glFinishAsyncSGIX GLuint *markerp void glFinishFenceAPPLE GLuint fence void glFinishFenceNV GLuint fence void glFinishObjectAPPLE GLenum object GLint name void glFinishTextureSUNX void glFlush void glFlushMappedBufferRange GLenum target GLintptr offset GLsizeiptr length void glFlushMappedBufferRangeAPPLE GLenum target GLintptr offset GLsizeiptr size void glFlushMappedBufferRangeEXT GLenum target GLintptr offset GLsizeiptr length void glFlushMappedNamedBufferRange GLuint buffer GLintptr offset GLsizeiptr length void glFlushMappedNamedBufferRangeEXT GLuint buffer GLintptr offset GLsizeiptr length void glFlushPixelDataRangeNV GLenum target void glFlushRasterSGIX void glFlushStaticDataIBM GLenum target void glFlushVertexArrayRangeAPPLE GLsizei length void *pointer void glFlushVertexArrayRangeNV void glFogCoordFormatNV GLenum type GLsizei stride void glFogCoordPointer GLenum type GLsizei stride const void *pointer void glFogCoordPointerEXT GLenum type GLsizei stride const void *pointer void glFogCoordPointerListIBM GLenum type GLint stride const void **pointer GLint ptrstride void glFogCoordd GLdouble coord void glFogCoorddEXT GLdouble coord void glFogCoorddv const GLdouble *coord void glFogCoorddvEXT const GLdouble *coord void glFogCoordf GLfloat coord void glFogCoordfEXT GLfloat coord void glFogCoordfv const GLfloat *coord void glFogCoordfvEXT const GLfloat *coord void glFogCoordhNV GLhalfNV fog void glFogCoordhvNV const GLhalfNV *fog void glFogFuncSGIS GLsizei n const GLfloat *points void glFogf GLenum pname GLfloat param void glFogfv GLenum pname const GLfloat *params void glFogi GLenum pname GLint param void glFogiv GLenum pname const GLint *params void glFogx GLenum pname GLfixed param void glFogxOES GLenum pname GLfixed param void glFogxv GLenum pname const GLfixed *param void glFogxvOES GLenum pname const GLfixed *param void glFragmentColorMaterialSGIX GLenum face GLenum mode void glFragmentCoverageColorNV GLuint color void glFragmentLightModelfSGIX GLenum pname GLfloat param void glFragmentLightModelfvSGIX GLenum pname const GLfloat *params void glFragmentLightModeliSGIX GLenum pname GLint param void glFragmentLightModelivSGIX GLenum pname const GLint *params void glFragmentLightfSGIX GLenum light GLenum pname GLfloat param void glFragmentLightfvSGIX GLenum light GLenum pname const GLfloat *params void glFragmentLightiSGIX GLenum light GLenum pname GLint param void glFragmentLightivSGIX GLenum light GLenum pname const GLint *params void glFragmentMaterialfSGIX GLenum face GLenum pname GLfloat param void glFragmentMaterialfvSGIX GLenum face GLenum pname const GLfloat *params void glFragmentMaterialiSGIX GLenum face GLenum pname GLint param void glFragmentMaterialivSGIX GLenum face GLenum pname const GLint *params void glFrameTerminatorGREMEDY void glFrameZoomSGIX GLint factor void glFramebufferDrawBufferEXT GLuint framebuffer GLenum mode void glFramebufferDrawBuffersEXT GLuint framebuffer GLsizei n const GLenum *bufs void glFramebufferFetchBarrierEXT void glFramebufferFetchBarrierQCOM void glFramebufferFoveationConfigQCOM GLuint framebuffer GLuint numLayers GLuint focalPointsPerLayer GLuint requestedFeatures GLuint *providedFeatures void glFramebufferFoveationParametersQCOM GLuint framebuffer GLuint layer GLuint focalPoint GLfloat focalX GLfloat focalY GLfloat gainX GLfloat gainY GLfloat foveaArea void glFramebufferParameteri GLenum target GLenum pname GLint param void glFramebufferPixelLocalStorageSizeEXT GLuint target GLsizei size void glFramebufferReadBufferEXT GLuint framebuffer GLenum mode void glFramebufferRenderbuffer GLenum target GLenum attachment GLenum renderbuffertarget GLuint renderbuffer void glFramebufferRenderbufferEXT GLenum target GLenum attachment GLenum renderbuffertarget GLuint renderbuffer void glFramebufferRenderbufferOES GLenum target GLenum attachment GLenum renderbuffertarget GLuint renderbuffer void glFramebufferSampleLocationsfvARB GLenum target GLuint start GLsizei count const GLfloat *v void glFramebufferSampleLocationsfvNV GLenum target GLuint start GLsizei count const GLfloat *v void glFramebufferSamplePositionsfvAMD GLenum target GLuint numsamples GLuint pixelindex const GLfloat *values void glFramebufferTexture GLenum target GLenum attachment GLuint texture GLint level void glFramebufferTexture1D GLenum target GLenum attachment GLenum textarget GLuint texture GLint level void glFramebufferTexture1DEXT GLenum target GLenum attachment GLenum textarget GLuint texture GLint level void glFramebufferTexture2D GLenum target GLenum attachment GLenum textarget GLuint texture GLint level void glFramebufferTexture2DEXT GLenum target GLenum attachment GLenum textarget GLuint texture GLint level void glFramebufferTexture2DDownsampleIMG GLenum target GLenum attachment GLenum textarget GLuint texture GLint level GLint xscale GLint yscale void glFramebufferTexture2DMultisampleEXT GLenum target GLenum attachment GLenum textarget GLuint texture GLint level GLsizei samples void glFramebufferTexture2DMultisampleIMG GLenum target GLenum attachment GLenum textarget GLuint texture GLint level GLsizei samples void glFramebufferTexture2DOES GLenum target GLenum attachment GLenum textarget GLuint texture GLint level void glFramebufferTexture3D GLenum target GLenum attachment GLenum textarget GLuint texture GLint level GLint zoffset void glFramebufferTexture3DEXT GLenum target GLenum attachment GLenum textarget GLuint texture GLint level GLint zoffset void glFramebufferTexture3DOES GLenum target GLenum attachment GLenum textarget GLuint texture GLint level GLint zoffset void glFramebufferTextureARB GLenum target GLenum attachment GLuint texture GLint level void glFramebufferTextureEXT GLenum target GLenum attachment GLuint texture GLint level void glFramebufferTextureFaceARB GLenum target GLenum attachment GLuint texture GLint level GLenum face void glFramebufferTextureFaceEXT GLenum target GLenum attachment GLuint texture GLint level GLenum face void glFramebufferTextureLayer GLenum target GLenum attachment GLuint texture GLint level GLint layer void glFramebufferTextureLayerARB GLenum target GLenum attachment GLuint texture GLint level GLint layer void glFramebufferTextureLayerEXT GLenum target GLenum attachment GLuint texture GLint level GLint layer void glFramebufferTextureLayerDownsampleIMG GLenum target GLenum attachment GLuint texture GLint level GLint layer GLint xscale GLint yscale void glFramebufferTextureMultisampleMultiviewOVR GLenum target GLenum attachment GLuint texture GLint level GLsizei samples GLint baseViewIndex GLsizei numViews void glFramebufferTextureMultiviewOVR GLenum target GLenum attachment GLuint texture GLint level GLint baseViewIndex GLsizei numViews void glFramebufferTextureOES GLenum target GLenum attachment GLuint texture GLint level void glFreeObjectBufferATI GLuint buffer void glFrontFace GLenum mode void glFrustum GLdouble left GLdouble right GLdouble bottom GLdouble top GLdouble zNear GLdouble zFar void glFrustumf GLfloat l GLfloat r GLfloat b GLfloat t GLfloat n GLfloat f void glFrustumfOES GLfloat l GLfloat r GLfloat b GLfloat t GLfloat n GLfloat f void glFrustumx GLfixed l GLfixed r GLfixed b GLfixed t GLfixed n GLfixed f void glFrustumxOES GLfixed l GLfixed r GLfixed b GLfixed t GLfixed n GLfixed f GLuint glGenAsyncMarkersSGIX GLsizei range void glGenBuffers GLsizei n GLuint *buffers void glGenBuffersARB GLsizei n GLuint *buffers void glGenFencesAPPLE GLsizei n GLuint *fences void glGenFencesNV GLsizei n GLuint *fences GLuint glGenFragmentShadersATI GLuint range void glGenFramebuffers GLsizei n GLuint *framebuffers void glGenFramebuffersEXT GLsizei n GLuint *framebuffers void glGenFramebuffersOES GLsizei n GLuint *framebuffers GLuint glGenLists GLsizei range void glGenNamesAMD GLenum identifier GLuint num GLuint *names void glGenOcclusionQueriesNV GLsizei n GLuint *ids GLuint glGenPathsNV GLsizei range void glGenPerfMonitorsAMD GLsizei n GLuint *monitors void glGenProgramPipelines GLsizei n GLuint *pipelines void glGenProgramPipelinesEXT GLsizei n GLuint *pipelines void glGenProgramsARB GLsizei n GLuint *programs void glGenProgramsNV GLsizei n GLuint *programs void glGenQueries GLsizei n GLuint *ids void glGenQueriesARB GLsizei n GLuint *ids void glGenQueriesEXT GLsizei n GLuint *ids void glGenQueryResourceTagNV GLsizei n GLint *tagIds void glGenRenderbuffers GLsizei n GLuint *renderbuffers void glGenRenderbuffersEXT GLsizei n GLuint *renderbuffers void glGenRenderbuffersOES GLsizei n GLuint *renderbuffers void glGenSamplers GLsizei count GLuint *samplers void glGenSemaphoresEXT GLsizei n GLuint *semaphores GLuint glGenSymbolsEXT GLenum datatype GLenum storagetype GLenum range GLuint components void glGenTextures GLsizei n GLuint *textures void glGenTexturesEXT GLsizei n GLuint *textures void glGenTransformFeedbacks GLsizei n GLuint *ids void glGenTransformFeedbacksNV GLsizei n GLuint *ids void glGenVertexArrays GLsizei n GLuint *arrays void glGenVertexArraysAPPLE GLsizei n GLuint *arrays void glGenVertexArraysOES GLsizei n GLuint *arrays GLuint glGenVertexShadersEXT GLuint range void glGenerateMipmap GLenum target void glGenerateMipmapEXT GLenum target void glGenerateMipmapOES GLenum target void glGenerateMultiTexMipmapEXT GLenum texunit GLenum target void glGenerateTextureMipmap GLuint texture void glGenerateTextureMipmapEXT GLuint texture GLenum target void glGetActiveAtomicCounterBufferiv GLuint program GLuint bufferIndex GLenum pname GLint *params void glGetActiveAttrib GLuint program GLuint index GLsizei bufSize GLsizei *length GLint *size GLenum *type GLchar *name void glGetActiveAttribARB GLhandleARB programObj GLuint index GLsizei maxLength GLsizei *length GLint *size GLenum *type GLcharARB *name void glGetActiveSubroutineName GLuint program GLenum shadertype GLuint index GLsizei bufsize GLsizei *length GLchar *name void glGetActiveSubroutineUniformName GLuint program GLenum shadertype GLuint index GLsizei bufsize GLsizei *length GLchar *name void glGetActiveSubroutineUniformiv GLuint program GLenum shadertype GLuint index GLenum pname GLint *values void glGetActiveUniform GLuint program GLuint index GLsizei bufSize GLsizei *length GLint *size GLenum *type GLchar *name void glGetActiveUniformARB GLhandleARB programObj GLuint index GLsizei maxLength GLsizei *length GLint *size GLenum *type GLcharARB *name void glGetActiveUniformBlockName GLuint program GLuint uniformBlockIndex GLsizei bufSize GLsizei *length GLchar *uniformBlockName void glGetActiveUniformBlockiv GLuint program GLuint uniformBlockIndex GLenum pname GLint *params void glGetActiveUniformName GLuint program GLuint uniformIndex GLsizei bufSize GLsizei *length GLchar *uniformName void glGetActiveUniformsiv GLuint program GLsizei uniformCount const GLuint *uniformIndices GLenum pname GLint *params void glGetActiveVaryingNV GLuint program GLuint index GLsizei bufSize GLsizei *length GLsizei *size GLenum *type GLchar *name void glGetArrayObjectfvATI GLenum array GLenum pname GLfloat *params void glGetArrayObjectivATI GLenum array GLenum pname GLint *params void glGetAttachedObjectsARB GLhandleARB containerObj GLsizei maxCount GLsizei *count GLhandleARB *obj void glGetAttachedShaders GLuint program GLsizei maxCount GLsizei *count GLuint *shaders GLint glGetAttribLocation GLuint program const GLchar *name GLint glGetAttribLocationARB GLhandleARB programObj const GLcharARB *name void glGetBooleanIndexedvEXT GLenum target GLuint index GLboolean *data void glGetBooleani_v GLenum target GLuint index GLboolean *data void glGetBooleanv GLenum pname GLboolean *data void glGetBufferParameteri64v GLenum target GLenum pname GLint64 *params void glGetBufferParameteriv GLenum target GLenum pname GLint *params void glGetBufferParameterivARB GLenum target GLenum pname GLint *params void glGetBufferParameterui64vNV GLenum target GLenum pname GLuint64EXT *params void glGetBufferPointerv GLenum target GLenum pname void **params void glGetBufferPointervARB GLenum target GLenum pname void **params void glGetBufferPointervOES GLenum target GLenum pname void **params void glGetBufferSubData GLenum target GLintptr offset GLsizeiptr size void *data void glGetBufferSubDataARB GLenum target GLintptrARB offset GLsizeiptrARB size void *data void glGetClipPlane GLenum plane GLdouble *equation void glGetClipPlanef GLenum plane GLfloat *equation void glGetClipPlanefOES GLenum plane GLfloat *equation void glGetClipPlanex GLenum plane GLfixed *equation void glGetClipPlanexOES GLenum plane GLfixed *equation void glGetColorTable GLenum target GLenum format GLenum type void *table void glGetColorTableEXT GLenum target GLenum format GLenum type void *data void glGetColorTableParameterfv GLenum target GLenum pname GLfloat *params void glGetColorTableParameterfvEXT GLenum target GLenum pname GLfloat *params void glGetColorTableParameterfvSGI GLenum target GLenum pname GLfloat *params void glGetColorTableParameteriv GLenum target GLenum pname GLint *params void glGetColorTableParameterivEXT GLenum target GLenum pname GLint *params void glGetColorTableParameterivSGI GLenum target GLenum pname GLint *params void glGetColorTableSGI GLenum target GLenum format GLenum type void *table void glGetCombinerInputParameterfvNV GLenum stage GLenum portion GLenum variable GLenum pname GLfloat *params void glGetCombinerInputParameterivNV GLenum stage GLenum portion GLenum variable GLenum pname GLint *params void glGetCombinerOutputParameterfvNV GLenum stage GLenum portion GLenum pname GLfloat *params void glGetCombinerOutputParameterivNV GLenum stage GLenum portion GLenum pname GLint *params void glGetCombinerStageParameterfvNV GLenum stage GLenum pname GLfloat *params GLuint glGetCommandHeaderNV GLenum tokenID GLuint size void glGetCompressedMultiTexImageEXT GLenum texunit GLenum target GLint lod void *img void glGetCompressedTexImage GLenum target GLint level void *img void glGetCompressedTexImageARB GLenum target GLint level void *img void glGetCompressedTextureImage GLuint texture GLint level GLsizei bufSize void *pixels void glGetCompressedTextureImageEXT GLuint texture GLenum target GLint lod void *img void glGetCompressedTextureSubImage GLuint texture GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLsizei bufSize void *pixels void glGetConvolutionFilter GLenum target GLenum format GLenum type void *image void glGetConvolutionFilterEXT GLenum target GLenum format GLenum type void *image void glGetConvolutionParameterfv GLenum target GLenum pname GLfloat *params void glGetConvolutionParameterfvEXT GLenum target GLenum pname GLfloat *params void glGetConvolutionParameteriv GLenum target GLenum pname GLint *params void glGetConvolutionParameterivEXT GLenum target GLenum pname GLint *params void glGetConvolutionParameterxvOES GLenum target GLenum pname GLfixed *params void glGetCoverageModulationTableNV GLsizei bufsize GLfloat *v GLuint glGetDebugMessageLog GLuint count GLsizei bufSize GLenum *sources GLenum *types GLuint *ids GLenum *severities GLsizei *lengths GLchar *messageLog GLuint glGetDebugMessageLogAMD GLuint count GLsizei bufsize GLenum *categories GLuint *severities GLuint *ids GLsizei *lengths GLchar *message GLuint glGetDebugMessageLogARB GLuint count GLsizei bufSize GLenum *sources GLenum *types GLuint *ids GLenum *severities GLsizei *lengths GLchar *messageLog GLuint glGetDebugMessageLogKHR GLuint count GLsizei bufSize GLenum *sources GLenum *types GLuint *ids GLenum *severities GLsizei *lengths GLchar *messageLog void glGetDetailTexFuncSGIS GLenum target GLfloat *points void glGetDoubleIndexedvEXT GLenum target GLuint index GLdouble *data void glGetDoublei_v GLenum target GLuint index GLdouble *data void glGetDoublei_vEXT GLenum pname GLuint index GLdouble *params void glGetDoublev GLenum pname GLdouble *data void glGetDriverControlStringQCOM GLuint driverControl GLsizei bufSize GLsizei *length GLchar *driverControlString void glGetDriverControlsQCOM GLint *num GLsizei size GLuint *driverControls GLenum glGetError void glGetFenceivNV GLuint fence GLenum pname GLint *params void glGetFinalCombinerInputParameterfvNV GLenum variable GLenum pname GLfloat *params void glGetFinalCombinerInputParameterivNV GLenum variable GLenum pname GLint *params void glGetFirstPerfQueryIdINTEL GLuint *queryId void glGetFixedv GLenum pname GLfixed *params void glGetFixedvOES GLenum pname GLfixed *params void glGetFloatIndexedvEXT GLenum target GLuint index GLfloat *data void glGetFloati_v GLenum target GLuint index GLfloat *data void glGetFloati_vEXT GLenum pname GLuint index GLfloat *params void glGetFloati_vNV GLenum target GLuint index GLfloat *data void glGetFloati_vOES GLenum target GLuint index GLfloat *data void glGetFloatv GLenum pname GLfloat *data void glGetFogFuncSGIS GLfloat *points GLint glGetFragDataIndex GLuint program const GLchar *name GLint glGetFragDataIndexEXT GLuint program const GLchar *name GLint glGetFragDataLocation GLuint program const GLchar *name GLint glGetFragDataLocationEXT GLuint program const GLchar *name void glGetFragmentLightfvSGIX GLenum light GLenum pname GLfloat *params void glGetFragmentLightivSGIX GLenum light GLenum pname GLint *params void glGetFragmentMaterialfvSGIX GLenum face GLenum pname GLfloat *params void glGetFragmentMaterialivSGIX GLenum face GLenum pname GLint *params void glGetFramebufferAttachmentParameteriv GLenum target GLenum attachment GLenum pname GLint *params void glGetFramebufferAttachmentParameterivEXT GLenum target GLenum attachment GLenum pname GLint *params void glGetFramebufferAttachmentParameterivOES GLenum target GLenum attachment GLenum pname GLint *params void glGetFramebufferParameterfvAMD GLenum target GLenum pname GLuint numsamples GLuint pixelindex GLsizei size GLfloat *values void glGetFramebufferParameteriv GLenum target GLenum pname GLint *params void glGetFramebufferParameterivEXT GLuint framebuffer GLenum pname GLint *params GLsizei glGetFramebufferPixelLocalStorageSizeEXT GLuint target GLenum glGetGraphicsResetStatus GLenum glGetGraphicsResetStatusARB GLenum glGetGraphicsResetStatusEXT GLenum glGetGraphicsResetStatusKHR GLhandleARB glGetHandleARB GLenum pname void glGetHistogram GLenum target GLboolean reset GLenum format GLenum type void *values void glGetHistogramEXT GLenum target GLboolean reset GLenum format GLenum type void *values void glGetHistogramParameterfv GLenum target GLenum pname GLfloat *params void glGetHistogramParameterfvEXT GLenum target GLenum pname GLfloat *params void glGetHistogramParameteriv GLenum target GLenum pname GLint *params void glGetHistogramParameterivEXT GLenum target GLenum pname GLint *params void glGetHistogramParameterxvOES GLenum target GLenum pname GLfixed *params GLuint64 glGetImageHandleARB GLuint texture GLint level GLboolean layered GLint layer GLenum format GLuint64 glGetImageHandleNV GLuint texture GLint level GLboolean layered GLint layer GLenum format void glGetImageTransformParameterfvHP GLenum target GLenum pname GLfloat *params void glGetImageTransformParameterivHP GLenum target GLenum pname GLint *params void glGetInfoLogARB GLhandleARB obj GLsizei maxLength GLsizei *length GLcharARB *infoLog GLint glGetInstrumentsSGIX void glGetInteger64i_v GLenum target GLuint index GLint64 *data void glGetInteger64v GLenum pname GLint64 *data void glGetInteger64vAPPLE GLenum pname GLint64 *params void glGetIntegerIndexedvEXT GLenum target GLuint index GLint *data void glGetIntegeri_v GLenum target GLuint index GLint *data void glGetIntegeri_vEXT GLenum target GLuint index GLint *data void glGetIntegerui64i_vNV GLenum value GLuint index GLuint64EXT *result void glGetIntegerui64vNV GLenum value GLuint64EXT *result void glGetIntegerv GLenum pname GLint *data void glGetInternalformatSampleivNV GLenum target GLenum internalformat GLsizei samples GLenum pname GLsizei bufSize GLint *params void glGetInternalformati64v GLenum target GLenum internalformat GLenum pname GLsizei bufSize GLint64 *params void glGetInternalformativ GLenum target GLenum internalformat GLenum pname GLsizei bufSize GLint *params void glGetInvariantBooleanvEXT GLuint id GLenum value GLboolean *data void glGetInvariantFloatvEXT GLuint id GLenum value GLfloat *data void glGetInvariantIntegervEXT GLuint id GLenum value GLint *data void glGetLightfv GLenum light GLenum pname GLfloat *params void glGetLightiv GLenum light GLenum pname GLint *params void glGetLightxOES GLenum light GLenum pname GLfixed *params void glGetLightxv GLenum light GLenum pname GLfixed *params void glGetLightxvOES GLenum light GLenum pname GLfixed *params void glGetListParameterfvSGIX GLuint list GLenum pname GLfloat *params void glGetListParameterivSGIX GLuint list GLenum pname GLint *params void glGetLocalConstantBooleanvEXT GLuint id GLenum value GLboolean *data void glGetLocalConstantFloatvEXT GLuint id GLenum value GLfloat *data void glGetLocalConstantIntegervEXT GLuint id GLenum value GLint *data void glGetMapAttribParameterfvNV GLenum target GLuint index GLenum pname GLfloat *params void glGetMapAttribParameterivNV GLenum target GLuint index GLenum pname GLint *params void glGetMapControlPointsNV GLenum target GLuint index GLenum type GLsizei ustride GLsizei vstride GLboolean packed void *points void glGetMapParameterfvNV GLenum target GLenum pname GLfloat *params void glGetMapParameterivNV GLenum target GLenum pname GLint *params void glGetMapdv GLenum target GLenum query GLdouble *v void glGetMapfv GLenum target GLenum query GLfloat *v void glGetMapiv GLenum target GLenum query GLint *v void glGetMapxvOES GLenum target GLenum query GLfixed *v void glGetMaterialfv GLenum face GLenum pname GLfloat *params void glGetMaterialiv GLenum face GLenum pname GLint *params void glGetMaterialxOES GLenum face GLenum pname GLfixed param void glGetMaterialxv GLenum face GLenum pname GLfixed *params void glGetMaterialxvOES GLenum face GLenum pname GLfixed *params void glGetMemoryObjectDetachedResourcesuivNV GLuint memory GLenum pname GLint first GLsizei count GLuint *params void glGetMemoryObjectParameterivEXT GLuint memoryObject GLenum pname GLint *params void glGetMinmax GLenum target GLboolean reset GLenum format GLenum type void *values void glGetMinmaxEXT GLenum target GLboolean reset GLenum format GLenum type void *values void glGetMinmaxParameterfv GLenum target GLenum pname GLfloat *params void glGetMinmaxParameterfvEXT GLenum target GLenum pname GLfloat *params void glGetMinmaxParameteriv GLenum target GLenum pname GLint *params void glGetMinmaxParameterivEXT GLenum target GLenum pname GLint *params void glGetMultiTexEnvfvEXT GLenum texunit GLenum target GLenum pname GLfloat *params void glGetMultiTexEnvivEXT GLenum texunit GLenum target GLenum pname GLint *params void glGetMultiTexGendvEXT GLenum texunit GLenum coord GLenum pname GLdouble *params void glGetMultiTexGenfvEXT GLenum texunit GLenum coord GLenum pname GLfloat *params void glGetMultiTexGenivEXT GLenum texunit GLenum coord GLenum pname GLint *params void glGetMultiTexImageEXT GLenum texunit GLenum target GLint level GLenum format GLenum type void *pixels void glGetMultiTexLevelParameterfvEXT GLenum texunit GLenum target GLint level GLenum pname GLfloat *params void glGetMultiTexLevelParameterivEXT GLenum texunit GLenum target GLint level GLenum pname GLint *params void glGetMultiTexParameterIivEXT GLenum texunit GLenum target GLenum pname GLint *params void glGetMultiTexParameterIuivEXT GLenum texunit GLenum target GLenum pname GLuint *params void glGetMultiTexParameterfvEXT GLenum texunit GLenum target GLenum pname GLfloat *params void glGetMultiTexParameterivEXT GLenum texunit GLenum target GLenum pname GLint *params void glGetMultisamplefv GLenum pname GLuint index GLfloat *val void glGetMultisamplefvNV GLenum pname GLuint index GLfloat *val void glGetNamedBufferParameteri64v GLuint buffer GLenum pname GLint64 *params void glGetNamedBufferParameteriv GLuint buffer GLenum pname GLint *params void glGetNamedBufferParameterivEXT GLuint buffer GLenum pname GLint *params void glGetNamedBufferParameterui64vNV GLuint buffer GLenum pname GLuint64EXT *params void glGetNamedBufferPointerv GLuint buffer GLenum pname void **params void glGetNamedBufferPointervEXT GLuint buffer GLenum pname void **params void glGetNamedBufferSubData GLuint buffer GLintptr offset GLsizeiptr size void *data void glGetNamedBufferSubDataEXT GLuint buffer GLintptr offset GLsizeiptr size void *data void glGetNamedFramebufferParameterfvAMD GLuint framebuffer GLenum pname GLuint numsamples GLuint pixelindex GLsizei size GLfloat *values void glGetNamedFramebufferAttachmentParameteriv GLuint framebuffer GLenum attachment GLenum pname GLint *params void glGetNamedFramebufferAttachmentParameterivEXT GLuint framebuffer GLenum attachment GLenum pname GLint *params void glGetNamedFramebufferParameteriv GLuint framebuffer GLenum pname GLint *param void glGetNamedFramebufferParameterivEXT GLuint framebuffer GLenum pname GLint *params void glGetNamedProgramLocalParameterIivEXT GLuint program GLenum target GLuint index GLint *params void glGetNamedProgramLocalParameterIuivEXT GLuint program GLenum target GLuint index GLuint *params void glGetNamedProgramLocalParameterdvEXT GLuint program GLenum target GLuint index GLdouble *params void glGetNamedProgramLocalParameterfvEXT GLuint program GLenum target GLuint index GLfloat *params void glGetNamedProgramStringEXT GLuint program GLenum target GLenum pname void *string void glGetNamedProgramivEXT GLuint program GLenum target GLenum pname GLint *params void glGetNamedRenderbufferParameteriv GLuint renderbuffer GLenum pname GLint *params void glGetNamedRenderbufferParameterivEXT GLuint renderbuffer GLenum pname GLint *params void glGetNamedStringARB GLint namelen const GLchar *name GLsizei bufSize GLint *stringlen GLchar *string void glGetNamedStringivARB GLint namelen const GLchar *name GLenum pname GLint *params void glGetNextPerfQueryIdINTEL GLuint queryId GLuint *nextQueryId void glGetObjectBufferfvATI GLuint buffer GLenum pname GLfloat *params void glGetObjectBufferivATI GLuint buffer GLenum pname GLint *params void glGetObjectLabel GLenum identifier GLuint name GLsizei bufSize GLsizei *length GLchar *label void glGetObjectLabelEXT GLenum type GLuint object GLsizei bufSize GLsizei *length GLchar *label void glGetObjectLabelKHR GLenum identifier GLuint name GLsizei bufSize GLsizei *length GLchar *label void glGetObjectParameterfvARB GLhandleARB obj GLenum pname GLfloat *params void glGetObjectParameterivAPPLE GLenum objectType GLuint name GLenum pname GLint *params void glGetObjectParameterivARB GLhandleARB obj GLenum pname GLint *params void glGetObjectPtrLabel const void *ptr GLsizei bufSize GLsizei *length GLchar *label void glGetObjectPtrLabelKHR const void *ptr GLsizei bufSize GLsizei *length GLchar *label void glGetOcclusionQueryivNV GLuint id GLenum pname GLint *params void glGetOcclusionQueryuivNV GLuint id GLenum pname GLuint *params void glGetPathColorGenfvNV GLenum color GLenum pname GLfloat *value void glGetPathColorGenivNV GLenum color GLenum pname GLint *value void glGetPathCommandsNV GLuint path GLubyte *commands void glGetPathCoordsNV GLuint path GLfloat *coords void glGetPathDashArrayNV GLuint path GLfloat *dashArray GLfloat glGetPathLengthNV GLuint path GLsizei startSegment GLsizei numSegments void glGetPathMetricRangeNV GLbitfield metricQueryMask GLuint firstPathName 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 path GLenum pname GLfloat *value void glGetPathParameterivNV GLuint path GLenum pname 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 glGetPerfCounterInfoINTEL GLuint queryId GLuint counterId GLuint counterNameLength GLchar *counterName GLuint counterDescLength GLchar *counterDesc GLuint *counterOffset GLuint *counterDataSize GLuint *counterTypeEnum GLuint *counterDataTypeEnum GLuint64 *rawCounterMaxValue void glGetPerfMonitorCounterDataAMD GLuint monitor GLenum pname GLsizei dataSize GLuint *data GLint *bytesWritten void glGetPerfMonitorCounterInfoAMD GLuint group GLuint counter GLenum pname void *data void glGetPerfMonitorCounterStringAMD GLuint group GLuint counter GLsizei bufSize GLsizei *length GLchar *counterString void glGetPerfMonitorCountersAMD GLuint group GLint *numCounters GLint *maxActiveCounters GLsizei counterSize GLuint *counters void glGetPerfMonitorGroupStringAMD GLuint group GLsizei bufSize GLsizei *length GLchar *groupString void glGetPerfMonitorGroupsAMD GLint *numGroups GLsizei groupsSize GLuint *groups void glGetPerfQueryDataINTEL GLuint queryHandle GLuint flags GLsizei dataSize void *data GLuint *bytesWritten void glGetPerfQueryIdByNameINTEL GLchar *queryName GLuint *queryId void glGetPerfQueryInfoINTEL GLuint queryId GLuint queryNameLength GLchar *queryName GLuint *dataSize GLuint *noCounters GLuint *noInstances GLuint *capsMask void glGetPixelMapfv GLenum map GLfloat *values void glGetPixelMapuiv GLenum map GLuint *values void glGetPixelMapusv GLenum map GLushort *values void glGetPixelMapxv GLenum map GLint size GLfixed *values void glGetPixelTexGenParameterfvSGIS GLenum pname GLfloat *params void glGetPixelTexGenParameterivSGIS GLenum pname GLint *params void glGetPixelTransformParameterfvEXT GLenum target GLenum pname GLfloat *params void glGetPixelTransformParameterivEXT GLenum target GLenum pname GLint *params void glGetPointerIndexedvEXT GLenum target GLuint index void **data void glGetPointeri_vEXT GLenum pname GLuint index void **params void glGetPointerv GLenum pname void **params void glGetPointervEXT GLenum pname void **params void glGetPointervKHR GLenum pname void **params void glGetPolygonStipple GLubyte *mask void glGetProgramBinary GLuint program GLsizei bufSize GLsizei *length GLenum *binaryFormat void *binary void glGetProgramBinaryOES GLuint program GLsizei bufSize GLsizei *length GLenum *binaryFormat void *binary void glGetProgramEnvParameterIivNV GLenum target GLuint index GLint *params void glGetProgramEnvParameterIuivNV GLenum target GLuint index GLuint *params void glGetProgramEnvParameterdvARB GLenum target GLuint index GLdouble *params void glGetProgramEnvParameterfvARB GLenum target GLuint index GLfloat *params void glGetProgramInfoLog GLuint program GLsizei bufSize GLsizei *length GLchar *infoLog void glGetProgramInterfaceiv GLuint program GLenum programInterface GLenum pname GLint *params void glGetProgramLocalParameterIivNV GLenum target GLuint index GLint *params void glGetProgramLocalParameterIuivNV GLenum target GLuint index GLuint *params void glGetProgramLocalParameterdvARB GLenum target GLuint index GLdouble *params void glGetProgramLocalParameterfvARB GLenum target GLuint index GLfloat *params void glGetProgramNamedParameterdvNV GLuint id GLsizei len const GLubyte *name GLdouble *params void glGetProgramNamedParameterfvNV GLuint id GLsizei len const GLubyte *name GLfloat *params void glGetProgramParameterdvNV GLenum target GLuint index GLenum pname GLdouble *params void glGetProgramParameterfvNV GLenum target GLuint index GLenum pname GLfloat *params void glGetProgramPipelineInfoLog GLuint pipeline GLsizei bufSize GLsizei *length GLchar *infoLog void glGetProgramPipelineInfoLogEXT GLuint pipeline GLsizei bufSize GLsizei *length GLchar *infoLog void glGetProgramPipelineiv GLuint pipeline GLenum pname GLint *params void glGetProgramPipelineivEXT GLuint pipeline GLenum pname GLint *params GLuint glGetProgramResourceIndex GLuint program GLenum programInterface const GLchar *name GLint glGetProgramResourceLocation GLuint program GLenum programInterface const GLchar *name GLint glGetProgramResourceLocationIndex GLuint program GLenum programInterface const GLchar *name GLint glGetProgramResourceLocationIndexEXT GLuint program GLenum programInterface const GLchar *name void glGetProgramResourceName GLuint program GLenum programInterface GLuint index GLsizei bufSize GLsizei *length GLchar *name void glGetProgramResourcefvNV GLuint program GLenum programInterface GLuint index GLsizei propCount const GLenum *props GLsizei bufSize GLsizei *length GLfloat *params void glGetProgramResourceiv GLuint program GLenum programInterface GLuint index GLsizei propCount const GLenum *props GLsizei bufSize GLsizei *length GLint *params void glGetProgramStageiv GLuint program GLenum shadertype GLenum pname GLint *values void glGetProgramStringARB GLenum target GLenum pname void *string void glGetProgramStringNV GLuint id GLenum pname GLubyte *program void glGetProgramSubroutineParameteruivNV GLenum target GLuint index GLuint *param void glGetProgramiv GLuint program GLenum pname GLint *params void glGetProgramivARB GLenum target GLenum pname GLint *params void glGetProgramivNV GLuint id 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 glGetQueryIndexediv GLenum target GLuint index GLenum pname GLint *params void glGetQueryObjecti64v GLuint id GLenum pname GLint64 *params void glGetQueryObjecti64vEXT GLuint id GLenum pname GLint64 *params void glGetQueryObjectiv GLuint id GLenum pname GLint *params void glGetQueryObjectivARB GLuint id GLenum pname GLint *params void glGetQueryObjectivEXT GLuint id GLenum pname GLint *params void glGetQueryObjectui64v GLuint id GLenum pname GLuint64 *params void glGetQueryObjectui64vEXT GLuint id GLenum pname GLuint64 *params void glGetQueryObjectuiv GLuint id GLenum pname GLuint *params void glGetQueryObjectuivARB GLuint id GLenum pname GLuint *params void glGetQueryObjectuivEXT GLuint id GLenum pname GLuint *params void glGetQueryiv GLenum target GLenum pname GLint *params void glGetQueryivARB GLenum target GLenum pname GLint *params void glGetQueryivEXT GLenum target GLenum pname GLint *params void glGetRenderbufferParameteriv GLenum target GLenum pname GLint *params void glGetRenderbufferParameterivEXT GLenum target GLenum pname GLint *params void glGetRenderbufferParameterivOES GLenum target GLenum pname GLint *params void glGetSamplerParameterIiv GLuint sampler GLenum pname GLint *params void glGetSamplerParameterIivEXT GLuint sampler GLenum pname GLint *params void glGetSamplerParameterIivOES GLuint sampler GLenum pname GLint *params void glGetSamplerParameterIuiv GLuint sampler GLenum pname GLuint *params void glGetSamplerParameterIuivEXT GLuint sampler GLenum pname GLuint *params void glGetSamplerParameterIuivOES GLuint sampler GLenum pname GLuint *params void glGetSamplerParameterfv GLuint sampler GLenum pname GLfloat *params void glGetSamplerParameteriv GLuint sampler GLenum pname GLint *params void glGetSemaphoreParameterui64vEXT GLuint semaphore GLenum pname GLuint64 *params void glGetSeparableFilter GLenum target GLenum format GLenum type void *row void *column void *span void glGetSeparableFilterEXT GLenum target GLenum format GLenum type void *row void *column void *span void glGetShaderInfoLog GLuint shader GLsizei bufSize GLsizei *length GLchar *infoLog void glGetShaderPrecisionFormat GLenum shadertype GLenum precisiontype GLint *range GLint *precision void glGetShaderSource GLuint shader GLsizei bufSize GLsizei *length GLchar *source void glGetShaderSourceARB GLhandleARB obj GLsizei maxLength GLsizei *length GLcharARB *source void glGetShaderiv GLuint shader GLenum pname GLint *params void glGetShadingRateImagePaletteNV GLuint viewport GLuint entry GLenum *rate void glGetShadingRateSampleLocationivNV GLenum rate GLuint samples GLuint index GLint *location void glGetSharpenTexFuncSGIS GLenum target GLfloat *points GLushort glGetStageIndexNV GLenum shadertype const GLubyte *glGetString GLenum name const GLubyte *glGetStringi GLenum name GLuint index GLuint glGetSubroutineIndex GLuint program GLenum shadertype const GLchar *name GLint glGetSubroutineUniformLocation GLuint program GLenum shadertype const GLchar *name void glGetSynciv GLsync sync GLenum pname GLsizei bufSize GLsizei *length GLint *values void glGetSyncivAPPLE GLsync sync GLenum pname GLsizei bufSize GLsizei *length GLint *values void glGetTexBumpParameterfvATI GLenum pname GLfloat *param void glGetTexBumpParameterivATI GLenum pname GLint *param void glGetTexEnvfv GLenum target GLenum pname GLfloat *params void glGetTexEnviv GLenum target GLenum pname GLint *params void glGetTexEnvxv GLenum target GLenum pname GLfixed *params void glGetTexEnvxvOES GLenum target GLenum pname GLfixed *params void glGetTexFilterFuncSGIS GLenum target GLenum filter GLfloat *weights void glGetTexGendv GLenum coord GLenum pname GLdouble *params void glGetTexGenfv GLenum coord GLenum pname GLfloat *params void glGetTexGenfvOES GLenum coord GLenum pname GLfloat *params void glGetTexGeniv GLenum coord GLenum pname GLint *params void glGetTexGenivOES GLenum coord GLenum pname GLint *params void glGetTexGenxvOES GLenum coord GLenum pname GLfixed *params void glGetTexImage GLenum target GLint level GLenum format GLenum type void *pixels void glGetTexLevelParameterfv GLenum target GLint level GLenum pname GLfloat *params void glGetTexLevelParameteriv GLenum target GLint level GLenum pname GLint *params void glGetTexLevelParameterxvOES GLenum target GLint level GLenum pname GLfixed *params void glGetTexParameterIiv GLenum target GLenum pname GLint *params void glGetTexParameterIivEXT GLenum target GLenum pname GLint *params void glGetTexParameterIivOES GLenum target GLenum pname GLint *params void glGetTexParameterIuiv GLenum target GLenum pname GLuint *params void glGetTexParameterIuivEXT GLenum target GLenum pname GLuint *params void glGetTexParameterIuivOES GLenum target GLenum pname GLuint *params void glGetTexParameterPointervAPPLE GLenum target GLenum pname void **params void glGetTexParameterfv GLenum target GLenum pname GLfloat *params void glGetTexParameteriv GLenum target GLenum pname GLint *params void glGetTexParameterxv GLenum target GLenum pname GLfixed *params void glGetTexParameterxvOES GLenum target GLenum pname GLfixed *params GLuint64 glGetTextureHandleARB GLuint texture GLuint64 glGetTextureHandleIMG GLuint texture GLuint64 glGetTextureHandleNV GLuint texture void glGetTextureImage GLuint texture GLint level GLenum format GLenum type GLsizei bufSize void *pixels void glGetTextureImageEXT GLuint texture GLenum target GLint level GLenum format GLenum type void *pixels void glGetTextureLevelParameterfv GLuint texture GLint level GLenum pname GLfloat *params void glGetTextureLevelParameterfvEXT GLuint texture GLenum target GLint level GLenum pname GLfloat *params void glGetTextureLevelParameteriv GLuint texture GLint level GLenum pname GLint *params void glGetTextureLevelParameterivEXT GLuint texture GLenum target GLint level GLenum pname GLint *params void glGetTextureParameterIiv GLuint texture GLenum pname GLint *params void glGetTextureParameterIivEXT GLuint texture GLenum target GLenum pname GLint *params void glGetTextureParameterIuiv GLuint texture GLenum pname GLuint *params void glGetTextureParameterIuivEXT GLuint texture GLenum target GLenum pname GLuint *params void glGetTextureParameterfv GLuint texture GLenum pname GLfloat *params void glGetTextureParameterfvEXT GLuint texture GLenum target GLenum pname GLfloat *params void glGetTextureParameteriv GLuint texture GLenum pname GLint *params void glGetTextureParameterivEXT GLuint texture GLenum target GLenum pname GLint *params GLuint64 glGetTextureSamplerHandleARB GLuint texture GLuint sampler GLuint64 glGetTextureSamplerHandleIMG GLuint texture GLuint sampler GLuint64 glGetTextureSamplerHandleNV GLuint texture GLuint sampler void glGetTextureSubImage GLuint texture GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLenum format GLenum type GLsizei bufSize void *pixels void glGetTrackMatrixivNV GLenum target GLuint address GLenum pname GLint *params void glGetTransformFeedbackVarying GLuint program GLuint index GLsizei bufSize GLsizei *length GLsizei *size GLenum *type GLchar *name void glGetTransformFeedbackVaryingEXT GLuint program GLuint index GLsizei bufSize GLsizei *length GLsizei *size GLenum *type GLchar *name void glGetTransformFeedbackVaryingNV GLuint program GLuint index GLint *location void glGetTransformFeedbacki64_v GLuint xfb GLenum pname GLuint index GLint64 *param void glGetTransformFeedbacki_v GLuint xfb GLenum pname GLuint index GLint *param void glGetTransformFeedbackiv GLuint xfb GLenum pname GLint *param void glGetTranslatedShaderSourceANGLE GLuint shader GLsizei bufsize GLsizei *length GLchar *source GLuint glGetUniformBlockIndex GLuint program const GLchar *uniformBlockName GLint glGetUniformBufferSizeEXT GLuint program GLint location void glGetUniformIndices GLuint program GLsizei uniformCount const GLchar *const*uniformNames GLuint *uniformIndices GLint glGetUniformLocation GLuint program const GLchar *name GLint glGetUniformLocationARB GLhandleARB programObj const GLcharARB *name GLintptr glGetUniformOffsetEXT GLuint program GLint location void glGetUniformSubroutineuiv GLenum shadertype GLint location GLuint *params void glGetUniformdv GLuint program GLint location GLdouble *params void glGetUniformfv GLuint program GLint location GLfloat *params void glGetUniformfvARB GLhandleARB programObj GLint location GLfloat *params void glGetUniformi64vARB GLuint program GLint location GLint64 *params void glGetUniformi64vNV GLuint program GLint location GLint64EXT *params void glGetUniformiv GLuint program GLint location GLint *params void glGetUniformivARB GLhandleARB programObj GLint location GLint *params void glGetUniformui64vARB GLuint program GLint location GLuint64 *params void glGetUniformui64vNV GLuint program GLint location GLuint64EXT *params void glGetUniformuiv GLuint program GLint location GLuint *params void glGetUniformuivEXT GLuint program GLint location GLuint *params void glGetUnsignedBytevEXT GLenum pname GLubyte *data void glGetUnsignedBytei_vEXT GLenum target GLuint index GLubyte *data void glGetVariantArrayObjectfvATI GLuint id GLenum pname GLfloat *params void glGetVariantArrayObjectivATI GLuint id GLenum pname GLint *params void glGetVariantBooleanvEXT GLuint id GLenum value GLboolean *data void glGetVariantFloatvEXT GLuint id GLenum value GLfloat *data void glGetVariantIntegervEXT GLuint id GLenum value GLint *data void glGetVariantPointervEXT GLuint id GLenum value void **data GLint glGetVaryingLocationNV GLuint program const GLchar *name void glGetVertexArrayIndexed64iv GLuint vaobj GLuint index GLenum pname GLint64 *param void glGetVertexArrayIndexediv GLuint vaobj GLuint index GLenum pname GLint *param void glGetVertexArrayIntegeri_vEXT GLuint vaobj GLuint index GLenum pname GLint *param void glGetVertexArrayIntegervEXT GLuint vaobj GLenum pname GLint *param void glGetVertexArrayPointeri_vEXT GLuint vaobj GLuint index GLenum pname void **param void glGetVertexArrayPointervEXT GLuint vaobj GLenum pname void **param void glGetVertexArrayiv GLuint vaobj GLenum pname GLint *param void glGetVertexAttribArrayObjectfvATI GLuint index GLenum pname GLfloat *params void glGetVertexAttribArrayObjectivATI GLuint index GLenum pname GLint *params void glGetVertexAttribIiv GLuint index GLenum pname GLint *params void glGetVertexAttribIivEXT GLuint index GLenum pname GLint *params void glGetVertexAttribIuiv GLuint index GLenum pname GLuint *params void glGetVertexAttribIuivEXT GLuint index GLenum pname GLuint *params void glGetVertexAttribLdv GLuint index GLenum pname GLdouble *params void glGetVertexAttribLdvEXT GLuint index GLenum pname GLdouble *params void glGetVertexAttribLi64vNV GLuint index GLenum pname GLint64EXT *params void glGetVertexAttribLui64vARB GLuint index GLenum pname GLuint64EXT *params void glGetVertexAttribLui64vNV GLuint index GLenum pname GLuint64EXT *params void glGetVertexAttribPointerv GLuint index GLenum pname void **pointer void glGetVertexAttribPointervARB GLuint index GLenum pname void **pointer void glGetVertexAttribPointervNV GLuint index GLenum pname void **pointer void glGetVertexAttribdv GLuint index GLenum pname GLdouble *params void glGetVertexAttribdvARB GLuint index GLenum pname GLdouble *params void glGetVertexAttribdvNV GLuint index GLenum pname GLdouble *params void glGetVertexAttribfv GLuint index GLenum pname GLfloat *params void glGetVertexAttribfvARB GLuint index GLenum pname GLfloat *params void glGetVertexAttribfvNV GLuint index GLenum pname GLfloat *params void glGetVertexAttribiv GLuint index GLenum pname GLint *params void glGetVertexAttribivARB GLuint index GLenum pname GLint *params void glGetVertexAttribivNV GLuint index GLenum pname GLint *params void glGetVideoCaptureStreamdvNV GLuint video_capture_slot GLuint stream GLenum pname GLdouble *params void glGetVideoCaptureStreamfvNV GLuint video_capture_slot GLuint stream GLenum pname GLfloat *params void glGetVideoCaptureStreamivNV GLuint video_capture_slot GLuint stream GLenum pname GLint *params void glGetVideoCaptureivNV GLuint video_capture_slot GLenum pname GLint *params void glGetVideoi64vNV GLuint video_slot GLenum pname GLint64EXT *params void glGetVideoivNV GLuint video_slot GLenum pname GLint *params void glGetVideoui64vNV GLuint video_slot GLenum pname GLuint64EXT *params void glGetVideouivNV GLuint video_slot GLenum pname GLuint *params void glGetnColorTable GLenum target GLenum format GLenum type GLsizei bufSize void *table void glGetnColorTableARB GLenum target GLenum format GLenum type GLsizei bufSize void *table void glGetnCompressedTexImage GLenum target GLint lod GLsizei bufSize void *pixels void glGetnCompressedTexImageARB GLenum target GLint lod GLsizei bufSize void *img void glGetnConvolutionFilter GLenum target GLenum format GLenum type GLsizei bufSize void *image void glGetnConvolutionFilterARB GLenum target GLenum format GLenum type GLsizei bufSize void *image void glGetnHistogram GLenum target GLboolean reset GLenum format GLenum type GLsizei bufSize void *values void glGetnHistogramARB GLenum target GLboolean reset GLenum format GLenum type GLsizei bufSize void *values void glGetnMapdv GLenum target GLenum query GLsizei bufSize GLdouble *v void glGetnMapdvARB GLenum target GLenum query GLsizei bufSize GLdouble *v void glGetnMapfv GLenum target GLenum query GLsizei bufSize GLfloat *v void glGetnMapfvARB GLenum target GLenum query GLsizei bufSize GLfloat *v void glGetnMapiv GLenum target GLenum query GLsizei bufSize GLint *v void glGetnMapivARB GLenum target GLenum query GLsizei bufSize GLint *v void glGetnMinmax GLenum target GLboolean reset GLenum format GLenum type GLsizei bufSize void *values void glGetnMinmaxARB GLenum target GLboolean reset GLenum format GLenum type GLsizei bufSize void *values void glGetnPixelMapfv GLenum map GLsizei bufSize GLfloat *values void glGetnPixelMapfvARB GLenum map GLsizei bufSize GLfloat *values void glGetnPixelMapuiv GLenum map GLsizei bufSize GLuint *values void glGetnPixelMapuivARB GLenum map GLsizei bufSize GLuint *values void glGetnPixelMapusv GLenum map GLsizei bufSize GLushort *values void glGetnPixelMapusvARB GLenum map GLsizei bufSize GLushort *values void glGetnPolygonStipple GLsizei bufSize GLubyte *pattern void glGetnPolygonStippleARB GLsizei bufSize GLubyte *pattern void glGetnSeparableFilter GLenum target GLenum format GLenum type GLsizei rowBufSize void *row GLsizei columnBufSize void *column void *span void glGetnSeparableFilterARB GLenum target GLenum format GLenum type GLsizei rowBufSize void *row GLsizei columnBufSize void *column void *span void glGetnTexImage GLenum target GLint level GLenum format GLenum type GLsizei bufSize void *pixels void glGetnTexImageARB GLenum target GLint level GLenum format GLenum type GLsizei bufSize void *img void glGetnUniformdv GLuint program GLint location GLsizei bufSize GLdouble *params void glGetnUniformdvARB GLuint program GLint location GLsizei bufSize GLdouble *params void glGetnUniformfv GLuint program GLint location GLsizei bufSize GLfloat *params void glGetnUniformfvARB GLuint program GLint location GLsizei bufSize GLfloat *params void glGetnUniformfvEXT GLuint program GLint location GLsizei bufSize GLfloat *params void glGetnUniformfvKHR GLuint program GLint location GLsizei bufSize GLfloat *params void glGetnUniformi64vARB GLuint program GLint location GLsizei bufSize GLint64 *params void glGetnUniformiv GLuint program GLint location GLsizei bufSize GLint *params void glGetnUniformivARB GLuint program GLint location GLsizei bufSize GLint *params void glGetnUniformivEXT GLuint program GLint location GLsizei bufSize GLint *params void glGetnUniformivKHR GLuint program GLint location GLsizei bufSize GLint *params void glGetnUniformui64vARB GLuint program GLint location GLsizei bufSize GLuint64 *params void glGetnUniformuiv GLuint program GLint location GLsizei bufSize GLuint *params void glGetnUniformuivARB GLuint program GLint location GLsizei bufSize GLuint *params void glGetnUniformuivKHR GLuint program GLint location GLsizei bufSize GLuint *params void glGlobalAlphaFactorbSUN GLbyte factor void glGlobalAlphaFactordSUN GLdouble factor void glGlobalAlphaFactorfSUN GLfloat factor void glGlobalAlphaFactoriSUN GLint factor void glGlobalAlphaFactorsSUN GLshort factor void glGlobalAlphaFactorubSUN GLubyte factor void glGlobalAlphaFactoruiSUN GLuint factor void glGlobalAlphaFactorusSUN GLushort factor void glHint GLenum target GLenum mode void glHintPGI GLenum target GLint mode void glHistogram GLenum target GLsizei width GLenum internalformat GLboolean sink void glHistogramEXT GLenum target GLsizei width GLenum internalformat GLboolean sink void glIglooInterfaceSGIX GLenum pname const void *params void glImageTransformParameterfHP GLenum target GLenum pname GLfloat param void glImageTransformParameterfvHP GLenum target GLenum pname const GLfloat *params void glImageTransformParameteriHP GLenum target GLenum pname GLint param void glImageTransformParameterivHP GLenum target GLenum pname const GLint *params void glImportMemoryFdEXT GLuint memory GLuint64 size GLenum handleType GLint fd void glImportMemoryWin32HandleEXT GLuint memory GLuint64 size GLenum handleType void *handle void glImportMemoryWin32NameEXT GLuint memory GLuint64 size GLenum handleType const void *name void glImportSemaphoreFdEXT GLuint semaphore GLenum handleType GLint fd void glImportSemaphoreWin32HandleEXT GLuint semaphore GLenum handleType void *handle void glImportSemaphoreWin32NameEXT GLuint semaphore GLenum handleType const void *name GLsync glImportSyncEXT GLenum external_sync_type GLintptr external_sync GLbitfield flags void glIndexFormatNV GLenum type GLsizei stride void glIndexFuncEXT GLenum func GLclampf ref void glIndexMask GLuint mask void glIndexMaterialEXT GLenum face GLenum mode void glIndexPointer GLenum type GLsizei stride const void *pointer void glIndexPointerEXT GLenum type GLsizei stride GLsizei count const void *pointer void glIndexPointerListIBM GLenum type GLint stride const void **pointer GLint ptrstride void glIndexd GLdouble c void glIndexdv const GLdouble *c void glIndexf GLfloat c void glIndexfv const GLfloat *c void glIndexi GLint c void glIndexiv const GLint *c void glIndexs GLshort c void glIndexsv const GLshort *c void glIndexub GLubyte c void glIndexubv const GLubyte *c void glIndexxOES GLfixed component void glIndexxvOES const GLfixed *component void glInitNames void glInsertComponentEXT GLuint res GLuint src GLuint num void glInsertEventMarkerEXT GLsizei length const GLchar *marker void glInstrumentsBufferSGIX GLsizei size GLint *buffer void glInterleavedArrays GLenum format GLsizei stride const void *pointer void glInterpolatePathsNV GLuint resultPath GLuint pathA GLuint pathB GLfloat weight void glInvalidateBufferData GLuint buffer void glInvalidateBufferSubData GLuint buffer GLintptr offset GLsizeiptr length void glInvalidateFramebuffer GLenum target GLsizei numAttachments const GLenum *attachments void glInvalidateNamedFramebufferData GLuint framebuffer GLsizei numAttachments const GLenum *attachments void glInvalidateNamedFramebufferSubData GLuint framebuffer GLsizei numAttachments const GLenum *attachments GLint x GLint y GLsizei width GLsizei height void glInvalidateSubFramebuffer GLenum target GLsizei numAttachments const GLenum *attachments GLint x GLint y GLsizei width GLsizei height void glInvalidateTexImage GLuint texture GLint level void glInvalidateTexSubImage GLuint texture GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLboolean glIsAsyncMarkerSGIX GLuint marker GLboolean glIsBuffer GLuint buffer GLboolean glIsBufferARB GLuint buffer GLboolean glIsBufferResidentNV GLenum target GLboolean glIsCommandListNV GLuint list GLboolean glIsEnabled GLenum cap GLboolean glIsEnabledIndexedEXT GLenum target GLuint index GLboolean glIsEnabledi GLenum target GLuint index GLboolean glIsEnablediEXT GLenum target GLuint index GLboolean glIsEnablediNV GLenum target GLuint index GLboolean glIsEnablediOES GLenum target GLuint index GLboolean glIsFenceAPPLE GLuint fence GLboolean glIsFenceNV GLuint fence GLboolean glIsFramebuffer GLuint framebuffer GLboolean glIsFramebufferEXT GLuint framebuffer GLboolean glIsFramebufferOES GLuint framebuffer GLboolean glIsImageHandleResidentARB GLuint64 handle GLboolean glIsImageHandleResidentNV GLuint64 handle GLboolean glIsList GLuint list GLboolean glIsMemoryObjectEXT GLuint memoryObject GLboolean glIsNameAMD GLenum identifier GLuint name GLboolean glIsNamedBufferResidentNV GLuint buffer GLboolean glIsNamedStringARB GLint namelen const GLchar *name GLboolean glIsObjectBufferATI GLuint buffer GLboolean glIsOcclusionQueryNV GLuint id GLboolean glIsPathNV GLuint path GLboolean glIsPointInFillPathNV GLuint path GLuint mask GLfloat x GLfloat y GLboolean glIsPointInStrokePathNV GLuint path GLfloat x GLfloat y GLboolean glIsProgram GLuint program GLboolean glIsProgramARB GLuint program GLboolean glIsProgramNV GLuint id GLboolean glIsProgramPipeline GLuint pipeline GLboolean glIsProgramPipelineEXT GLuint pipeline GLboolean glIsQuery GLuint id GLboolean glIsQueryARB GLuint id GLboolean glIsQueryEXT GLuint id GLboolean glIsRenderbuffer GLuint renderbuffer GLboolean glIsRenderbufferEXT GLuint renderbuffer GLboolean glIsRenderbufferOES GLuint renderbuffer GLboolean glIsSemaphoreEXT GLuint semaphore GLboolean glIsSampler GLuint sampler GLboolean glIsShader GLuint shader GLboolean glIsStateNV GLuint state GLboolean glIsSync GLsync sync GLboolean glIsSyncAPPLE GLsync sync GLboolean glIsTexture GLuint texture GLboolean glIsTextureEXT GLuint texture GLboolean glIsTextureHandleResidentARB GLuint64 handle GLboolean glIsTextureHandleResidentNV GLuint64 handle GLboolean glIsTransformFeedback GLuint id GLboolean glIsTransformFeedbackNV GLuint id GLboolean glIsVariantEnabledEXT GLuint id GLenum cap GLboolean glIsVertexArray GLuint array GLboolean glIsVertexArrayAPPLE GLuint array GLboolean glIsVertexArrayOES GLuint array GLboolean glIsVertexAttribEnabledAPPLE GLuint index GLenum pname void glLGPUCopyImageSubDataNVX GLuint sourceGpu GLbitfield destinationGpuMask GLuint srcName GLenum srcTarget GLint srcLevel GLint srcX GLint srxY GLint srcZ GLuint dstName GLenum dstTarget GLint dstLevel GLint dstX GLint dstY GLint dstZ GLsizei width GLsizei height GLsizei depth void glLGPUInterlockNVX void glLGPUNamedBufferSubDataNVX GLbitfield gpuMask GLuint buffer GLintptr offset GLsizeiptr size const void *data void glLabelObjectEXT GLenum type GLuint object GLsizei length const GLchar *label void glLightEnviSGIX GLenum pname GLint param void glLightModelf GLenum pname GLfloat param void glLightModelfv GLenum pname const GLfloat *params void glLightModeli GLenum pname GLint param void glLightModeliv GLenum pname const GLint *params void glLightModelx GLenum pname GLfixed param void glLightModelxOES GLenum pname GLfixed param void glLightModelxv GLenum pname const GLfixed *param void glLightModelxvOES GLenum pname const GLfixed *param void glLightf GLenum light GLenum pname GLfloat param void glLightfv GLenum light GLenum pname const GLfloat *params void glLighti GLenum light GLenum pname GLint param void glLightiv GLenum light GLenum pname const GLint *params void glLightx GLenum light GLenum pname GLfixed param void glLightxOES GLenum light GLenum pname GLfixed param void glLightxv GLenum light GLenum pname const GLfixed *params void glLightxvOES GLenum light GLenum pname const GLfixed *params void glLineStipple GLint factor GLushort pattern void glLineWidth GLfloat width void glLineWidthx GLfixed width void glLineWidthxOES GLfixed width void glLinkProgram GLuint program void glLinkProgramARB GLhandleARB programObj void glListBase GLuint base void glListDrawCommandsStatesClientNV GLuint list GLuint segment const void **indirects const GLsizei *sizes const GLuint *states const GLuint *fbos GLuint count void glListParameterfSGIX GLuint list GLenum pname GLfloat param void glListParameterfvSGIX GLuint list GLenum pname const GLfloat *params void glListParameteriSGIX GLuint list GLenum pname GLint param void glListParameterivSGIX GLuint list GLenum pname const GLint *params void glLoadIdentity void glLoadIdentityDeformationMapSGIX GLbitfield mask void glLoadMatrixd const GLdouble *m void glLoadMatrixf const GLfloat *m void glLoadMatrixx const GLfixed *m void glLoadMatrixxOES const GLfixed *m void glLoadName GLuint name void glLoadPaletteFromModelViewMatrixOES void glLoadProgramNV GLenum target GLuint id GLsizei len const GLubyte *program void glLoadTransposeMatrixd const GLdouble *m void glLoadTransposeMatrixdARB const GLdouble *m void glLoadTransposeMatrixf const GLfloat *m void glLoadTransposeMatrixfARB const GLfloat *m void glLoadTransposeMatrixxOES const GLfixed *m void glLockArraysEXT GLint first GLsizei count void glLogicOp GLenum opcode void glMakeBufferNonResidentNV GLenum target void glMakeBufferResidentNV GLenum target GLenum access void glMakeImageHandleNonResidentARB GLuint64 handle void glMakeImageHandleNonResidentNV GLuint64 handle void glMakeImageHandleResidentARB GLuint64 handle GLenum access void glMakeImageHandleResidentNV GLuint64 handle GLenum access void glMakeNamedBufferNonResidentNV GLuint buffer void glMakeNamedBufferResidentNV GLuint buffer GLenum access void glMakeTextureHandleNonResidentARB GLuint64 handle void glMakeTextureHandleNonResidentNV GLuint64 handle void glMakeTextureHandleResidentARB GLuint64 handle void glMakeTextureHandleResidentNV GLuint64 handle void glMap1d GLenum target GLdouble u1 GLdouble u2 GLint stride GLint order const GLdouble *points void glMap1f GLenum target GLfloat u1 GLfloat u2 GLint stride GLint order const GLfloat *points void glMap1xOES GLenum target GLfixed u1 GLfixed u2 GLint stride GLint order GLfixed points void glMap2d GLenum target GLdouble u1 GLdouble u2 GLint ustride GLint uorder GLdouble v1 GLdouble v2 GLint vstride GLint vorder const GLdouble *points void glMap2f GLenum target GLfloat u1 GLfloat u2 GLint ustride GLint uorder GLfloat v1 GLfloat v2 GLint vstride GLint vorder const GLfloat *points void glMap2xOES GLenum target GLfixed u1 GLfixed u2 GLint ustride GLint uorder GLfixed v1 GLfixed v2 GLint vstride GLint vorder GLfixed points void *glMapBuffer GLenum target GLenum access void *glMapBufferARB GLenum target GLenum access void *glMapBufferOES GLenum target GLenum access void *glMapBufferRange GLenum target GLintptr offset GLsizeiptr length GLbitfield access void *glMapBufferRangeEXT GLenum target GLintptr offset GLsizeiptr length GLbitfield access void glMapControlPointsNV GLenum target GLuint index GLenum type GLsizei ustride GLsizei vstride GLint uorder GLint vorder GLboolean packed const void *points void glMapGrid1d GLint un GLdouble u1 GLdouble u2 void glMapGrid1f GLint un GLfloat u1 GLfloat u2 void glMapGrid1xOES GLint n GLfixed u1 GLfixed u2 void glMapGrid2d GLint un GLdouble u1 GLdouble u2 GLint vn GLdouble v1 GLdouble v2 void glMapGrid2f GLint un GLfloat u1 GLfloat u2 GLint vn GLfloat v1 GLfloat v2 void glMapGrid2xOES GLint n GLfixed u1 GLfixed u2 GLfixed v1 GLfixed v2 void *glMapNamedBuffer GLuint buffer GLenum access void *glMapNamedBufferEXT GLuint buffer GLenum access void *glMapNamedBufferRange GLuint buffer GLintptr offset GLsizeiptr length GLbitfield access void *glMapNamedBufferRangeEXT GLuint buffer GLintptr offset GLsizeiptr length GLbitfield access void *glMapObjectBufferATI GLuint buffer void glMapParameterfvNV GLenum target GLenum pname const GLfloat *params void glMapParameterivNV GLenum target GLenum pname const GLint *params void *glMapTexture2DINTEL GLuint texture GLint level GLbitfield access GLint *stride GLenum *layout void glMapVertexAttrib1dAPPLE GLuint index GLuint size GLdouble u1 GLdouble u2 GLint stride GLint order const GLdouble *points void glMapVertexAttrib1fAPPLE GLuint index GLuint size GLfloat u1 GLfloat u2 GLint stride GLint order const GLfloat *points void glMapVertexAttrib2dAPPLE GLuint index GLuint size GLdouble u1 GLdouble u2 GLint ustride GLint uorder GLdouble v1 GLdouble v2 GLint vstride GLint vorder const GLdouble *points void glMapVertexAttrib2fAPPLE GLuint index GLuint size GLfloat u1 GLfloat u2 GLint ustride GLint uorder GLfloat v1 GLfloat v2 GLint vstride GLint vorder const GLfloat *points void glMaterialf GLenum face GLenum pname GLfloat param void glMaterialfv GLenum face GLenum pname const GLfloat *params void glMateriali GLenum face GLenum pname GLint param void glMaterialiv GLenum face GLenum pname const GLint *params void glMaterialx GLenum face GLenum pname GLfixed param void glMaterialxOES GLenum face GLenum pname GLfixed param void glMaterialxv GLenum face GLenum pname const GLfixed *param void glMaterialxvOES GLenum face GLenum pname const GLfixed *param void glMatrixFrustumEXT GLenum mode GLdouble left GLdouble right GLdouble bottom GLdouble top GLdouble zNear GLdouble zFar void glMatrixIndexPointerARB GLint size GLenum type GLsizei stride const void *pointer void glMatrixIndexPointerOES GLint size GLenum type GLsizei stride const void *pointer void glMatrixIndexubvARB GLint size const GLubyte *indices void glMatrixIndexuivARB GLint size const GLuint *indices void glMatrixIndexusvARB GLint size const GLushort *indices void glMatrixLoad3x2fNV GLenum matrixMode const GLfloat *m void glMatrixLoad3x3fNV GLenum matrixMode const GLfloat *m void glMatrixLoadIdentityEXT GLenum mode void glMatrixLoadTranspose3x3fNV GLenum matrixMode const GLfloat *m void glMatrixLoadTransposedEXT GLenum mode const GLdouble *m void glMatrixLoadTransposefEXT GLenum mode const GLfloat *m void glMatrixLoaddEXT GLenum mode const GLdouble *m void glMatrixLoadfEXT GLenum mode const GLfloat *m void glMatrixMode GLenum mode void glMatrixMult3x2fNV GLenum matrixMode const GLfloat *m void glMatrixMult3x3fNV GLenum matrixMode const GLfloat *m void glMatrixMultTranspose3x3fNV GLenum matrixMode const GLfloat *m void glMatrixMultTransposedEXT GLenum mode const GLdouble *m void glMatrixMultTransposefEXT GLenum mode const GLfloat *m void glMatrixMultdEXT GLenum mode const GLdouble *m void glMatrixMultfEXT GLenum mode const GLfloat *m void glMatrixOrthoEXT GLenum mode GLdouble left GLdouble right GLdouble bottom GLdouble top GLdouble zNear GLdouble zFar void glMatrixPopEXT GLenum mode void glMatrixPushEXT GLenum mode void glMatrixRotatedEXT GLenum mode GLdouble angle GLdouble x GLdouble y GLdouble z void glMatrixRotatefEXT GLenum mode GLfloat angle GLfloat x GLfloat y GLfloat z void glMatrixScaledEXT GLenum mode GLdouble x GLdouble y GLdouble z void glMatrixScalefEXT GLenum mode GLfloat x GLfloat y GLfloat z void glMatrixTranslatedEXT GLenum mode GLdouble x GLdouble y GLdouble z void glMatrixTranslatefEXT GLenum mode GLfloat x GLfloat y GLfloat z void glMaxShaderCompilerThreadsKHR GLuint count void glMaxShaderCompilerThreadsARB GLuint count void glMemoryBarrier GLbitfield barriers void glMemoryBarrierByRegion GLbitfield barriers void glMemoryBarrierEXT GLbitfield barriers void glMemoryObjectParameterivEXT GLuint memoryObject GLenum pname const GLint *params void glMinSampleShading GLfloat value void glMinSampleShadingARB GLfloat value void glMinSampleShadingOES GLfloat value void glMinmax GLenum target GLenum internalformat GLboolean sink void glMinmaxEXT GLenum target GLenum internalformat GLboolean sink void glMultMatrixd const GLdouble *m void glMultMatrixf const GLfloat *m void glMultMatrixx const GLfixed *m void glMultMatrixxOES const GLfixed *m void glMultTransposeMatrixd const GLdouble *m void glMultTransposeMatrixdARB const GLdouble *m void glMultTransposeMatrixf const GLfloat *m void glMultTransposeMatrixfARB const GLfloat *m void glMultTransposeMatrixxOES const GLfixed *m void glMultiDrawArrays GLenum mode const GLint *first const GLsizei *count GLsizei drawcount void glMultiDrawArraysEXT GLenum mode const GLint *first const GLsizei *count GLsizei primcount void glMultiDrawArraysIndirect GLenum mode const void *indirect GLsizei drawcount GLsizei stride void glMultiDrawArraysIndirectAMD GLenum mode const void *indirect GLsizei primcount GLsizei stride void glMultiDrawArraysIndirectBindlessCountNV GLenum mode const void *indirect GLsizei drawCount GLsizei maxDrawCount GLsizei stride GLint vertexBufferCount void glMultiDrawArraysIndirectBindlessNV GLenum mode const void *indirect GLsizei drawCount GLsizei stride GLint vertexBufferCount void glMultiDrawArraysIndirectCount GLenum mode const void *indirect GLintptr drawcount GLsizei maxdrawcount GLsizei stride void glMultiDrawArraysIndirectCountARB GLenum mode const void *indirect GLintptr drawcount GLsizei maxdrawcount GLsizei stride void glMultiDrawArraysIndirectEXT GLenum mode const void *indirect GLsizei drawcount GLsizei stride void glMultiDrawElementArrayAPPLE GLenum mode const GLint *first const GLsizei *count GLsizei primcount void glMultiDrawElements GLenum mode const GLsizei *count GLenum type const void *const*indices GLsizei drawcount void glMultiDrawElementsBaseVertex GLenum mode const GLsizei *count GLenum type const void *const*indices GLsizei drawcount const GLint *basevertex void glMultiDrawElementsBaseVertexEXT GLenum mode const GLsizei *count GLenum type const void *const*indices GLsizei primcount const GLint *basevertex void glMultiDrawElementsEXT GLenum mode const GLsizei *count GLenum type const void *const*indices GLsizei primcount void glMultiDrawElementsIndirect GLenum mode GLenum type const void *indirect GLsizei drawcount GLsizei stride void glMultiDrawElementsIndirectAMD GLenum mode GLenum type const void *indirect GLsizei primcount GLsizei stride void glMultiDrawElementsIndirectBindlessCountNV GLenum mode GLenum type const void *indirect GLsizei drawCount GLsizei maxDrawCount GLsizei stride GLint vertexBufferCount void glMultiDrawElementsIndirectBindlessNV GLenum mode GLenum type const void *indirect GLsizei drawCount GLsizei stride GLint vertexBufferCount void glMultiDrawElementsIndirectCount GLenum mode GLenum type const void *indirect GLintptr drawcount GLsizei maxdrawcount GLsizei stride void glMultiDrawElementsIndirectCountARB GLenum mode GLenum type const void *indirect GLintptr drawcount GLsizei maxdrawcount GLsizei stride void glMultiDrawElementsIndirectEXT GLenum mode GLenum type const void *indirect GLsizei drawcount GLsizei stride void glMultiDrawMeshTasksIndirectNV GLintptr indirect GLsizei drawcount GLsizei stride void glMultiDrawMeshTasksIndirectCountNV GLintptr indirect GLintptr drawcount GLsizei maxdrawcount GLsizei stride void glMultiDrawRangeElementArrayAPPLE GLenum mode GLuint start GLuint end const GLint *first const GLsizei *count GLsizei primcount void glMultiModeDrawArraysIBM const GLenum *mode const GLint *first const GLsizei *count GLsizei primcount GLint modestride void glMultiModeDrawElementsIBM const GLenum *mode const GLsizei *count GLenum type const void *const*indices GLsizei primcount GLint modestride void glMultiTexBufferEXT GLenum texunit GLenum target GLenum internalformat GLuint buffer void glMultiTexCoord1bOES GLenum texture GLbyte s void glMultiTexCoord1bvOES GLenum texture const GLbyte *coords void glMultiTexCoord1d GLenum target GLdouble s void glMultiTexCoord1dARB GLenum target GLdouble s void glMultiTexCoord1dv GLenum target const GLdouble *v void glMultiTexCoord1dvARB GLenum target const GLdouble *v void glMultiTexCoord1f GLenum target GLfloat s void glMultiTexCoord1fARB GLenum target GLfloat s void glMultiTexCoord1fv GLenum target const GLfloat *v void glMultiTexCoord1fvARB GLenum target const GLfloat *v void glMultiTexCoord1hNV GLenum target GLhalfNV s void glMultiTexCoord1hvNV GLenum target const GLhalfNV *v void glMultiTexCoord1i GLenum target GLint s void glMultiTexCoord1iARB GLenum target GLint s void glMultiTexCoord1iv GLenum target const GLint *v void glMultiTexCoord1ivARB GLenum target const GLint *v void glMultiTexCoord1s GLenum target GLshort s void glMultiTexCoord1sARB GLenum target GLshort s void glMultiTexCoord1sv GLenum target const GLshort *v void glMultiTexCoord1svARB GLenum target const GLshort *v void glMultiTexCoord1xOES GLenum texture GLfixed s void glMultiTexCoord1xvOES GLenum texture const GLfixed *coords void glMultiTexCoord2bOES GLenum texture GLbyte s GLbyte t void glMultiTexCoord2bvOES GLenum texture const GLbyte *coords void glMultiTexCoord2d GLenum target GLdouble s GLdouble t void glMultiTexCoord2dARB GLenum target GLdouble s GLdouble t void glMultiTexCoord2dv GLenum target const GLdouble *v void glMultiTexCoord2dvARB GLenum target const GLdouble *v void glMultiTexCoord2f GLenum target GLfloat s GLfloat t void glMultiTexCoord2fARB GLenum target GLfloat s GLfloat t void glMultiTexCoord2fv GLenum target const GLfloat *v void glMultiTexCoord2fvARB GLenum target const GLfloat *v void glMultiTexCoord2hNV GLenum target GLhalfNV s GLhalfNV t void glMultiTexCoord2hvNV GLenum target const GLhalfNV *v void glMultiTexCoord2i GLenum target GLint s GLint t void glMultiTexCoord2iARB GLenum target GLint s GLint t void glMultiTexCoord2iv GLenum target const GLint *v void glMultiTexCoord2ivARB GLenum target const GLint *v void glMultiTexCoord2s GLenum target GLshort s GLshort t void glMultiTexCoord2sARB GLenum target GLshort s GLshort t void glMultiTexCoord2sv GLenum target const GLshort *v void glMultiTexCoord2svARB GLenum target const GLshort *v void glMultiTexCoord2xOES GLenum texture GLfixed s GLfixed t void glMultiTexCoord2xvOES GLenum texture const GLfixed *coords void glMultiTexCoord3bOES GLenum texture GLbyte s GLbyte t GLbyte r void glMultiTexCoord3bvOES GLenum texture const GLbyte *coords void glMultiTexCoord3d GLenum target GLdouble s GLdouble t GLdouble r void glMultiTexCoord3dARB GLenum target GLdouble s GLdouble t GLdouble r void glMultiTexCoord3dv GLenum target const GLdouble *v void glMultiTexCoord3dvARB GLenum target const GLdouble *v void glMultiTexCoord3f GLenum target GLfloat s GLfloat t GLfloat r void glMultiTexCoord3fARB GLenum target GLfloat s GLfloat t GLfloat r void glMultiTexCoord3fv GLenum target const GLfloat *v void glMultiTexCoord3fvARB GLenum target const GLfloat *v void glMultiTexCoord3hNV GLenum target GLhalfNV s GLhalfNV t GLhalfNV r void glMultiTexCoord3hvNV GLenum target const GLhalfNV *v void glMultiTexCoord3i GLenum target GLint s GLint t GLint r void glMultiTexCoord3iARB GLenum target GLint s GLint t GLint r void glMultiTexCoord3iv GLenum target const GLint *v void glMultiTexCoord3ivARB GLenum target const GLint *v void glMultiTexCoord3s GLenum target GLshort s GLshort t GLshort r void glMultiTexCoord3sARB GLenum target GLshort s GLshort t GLshort r void glMultiTexCoord3sv GLenum target const GLshort *v void glMultiTexCoord3svARB GLenum target const GLshort *v void glMultiTexCoord3xOES GLenum texture GLfixed s GLfixed t GLfixed r void glMultiTexCoord3xvOES GLenum texture const GLfixed *coords void glMultiTexCoord4bOES GLenum texture GLbyte s GLbyte t GLbyte r GLbyte q void glMultiTexCoord4bvOES GLenum texture const GLbyte *coords void glMultiTexCoord4d GLenum target GLdouble s GLdouble t GLdouble r GLdouble q void glMultiTexCoord4dARB GLenum target GLdouble s GLdouble t GLdouble r GLdouble q void glMultiTexCoord4dv GLenum target const GLdouble *v void glMultiTexCoord4dvARB GLenum target const GLdouble *v void glMultiTexCoord4f GLenum target GLfloat s GLfloat t GLfloat r GLfloat q void glMultiTexCoord4fARB GLenum target GLfloat s GLfloat t GLfloat r GLfloat q void glMultiTexCoord4fv GLenum target const GLfloat *v void glMultiTexCoord4fvARB GLenum target const GLfloat *v void glMultiTexCoord4hNV GLenum target GLhalfNV s GLhalfNV t GLhalfNV r GLhalfNV q void glMultiTexCoord4hvNV GLenum target const GLhalfNV *v void glMultiTexCoord4i GLenum target GLint s GLint t GLint r GLint q void glMultiTexCoord4iARB GLenum target GLint s GLint t GLint r GLint q void glMultiTexCoord4iv GLenum target const GLint *v void glMultiTexCoord4ivARB GLenum target const GLint *v void glMultiTexCoord4s GLenum target GLshort s GLshort t GLshort r GLshort q void glMultiTexCoord4sARB GLenum target GLshort s GLshort t GLshort r GLshort q void glMultiTexCoord4sv GLenum target const GLshort *v void glMultiTexCoord4svARB GLenum target const GLshort *v void glMultiTexCoord4x GLenum texture GLfixed s GLfixed t GLfixed r GLfixed q void glMultiTexCoord4xOES GLenum texture GLfixed s GLfixed t GLfixed r GLfixed q void glMultiTexCoord4xvOES GLenum texture const GLfixed *coords void glMultiTexCoordP1ui GLenum texture GLenum type GLuint coords void glMultiTexCoordP1uiv GLenum texture GLenum type const GLuint *coords void glMultiTexCoordP2ui GLenum texture GLenum type GLuint coords void glMultiTexCoordP2uiv GLenum texture GLenum type const GLuint *coords void glMultiTexCoordP3ui GLenum texture GLenum type GLuint coords void glMultiTexCoordP3uiv GLenum texture GLenum type const GLuint *coords void glMultiTexCoordP4ui GLenum texture GLenum type GLuint coords void glMultiTexCoordP4uiv GLenum texture GLenum type const GLuint *coords void glMultiTexCoordPointerEXT GLenum texunit GLint size GLenum type GLsizei stride const void *pointer void glMultiTexEnvfEXT GLenum texunit GLenum target GLenum pname GLfloat param void glMultiTexEnvfvEXT GLenum texunit GLenum target GLenum pname const GLfloat *params void glMultiTexEnviEXT GLenum texunit GLenum target GLenum pname GLint param void glMultiTexEnvivEXT GLenum texunit GLenum target GLenum pname const GLint *params void glMultiTexGendEXT GLenum texunit GLenum coord GLenum pname GLdouble param void glMultiTexGendvEXT GLenum texunit GLenum coord GLenum pname const GLdouble *params void glMultiTexGenfEXT GLenum texunit GLenum coord GLenum pname GLfloat param void glMultiTexGenfvEXT GLenum texunit GLenum coord GLenum pname const GLfloat *params void glMultiTexGeniEXT GLenum texunit GLenum coord GLenum pname GLint param void glMultiTexGenivEXT GLenum texunit GLenum coord GLenum pname const GLint *params void glMultiTexImage1DEXT GLenum texunit GLenum target GLint level GLint internalformat GLsizei width GLint border GLenum format GLenum type const void *pixels void glMultiTexImage2DEXT GLenum texunit GLenum target GLint level GLint internalformat GLsizei width GLsizei height GLint border GLenum format GLenum type const void *pixels void glMultiTexImage3DEXT GLenum texunit GLenum target GLint level GLint internalformat GLsizei width GLsizei height GLsizei depth GLint border GLenum format GLenum type const void *pixels void glMultiTexParameterIivEXT GLenum texunit GLenum target GLenum pname const GLint *params void glMultiTexParameterIuivEXT GLenum texunit GLenum target GLenum pname const GLuint *params void glMultiTexParameterfEXT GLenum texunit GLenum target GLenum pname GLfloat param void glMultiTexParameterfvEXT GLenum texunit GLenum target GLenum pname const GLfloat *params void glMultiTexParameteriEXT GLenum texunit GLenum target GLenum pname GLint param void glMultiTexParameterivEXT GLenum texunit GLenum target GLenum pname const GLint *params void glMultiTexRenderbufferEXT GLenum texunit GLenum target GLuint renderbuffer void glMultiTexSubImage1DEXT GLenum texunit GLenum target GLint level GLint xoffset GLsizei width GLenum format GLenum type const void *pixels void glMultiTexSubImage2DEXT GLenum texunit GLenum target GLint level GLint xoffset GLint yoffset GLsizei width GLsizei height GLenum format GLenum type const void *pixels void glMultiTexSubImage3DEXT GLenum texunit GLenum target GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLenum format GLenum type const void *pixels void glMulticastBarrierNV void glMulticastBlitFramebufferNV GLuint srcGpu GLuint dstGpu GLint srcX0 GLint srcY0 GLint srcX1 GLint srcY1 GLint dstX0 GLint dstY0 GLint dstX1 GLint dstY1 GLbitfield mask GLenum filter void glMulticastBufferSubDataNV GLbitfield gpuMask GLuint buffer GLintptr offset GLsizeiptr size const void *data void glMulticastCopyBufferSubDataNV GLuint readGpu GLbitfield writeGpuMask GLuint readBuffer GLuint writeBuffer GLintptr readOffset GLintptr writeOffset GLsizeiptr size void glMulticastCopyImageSubDataNV GLuint srcGpu GLbitfield dstGpuMask GLuint srcName GLenum srcTarget GLint srcLevel GLint srcX GLint srcY GLint srcZ GLuint dstName GLenum dstTarget GLint dstLevel GLint dstX GLint dstY GLint dstZ GLsizei srcWidth GLsizei srcHeight GLsizei srcDepth void glMulticastFramebufferSampleLocationsfvNV GLuint gpu GLuint framebuffer GLuint start GLsizei count const GLfloat *v void glMulticastGetQueryObjecti64vNV GLuint gpu GLuint id GLenum pname GLint64 *params void glMulticastGetQueryObjectivNV GLuint gpu GLuint id GLenum pname GLint *params void glMulticastGetQueryObjectui64vNV GLuint gpu GLuint id GLenum pname GLuint64 *params void glMulticastGetQueryObjectuivNV GLuint gpu GLuint id GLenum pname GLuint *params void glMulticastWaitSyncNV GLuint signalGpu GLbitfield waitGpuMask void glNamedBufferAttachMemoryNV GLuint buffer GLuint memory GLuint64 offset void glNamedBufferData GLuint buffer GLsizeiptr size const void *data GLenum usage void glNamedBufferDataEXT GLuint buffer GLsizeiptr size const void *data GLenum usage void glNamedBufferPageCommitmentARB GLuint buffer GLintptr offset GLsizeiptr size GLboolean commit void glNamedBufferPageCommitmentEXT GLuint buffer GLintptr offset GLsizeiptr size GLboolean commit void glNamedBufferStorage GLuint buffer GLsizeiptr size const void *data GLbitfield flags void glNamedBufferStorageExternalEXT GLuint buffer GLintptr offset GLsizeiptr size GLeglClientBufferEXT clientBuffer GLbitfield flags void glNamedBufferStorageEXT GLuint buffer GLsizeiptr size const void *data GLbitfield flags void glNamedBufferStorageMemEXT GLuint buffer GLsizeiptr size GLuint memory GLuint64 offset void glNamedBufferSubData GLuint buffer GLintptr offset GLsizeiptr size const void *data void glNamedBufferSubDataEXT GLuint buffer GLintptr offset GLsizeiptr size const void *data void glNamedCopyBufferSubDataEXT GLuint readBuffer GLuint writeBuffer GLintptr readOffset GLintptr writeOffset GLsizeiptr size void glNamedFramebufferDrawBuffer GLuint framebuffer GLenum buf void glNamedFramebufferDrawBuffers GLuint framebuffer GLsizei n const GLenum *bufs void glNamedFramebufferParameteri GLuint framebuffer GLenum pname GLint param void glNamedFramebufferParameteriEXT GLuint framebuffer GLenum pname GLint param void glNamedFramebufferReadBuffer GLuint framebuffer GLenum src void glNamedFramebufferRenderbuffer GLuint framebuffer GLenum attachment GLenum renderbuffertarget GLuint renderbuffer void glNamedFramebufferRenderbufferEXT GLuint framebuffer GLenum attachment GLenum renderbuffertarget GLuint renderbuffer void glNamedFramebufferSampleLocationsfvARB GLuint framebuffer GLuint start GLsizei count const GLfloat *v void glNamedFramebufferSampleLocationsfvNV GLuint framebuffer GLuint start GLsizei count const GLfloat *v void glNamedFramebufferTexture GLuint framebuffer GLenum attachment GLuint texture GLint level void glNamedFramebufferSamplePositionsfvAMD GLuint framebuffer GLuint numsamples GLuint pixelindex const GLfloat *values void glNamedFramebufferTexture1DEXT GLuint framebuffer GLenum attachment GLenum textarget GLuint texture GLint level void glNamedFramebufferTexture2DEXT GLuint framebuffer GLenum attachment GLenum textarget GLuint texture GLint level void glNamedFramebufferTexture3DEXT GLuint framebuffer GLenum attachment GLenum textarget GLuint texture GLint level GLint zoffset void glNamedFramebufferTextureEXT GLuint framebuffer GLenum attachment GLuint texture GLint level void glNamedFramebufferTextureFaceEXT GLuint framebuffer GLenum attachment GLuint texture GLint level GLenum face void glNamedFramebufferTextureLayer GLuint framebuffer GLenum attachment GLuint texture GLint level GLint layer void glNamedFramebufferTextureLayerEXT GLuint framebuffer GLenum attachment GLuint texture GLint level GLint layer void glNamedProgramLocalParameter4dEXT GLuint program GLenum target GLuint index GLdouble x GLdouble y GLdouble z GLdouble w void glNamedProgramLocalParameter4dvEXT GLuint program GLenum target GLuint index const GLdouble *params void glNamedProgramLocalParameter4fEXT GLuint program GLenum target GLuint index GLfloat x GLfloat y GLfloat z GLfloat w void glNamedProgramLocalParameter4fvEXT GLuint program GLenum target GLuint index const GLfloat *params void glNamedProgramLocalParameterI4iEXT GLuint program GLenum target GLuint index GLint x GLint y GLint z GLint w void glNamedProgramLocalParameterI4ivEXT GLuint program GLenum target GLuint index const GLint *params void glNamedProgramLocalParameterI4uiEXT GLuint program GLenum target GLuint index GLuint x GLuint y GLuint z GLuint w void glNamedProgramLocalParameterI4uivEXT GLuint program GLenum target GLuint index const GLuint *params void glNamedProgramLocalParameters4fvEXT GLuint program GLenum target GLuint index GLsizei count const GLfloat *params void glNamedProgramLocalParametersI4ivEXT GLuint program GLenum target GLuint index GLsizei count const GLint *params void glNamedProgramLocalParametersI4uivEXT GLuint program GLenum target GLuint index GLsizei count const GLuint *params void glNamedProgramStringEXT GLuint program GLenum target GLenum format GLsizei len const void *string void glNamedRenderbufferStorage GLuint renderbuffer GLenum internalformat GLsizei width GLsizei height void glNamedRenderbufferStorageEXT GLuint renderbuffer GLenum internalformat GLsizei width GLsizei height void glNamedRenderbufferStorageMultisample GLuint renderbuffer GLsizei samples GLenum internalformat GLsizei width GLsizei height void glNamedRenderbufferStorageMultisampleAdvancedAMD GLuint renderbuffer GLsizei samples GLsizei storageSamples GLenum internalformat GLsizei width GLsizei height void glNamedRenderbufferStorageMultisampleCoverageEXT GLuint renderbuffer GLsizei coverageSamples GLsizei colorSamples GLenum internalformat GLsizei width GLsizei height void glNamedRenderbufferStorageMultisampleEXT GLuint renderbuffer GLsizei samples GLenum internalformat GLsizei width GLsizei height void glNamedStringARB GLenum type GLint namelen const GLchar *name GLint stringlen const GLchar *string void glNewList GLuint list GLenum mode GLuint glNewObjectBufferATI GLsizei size const void *pointer GLenum usage void glNormal3b GLbyte nx GLbyte ny GLbyte nz void glNormal3bv const GLbyte *v void glNormal3d GLdouble nx GLdouble ny GLdouble nz void glNormal3dv const GLdouble *v void glNormal3f GLfloat nx GLfloat ny GLfloat nz void glNormal3fVertex3fSUN GLfloat nx GLfloat ny GLfloat nz GLfloat x GLfloat y GLfloat z void glNormal3fVertex3fvSUN const GLfloat *n const GLfloat *v void glNormal3fv const GLfloat *v void glNormal3hNV GLhalfNV nx GLhalfNV ny GLhalfNV nz void glNormal3hvNV const GLhalfNV *v void glNormal3i GLint nx GLint ny GLint nz void glNormal3iv const GLint *v void glNormal3s GLshort nx GLshort ny GLshort nz void glNormal3sv const GLshort *v void glNormal3x GLfixed nx GLfixed ny GLfixed nz void glNormal3xOES GLfixed nx GLfixed ny GLfixed nz void glNormal3xvOES const GLfixed *coords void glNormalFormatNV GLenum type GLsizei stride void glNormalP3ui GLenum type GLuint coords void glNormalP3uiv GLenum type const GLuint *coords void glNormalPointer GLenum type GLsizei stride const void *pointer void glNormalPointerEXT GLenum type GLsizei stride GLsizei count const void *pointer void glNormalPointerListIBM GLenum type GLint stride const void **pointer GLint ptrstride void glNormalPointervINTEL GLenum type const void **pointer void glNormalStream3bATI GLenum stream GLbyte nx GLbyte ny GLbyte nz void glNormalStream3bvATI GLenum stream const GLbyte *coords void glNormalStream3dATI GLenum stream GLdouble nx GLdouble ny GLdouble nz void glNormalStream3dvATI GLenum stream const GLdouble *coords void glNormalStream3fATI GLenum stream GLfloat nx GLfloat ny GLfloat nz void glNormalStream3fvATI GLenum stream const GLfloat *coords void glNormalStream3iATI GLenum stream GLint nx GLint ny GLint nz void glNormalStream3ivATI GLenum stream const GLint *coords void glNormalStream3sATI GLenum stream GLshort nx GLshort ny GLshort nz void glNormalStream3svATI GLenum stream const GLshort *coords void glObjectLabel GLenum identifier GLuint name GLsizei length const GLchar *label void glObjectLabelKHR GLenum identifier GLuint name GLsizei length const GLchar *label void glObjectPtrLabel const void *ptr GLsizei length const GLchar *label void glObjectPtrLabelKHR const void *ptr GLsizei length const GLchar *label GLenum glObjectPurgeableAPPLE GLenum objectType GLuint name GLenum option GLenum glObjectUnpurgeableAPPLE GLenum objectType GLuint name GLenum option void glOrtho GLdouble left GLdouble right GLdouble bottom GLdouble top GLdouble zNear GLdouble zFar void glOrthof GLfloat l GLfloat r GLfloat b GLfloat t GLfloat n GLfloat f void glOrthofOES GLfloat l GLfloat r GLfloat b GLfloat t GLfloat n GLfloat f void glOrthox GLfixed l GLfixed r GLfixed b GLfixed t GLfixed n GLfixed f void glOrthoxOES GLfixed l GLfixed r GLfixed b GLfixed t GLfixed n GLfixed f void glPNTrianglesfATI GLenum pname GLfloat param void glPNTrianglesiATI GLenum pname GLint param void glPassTexCoordATI GLuint dst GLuint coord GLenum swizzle void glPassThrough GLfloat token void glPassThroughxOES GLfixed token void glPatchParameterfv GLenum pname const GLfloat *values void glPatchParameteri GLenum pname GLint value void glPatchParameteriEXT GLenum pname GLint value void glPatchParameteriOES GLenum pname GLint value 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 func void glPathDashArrayNV GLuint path GLsizei dashCount const GLfloat *dashArray void glPathFogGenNV GLenum genMode GLenum glPathGlyphIndexArrayNV GLuint firstPathName GLenum fontTarget const void *fontName GLbitfield fontStyle GLuint firstGlyphIndex GLsizei numGlyphs GLuint pathParameterTemplate GLfloat emScale GLenum glPathGlyphIndexRangeNV GLenum fontTarget const void *fontName GLbitfield fontStyle GLuint pathParameterTemplate GLfloat emScale GLuint baseAndCount[2] 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 GLenum glPathMemoryGlyphIndexArrayNV GLuint firstPathName GLenum fontTarget GLsizeiptr fontSize const void *fontData GLsizei faceIndex GLuint firstGlyphIndex GLsizei numGlyphs 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 void glPauseTransformFeedback void glPauseTransformFeedbackNV void glPixelDataRangeNV GLenum target GLsizei length const void *pointer void glPixelMapfv GLenum map GLsizei mapsize const GLfloat *values void glPixelMapuiv GLenum map GLsizei mapsize const GLuint *values void glPixelMapusv GLenum map GLsizei mapsize const GLushort *values void glPixelMapx GLenum map GLint size const GLfixed *values void glPixelStoref GLenum pname GLfloat param void glPixelStorei GLenum pname GLint param void glPixelStorex GLenum pname GLfixed param void glPixelTexGenParameterfSGIS GLenum pname GLfloat param void glPixelTexGenParameterfvSGIS GLenum pname const GLfloat *params void glPixelTexGenParameteriSGIS GLenum pname GLint param void glPixelTexGenParameterivSGIS GLenum pname const GLint *params void glPixelTexGenSGIX GLenum mode void glPixelTransferf GLenum pname GLfloat param void glPixelTransferi GLenum pname GLint param void glPixelTransferxOES GLenum pname GLfixed param void glPixelTransformParameterfEXT GLenum target GLenum pname GLfloat param void glPixelTransformParameterfvEXT GLenum target GLenum pname const GLfloat *params void glPixelTransformParameteriEXT GLenum target GLenum pname GLint param void glPixelTransformParameterivEXT GLenum target GLenum pname const GLint *params void glPixelZoom GLfloat xfactor GLfloat yfactor void glPixelZoomxOES GLfixed xfactor GLfixed yfactor GLboolean glPointAlongPathNV GLuint path GLsizei startSegment GLsizei numSegments GLfloat distance GLfloat *x GLfloat *y GLfloat *tangentX GLfloat *tangentY void glPointParameterf GLenum pname GLfloat param void glPointParameterfARB GLenum pname GLfloat param void glPointParameterfEXT GLenum pname GLfloat param void glPointParameterfSGIS GLenum pname GLfloat param void glPointParameterfv GLenum pname const GLfloat *params void glPointParameterfvARB GLenum pname const GLfloat *params void glPointParameterfvEXT GLenum pname const GLfloat *params void glPointParameterfvSGIS GLenum pname const GLfloat *params void glPointParameteri GLenum pname GLint param void glPointParameteriNV GLenum pname GLint param void glPointParameteriv GLenum pname const GLint *params void glPointParameterivNV GLenum pname const GLint *params void glPointParameterx GLenum pname GLfixed param void glPointParameterxOES GLenum pname GLfixed param void glPointParameterxv GLenum pname const GLfixed *params void glPointParameterxvOES GLenum pname const GLfixed *params void glPointSize GLfloat size void glPointSizePointerOES GLenum type GLsizei stride const void *pointer void glPointSizex GLfixed size void glPointSizexOES GLfixed size GLint glPollAsyncSGIX GLuint *markerp GLint glPollInstrumentsSGIX GLint *marker_p void glPolygonMode GLenum face GLenum mode void glPolygonModeNV GLenum face GLenum mode void glPolygonOffset GLfloat factor GLfloat units void glPolygonOffsetClamp GLfloat factor GLfloat units GLfloat clamp void glPolygonOffsetClampEXT GLfloat factor GLfloat units GLfloat clamp void glPolygonOffsetEXT GLfloat factor GLfloat bias void glPolygonOffsetx GLfixed factor GLfixed units void glPolygonOffsetxOES GLfixed factor GLfixed units void glPolygonStipple const GLubyte *mask void glPopAttrib void glPopClientAttrib void glPopDebugGroup void glPopDebugGroupKHR void glPopGroupMarkerEXT void glPopMatrix void glPopName void glPresentFrameDualFillNV GLuint video_slot GLuint64EXT minPresentTime GLuint beginPresentTimeId GLuint presentDurationId GLenum type GLenum target0 GLuint fill0 GLenum target1 GLuint fill1 GLenum target2 GLuint fill2 GLenum target3 GLuint fill3 void glPresentFrameKeyedNV GLuint video_slot GLuint64EXT minPresentTime GLuint beginPresentTimeId GLuint presentDurationId GLenum type GLenum target0 GLuint fill0 GLuint key0 GLenum target1 GLuint fill1 GLuint key1 void glPrimitiveBoundingBox GLfloat minX GLfloat minY GLfloat minZ GLfloat minW GLfloat maxX GLfloat maxY GLfloat maxZ GLfloat maxW void glPrimitiveBoundingBoxARB GLfloat minX GLfloat minY GLfloat minZ GLfloat minW GLfloat maxX GLfloat maxY GLfloat maxZ GLfloat maxW void glPrimitiveBoundingBoxEXT GLfloat minX GLfloat minY GLfloat minZ GLfloat minW GLfloat maxX GLfloat maxY GLfloat maxZ GLfloat maxW void glPrimitiveBoundingBoxOES GLfloat minX GLfloat minY GLfloat minZ GLfloat minW GLfloat maxX GLfloat maxY GLfloat maxZ GLfloat maxW void glPrimitiveRestartIndex GLuint index void glPrimitiveRestartIndexNV GLuint index void glPrimitiveRestartNV void glPrioritizeTextures GLsizei n const GLuint *textures const GLfloat *priorities void glPrioritizeTexturesEXT GLsizei n const GLuint *textures const GLclampf *priorities void glPrioritizeTexturesxOES GLsizei n const GLuint *textures const GLfixed *priorities void glProgramBinary GLuint program GLenum binaryFormat const void *binary GLsizei length void glProgramBinaryOES GLuint program GLenum binaryFormat const void *binary GLint length void glProgramBufferParametersIivNV GLenum target GLuint bindingIndex GLuint wordIndex GLsizei count const GLint *params void glProgramBufferParametersIuivNV GLenum target GLuint bindingIndex GLuint wordIndex GLsizei count const GLuint *params void glProgramBufferParametersfvNV GLenum target GLuint bindingIndex GLuint wordIndex GLsizei count const GLfloat *params void glProgramEnvParameter4dARB GLenum target GLuint index GLdouble x GLdouble y GLdouble z GLdouble w void glProgramEnvParameter4dvARB GLenum target GLuint index const GLdouble *params void glProgramEnvParameter4fARB GLenum target GLuint index GLfloat x GLfloat y GLfloat z GLfloat w void glProgramEnvParameter4fvARB GLenum target GLuint index const GLfloat *params void glProgramEnvParameterI4iNV GLenum target GLuint index GLint x GLint y GLint z GLint w void glProgramEnvParameterI4ivNV GLenum target GLuint index const GLint *params void glProgramEnvParameterI4uiNV GLenum target GLuint index GLuint x GLuint y GLuint z GLuint w void glProgramEnvParameterI4uivNV GLenum target GLuint index const GLuint *params void glProgramEnvParameters4fvEXT GLenum target GLuint index GLsizei count const GLfloat *params void glProgramEnvParametersI4ivNV GLenum target GLuint index GLsizei count const GLint *params void glProgramEnvParametersI4uivNV GLenum target GLuint index GLsizei count const GLuint *params void glProgramLocalParameter4dARB GLenum target GLuint index GLdouble x GLdouble y GLdouble z GLdouble w void glProgramLocalParameter4dvARB GLenum target GLuint index const GLdouble *params void glProgramLocalParameter4fARB GLenum target GLuint index GLfloat x GLfloat y GLfloat z GLfloat w void glProgramLocalParameter4fvARB GLenum target GLuint index const GLfloat *params void glProgramLocalParameterI4iNV GLenum target GLuint index GLint x GLint y GLint z GLint w void glProgramLocalParameterI4ivNV GLenum target GLuint index const GLint *params void glProgramLocalParameterI4uiNV GLenum target GLuint index GLuint x GLuint y GLuint z GLuint w void glProgramLocalParameterI4uivNV GLenum target GLuint index const GLuint *params void glProgramLocalParameters4fvEXT GLenum target GLuint index GLsizei count const GLfloat *params void glProgramLocalParametersI4ivNV GLenum target GLuint index GLsizei count const GLint *params void glProgramLocalParametersI4uivNV GLenum target GLuint index GLsizei count const GLuint *params void glProgramNamedParameter4dNV GLuint id GLsizei len const GLubyte *name GLdouble x GLdouble y GLdouble z GLdouble w void glProgramNamedParameter4dvNV GLuint id GLsizei len const GLubyte *name const GLdouble *v void glProgramNamedParameter4fNV GLuint id GLsizei len const GLubyte *name GLfloat x GLfloat y GLfloat z GLfloat w void glProgramNamedParameter4fvNV GLuint id GLsizei len const GLubyte *name const GLfloat *v void glProgramParameter4dNV GLenum target GLuint index GLdouble x GLdouble y GLdouble z GLdouble w void glProgramParameter4dvNV GLenum target GLuint index const GLdouble *v void glProgramParameter4fNV GLenum target GLuint index GLfloat x GLfloat y GLfloat z GLfloat w void glProgramParameter4fvNV GLenum target GLuint index const GLfloat *v void glProgramParameteri GLuint program GLenum pname GLint value void glProgramParameteriARB GLuint program GLenum pname GLint value void glProgramParameteriEXT GLuint program GLenum pname GLint value void glProgramParameters4dvNV GLenum target GLuint index GLsizei count const GLdouble *v void glProgramParameters4fvNV GLenum target GLuint index GLsizei count const GLfloat *v void glProgramPathFragmentInputGenNV GLuint program GLint location GLenum genMode GLint components const GLfloat *coeffs void glProgramStringARB GLenum target GLenum format GLsizei len const void *string void glProgramSubroutineParametersuivNV GLenum target GLsizei count const GLuint *params void glProgramUniform1d GLuint program GLint location GLdouble v0 void glProgramUniform1dEXT GLuint program GLint location GLdouble x void glProgramUniform1dv GLuint program GLint location GLsizei count const GLdouble *value void glProgramUniform1dvEXT GLuint program GLint location GLsizei count const GLdouble *value void glProgramUniform1f GLuint program GLint location GLfloat v0 void glProgramUniform1fEXT GLuint program GLint location GLfloat v0 void glProgramUniform1fv GLuint program GLint location GLsizei count const GLfloat *value void glProgramUniform1fvEXT GLuint program GLint location GLsizei count const GLfloat *value void glProgramUniform1i GLuint program GLint location GLint v0 void glProgramUniform1i64ARB GLuint program GLint location GLint64 x void glProgramUniform1i64NV GLuint program GLint location GLint64EXT x void glProgramUniform1i64vARB GLuint program GLint location GLsizei count const GLint64 *value void glProgramUniform1i64vNV GLuint program GLint location GLsizei count const GLint64EXT *value void glProgramUniform1iEXT GLuint program GLint location GLint v0 void glProgramUniform1iv GLuint program GLint location GLsizei count const GLint *value void glProgramUniform1ivEXT GLuint program GLint location GLsizei count const GLint *value void glProgramUniform1ui GLuint program GLint location GLuint v0 void glProgramUniform1ui64ARB GLuint program GLint location GLuint64 x void glProgramUniform1ui64NV GLuint program GLint location GLuint64EXT x void glProgramUniform1ui64vARB GLuint program GLint location GLsizei count const GLuint64 *value void glProgramUniform1ui64vNV GLuint program GLint location GLsizei count const GLuint64EXT *value void glProgramUniform1uiEXT GLuint program GLint location GLuint v0 void glProgramUniform1uiv GLuint program GLint location GLsizei count const GLuint *value void glProgramUniform1uivEXT GLuint program GLint location GLsizei count const GLuint *value void glProgramUniform2d GLuint program GLint location GLdouble v0 GLdouble v1 void glProgramUniform2dEXT GLuint program GLint location GLdouble x GLdouble y void glProgramUniform2dv GLuint program GLint location GLsizei count const GLdouble *value void glProgramUniform2dvEXT GLuint program GLint location GLsizei count const GLdouble *value void glProgramUniform2f GLuint program GLint location GLfloat v0 GLfloat v1 void glProgramUniform2fEXT GLuint program GLint location GLfloat v0 GLfloat v1 void glProgramUniform2fv GLuint program GLint location GLsizei count const GLfloat *value void glProgramUniform2fvEXT GLuint program GLint location GLsizei count const GLfloat *value void glProgramUniform2i GLuint program GLint location GLint v0 GLint v1 void glProgramUniform2i64ARB GLuint program GLint location GLint64 x GLint64 y void glProgramUniform2i64NV GLuint program GLint location GLint64EXT x GLint64EXT y void glProgramUniform2i64vARB GLuint program GLint location GLsizei count const GLint64 *value void glProgramUniform2i64vNV GLuint program GLint location GLsizei count const GLint64EXT *value void glProgramUniform2iEXT GLuint program GLint location GLint v0 GLint v1 void glProgramUniform2iv GLuint program GLint location GLsizei count const GLint *value void glProgramUniform2ivEXT GLuint program GLint location GLsizei count const GLint *value void glProgramUniform2ui GLuint program GLint location GLuint v0 GLuint v1 void glProgramUniform2ui64ARB GLuint program GLint location GLuint64 x GLuint64 y void glProgramUniform2ui64NV GLuint program GLint location GLuint64EXT x GLuint64EXT y void glProgramUniform2ui64vARB GLuint program GLint location GLsizei count const GLuint64 *value void glProgramUniform2ui64vNV GLuint program GLint location GLsizei count const GLuint64EXT *value void glProgramUniform2uiEXT GLuint program GLint location GLuint v0 GLuint v1 void glProgramUniform2uiv GLuint program GLint location GLsizei count const GLuint *value void glProgramUniform2uivEXT GLuint program GLint location GLsizei count const GLuint *value void glProgramUniform3d GLuint program GLint location GLdouble v0 GLdouble v1 GLdouble v2 void glProgramUniform3dEXT GLuint program GLint location GLdouble x GLdouble y GLdouble z void glProgramUniform3dv GLuint program GLint location GLsizei count const GLdouble *value void glProgramUniform3dvEXT GLuint program GLint location GLsizei count const GLdouble *value void glProgramUniform3f GLuint program GLint location GLfloat v0 GLfloat v1 GLfloat v2 void glProgramUniform3fEXT GLuint program GLint location GLfloat v0 GLfloat v1 GLfloat v2 void glProgramUniform3fv GLuint program GLint location GLsizei count const GLfloat *value void glProgramUniform3fvEXT GLuint program GLint location GLsizei count const GLfloat *value void glProgramUniform3i GLuint program GLint location GLint v0 GLint v1 GLint v2 void glProgramUniform3i64ARB GLuint program GLint location GLint64 x GLint64 y GLint64 z void glProgramUniform3i64NV GLuint program GLint location GLint64EXT x GLint64EXT y GLint64EXT z void glProgramUniform3i64vARB GLuint program GLint location GLsizei count const GLint64 *value void glProgramUniform3i64vNV GLuint program GLint location GLsizei count const GLint64EXT *value void glProgramUniform3iEXT GLuint program GLint location GLint v0 GLint v1 GLint v2 void glProgramUniform3iv GLuint program GLint location GLsizei count const GLint *value void glProgramUniform3ivEXT GLuint program GLint location GLsizei count const GLint *value void glProgramUniform3ui GLuint program GLint location GLuint v0 GLuint v1 GLuint v2 void glProgramUniform3ui64ARB GLuint program GLint location GLuint64 x GLuint64 y GLuint64 z void glProgramUniform3ui64NV GLuint program GLint location GLuint64EXT x GLuint64EXT y GLuint64EXT z void glProgramUniform3ui64vARB GLuint program GLint location GLsizei count const GLuint64 *value void glProgramUniform3ui64vNV GLuint program GLint location GLsizei count const GLuint64EXT *value void glProgramUniform3uiEXT GLuint program GLint location GLuint v0 GLuint v1 GLuint v2 void glProgramUniform3uiv GLuint program GLint location GLsizei count const GLuint *value void glProgramUniform3uivEXT GLuint program GLint location GLsizei count const GLuint *value void glProgramUniform4d GLuint program GLint location GLdouble v0 GLdouble v1 GLdouble v2 GLdouble v3 void glProgramUniform4dEXT GLuint program GLint location GLdouble x GLdouble y GLdouble z GLdouble w void glProgramUniform4dv GLuint program GLint location GLsizei count const GLdouble *value void glProgramUniform4dvEXT GLuint program GLint location GLsizei count const GLdouble *value void glProgramUniform4f GLuint program GLint location GLfloat v0 GLfloat v1 GLfloat v2 GLfloat v3 void glProgramUniform4fEXT GLuint program GLint location GLfloat v0 GLfloat v1 GLfloat v2 GLfloat v3 void glProgramUniform4fv GLuint program GLint location GLsizei count const GLfloat *value void glProgramUniform4fvEXT GLuint program GLint location GLsizei count const GLfloat *value void glProgramUniform4i GLuint program GLint location GLint v0 GLint v1 GLint v2 GLint v3 void glProgramUniform4i64ARB GLuint program GLint location GLint64 x GLint64 y GLint64 z GLint64 w void glProgramUniform4i64NV GLuint program GLint location GLint64EXT x GLint64EXT y GLint64EXT z GLint64EXT w void glProgramUniform4i64vARB GLuint program GLint location GLsizei count const GLint64 *value void glProgramUniform4i64vNV GLuint program GLint location GLsizei count const GLint64EXT *value void glProgramUniform4iEXT GLuint program GLint location GLint v0 GLint v1 GLint v2 GLint v3 void glProgramUniform4iv GLuint program GLint location GLsizei count const GLint *value void glProgramUniform4ivEXT GLuint program GLint location GLsizei count const GLint *value void glProgramUniform4ui GLuint program GLint location GLuint v0 GLuint v1 GLuint v2 GLuint v3 void glProgramUniform4ui64ARB GLuint program GLint location GLuint64 x GLuint64 y GLuint64 z GLuint64 w void glProgramUniform4ui64NV GLuint program GLint location GLuint64EXT x GLuint64EXT y GLuint64EXT z GLuint64EXT w void glProgramUniform4ui64vARB GLuint program GLint location GLsizei count const GLuint64 *value void glProgramUniform4ui64vNV GLuint program GLint location GLsizei count const GLuint64EXT *value void glProgramUniform4uiEXT GLuint program GLint location GLuint v0 GLuint v1 GLuint v2 GLuint v3 void glProgramUniform4uiv GLuint program GLint location GLsizei count const GLuint *value void glProgramUniform4uivEXT GLuint program GLint location GLsizei count const GLuint *value void glProgramUniformHandleui64ARB GLuint program GLint location GLuint64 value void glProgramUniformHandleui64IMG GLuint program GLint location GLuint64 value void glProgramUniformHandleui64NV GLuint program GLint location GLuint64 value void glProgramUniformHandleui64vARB GLuint program GLint location GLsizei count const GLuint64 *values void glProgramUniformHandleui64vIMG GLuint program GLint location GLsizei count const GLuint64 *values void glProgramUniformHandleui64vNV GLuint program GLint location GLsizei count const GLuint64 *values void glProgramUniformMatrix2dv GLuint program GLint location GLsizei count GLboolean transpose const GLdouble *value void glProgramUniformMatrix2dvEXT GLuint program GLint location GLsizei count GLboolean transpose const GLdouble *value void glProgramUniformMatrix2fv GLuint program GLint location GLsizei count GLboolean transpose const GLfloat *value void glProgramUniformMatrix2fvEXT GLuint program GLint location GLsizei count GLboolean transpose const GLfloat *value void glProgramUniformMatrix2x3dv GLuint program GLint location GLsizei count GLboolean transpose const GLdouble *value void glProgramUniformMatrix2x3dvEXT GLuint program GLint location GLsizei count GLboolean transpose const GLdouble *value void glProgramUniformMatrix2x3fv GLuint program GLint location GLsizei count GLboolean transpose const GLfloat *value void glProgramUniformMatrix2x3fvEXT GLuint program GLint location GLsizei count GLboolean transpose const GLfloat *value void glProgramUniformMatrix2x4dv GLuint program GLint location GLsizei count GLboolean transpose const GLdouble *value void glProgramUniformMatrix2x4dvEXT GLuint program GLint location GLsizei count GLboolean transpose const GLdouble *value void glProgramUniformMatrix2x4fv GLuint program GLint location GLsizei count GLboolean transpose const GLfloat *value void glProgramUniformMatrix2x4fvEXT GLuint program GLint location GLsizei count GLboolean transpose const GLfloat *value void glProgramUniformMatrix3dv GLuint program GLint location GLsizei count GLboolean transpose const GLdouble *value void glProgramUniformMatrix3dvEXT GLuint program GLint location GLsizei count GLboolean transpose const GLdouble *value void glProgramUniformMatrix3fv GLuint program GLint location GLsizei count GLboolean transpose const GLfloat *value void glProgramUniformMatrix3fvEXT GLuint program GLint location GLsizei count GLboolean transpose const GLfloat *value void glProgramUniformMatrix3x2dv GLuint program GLint location GLsizei count GLboolean transpose const GLdouble *value void glProgramUniformMatrix3x2dvEXT GLuint program GLint location GLsizei count GLboolean transpose const GLdouble *value void glProgramUniformMatrix3x2fv GLuint program GLint location GLsizei count GLboolean transpose const GLfloat *value void glProgramUniformMatrix3x2fvEXT GLuint program GLint location GLsizei count GLboolean transpose const GLfloat *value void glProgramUniformMatrix3x4dv GLuint program GLint location GLsizei count GLboolean transpose const GLdouble *value void glProgramUniformMatrix3x4dvEXT GLuint program GLint location GLsizei count GLboolean transpose const GLdouble *value void glProgramUniformMatrix3x4fv GLuint program GLint location GLsizei count GLboolean transpose const GLfloat *value void glProgramUniformMatrix3x4fvEXT GLuint program GLint location GLsizei count GLboolean transpose const GLfloat *value void glProgramUniformMatrix4dv GLuint program GLint location GLsizei count GLboolean transpose const GLdouble *value void glProgramUniformMatrix4dvEXT GLuint program GLint location GLsizei count GLboolean transpose const GLdouble *value void glProgramUniformMatrix4fv GLuint program GLint location GLsizei count GLboolean transpose const GLfloat *value void glProgramUniformMatrix4fvEXT GLuint program GLint location GLsizei count GLboolean transpose const GLfloat *value void glProgramUniformMatrix4x2dv GLuint program GLint location GLsizei count GLboolean transpose const GLdouble *value void glProgramUniformMatrix4x2dvEXT GLuint program GLint location GLsizei count GLboolean transpose const GLdouble *value void glProgramUniformMatrix4x2fv GLuint program GLint location GLsizei count GLboolean transpose const GLfloat *value void glProgramUniformMatrix4x2fvEXT GLuint program GLint location GLsizei count GLboolean transpose const GLfloat *value void glProgramUniformMatrix4x3dv GLuint program GLint location GLsizei count GLboolean transpose const GLdouble *value void glProgramUniformMatrix4x3dvEXT GLuint program GLint location GLsizei count GLboolean transpose const GLdouble *value void glProgramUniformMatrix4x3fv GLuint program GLint location GLsizei count GLboolean transpose const GLfloat *value void glProgramUniformMatrix4x3fvEXT GLuint program GLint location GLsizei count GLboolean transpose const GLfloat *value void glProgramUniformui64NV GLuint program GLint location GLuint64EXT value void glProgramUniformui64vNV GLuint program GLint location GLsizei count const GLuint64EXT *value void glProgramVertexLimitNV GLenum target GLint limit void glProvokingVertex GLenum mode void glProvokingVertexEXT GLenum mode void glPushAttrib GLbitfield mask void glPushClientAttrib GLbitfield mask void glPushClientAttribDefaultEXT GLbitfield mask void glPushDebugGroup GLenum source GLuint id GLsizei length const GLchar *message void glPushDebugGroupKHR GLenum source GLuint id GLsizei length const GLchar *message void glPushGroupMarkerEXT GLsizei length const GLchar *marker void glPushMatrix void glPushName GLuint name void glQueryCounter GLuint id GLenum target void glQueryCounterEXT GLuint id GLenum target GLbitfield glQueryMatrixxOES GLfixed *mantissa GLint *exponent void glQueryObjectParameteruiAMD GLenum target GLuint id GLenum pname GLuint param GLint glQueryResourceNV GLenum queryType GLint tagId GLuint bufSize GLint *buffer void glQueryResourceTagNV GLint tagId const GLchar *tagString void glRasterPos2d GLdouble x GLdouble y void glRasterPos2dv const GLdouble *v void glRasterPos2f GLfloat x GLfloat y void glRasterPos2fv const GLfloat *v void glRasterPos2i GLint x GLint y void glRasterPos2iv const GLint *v void glRasterPos2s GLshort x GLshort y void glRasterPos2sv const GLshort *v void glRasterPos2xOES GLfixed x GLfixed y void glRasterPos2xvOES const GLfixed *coords void glRasterPos3d GLdouble x GLdouble y GLdouble z void glRasterPos3dv const GLdouble *v void glRasterPos3f GLfloat x GLfloat y GLfloat z void glRasterPos3fv const GLfloat *v void glRasterPos3i GLint x GLint y GLint z void glRasterPos3iv const GLint *v void glRasterPos3s GLshort x GLshort y GLshort z void glRasterPos3sv const GLshort *v void glRasterPos3xOES GLfixed x GLfixed y GLfixed z void glRasterPos3xvOES const GLfixed *coords void glRasterPos4d GLdouble x GLdouble y GLdouble z GLdouble w void glRasterPos4dv const GLdouble *v void glRasterPos4f GLfloat x GLfloat y GLfloat z GLfloat w void glRasterPos4fv const GLfloat *v void glRasterPos4i GLint x GLint y GLint z GLint w void glRasterPos4iv const GLint *v void glRasterPos4s GLshort x GLshort y GLshort z GLshort w void glRasterPos4sv const GLshort *v void glRasterPos4xOES GLfixed x GLfixed y GLfixed z GLfixed w void glRasterPos4xvOES const GLfixed *coords void glRasterSamplesEXT GLuint samples GLboolean fixedsamplelocations void glReadBuffer GLenum src void glReadBufferIndexedEXT GLenum src GLint index void glReadBufferNV GLenum mode void glReadInstrumentsSGIX GLint marker void glReadPixels GLint x GLint y GLsizei width GLsizei height GLenum format GLenum type void *pixels void glReadnPixels GLint x GLint y GLsizei width GLsizei height GLenum format GLenum type GLsizei bufSize void *data void glReadnPixelsARB GLint x GLint y GLsizei width GLsizei height GLenum format GLenum type GLsizei bufSize void *data void glReadnPixelsEXT GLint x GLint y GLsizei width GLsizei height GLenum format GLenum type GLsizei bufSize void *data void glReadnPixelsKHR GLint x GLint y GLsizei width GLsizei height GLenum format GLenum type GLsizei bufSize void *data GLboolean glReleaseKeyedMutexWin32EXT GLuint memory GLuint64 key void glRectd GLdouble x1 GLdouble y1 GLdouble x2 GLdouble y2 void glRectdv const GLdouble *v1 const GLdouble *v2 void glRectf GLfloat x1 GLfloat y1 GLfloat x2 GLfloat y2 void glRectfv const GLfloat *v1 const GLfloat *v2 void glRecti GLint x1 GLint y1 GLint x2 GLint y2 void glRectiv const GLint *v1 const GLint *v2 void glRects GLshort x1 GLshort y1 GLshort x2 GLshort y2 void glRectsv const GLshort *v1 const GLshort *v2 void glRectxOES GLfixed x1 GLfixed y1 GLfixed x2 GLfixed y2 void glRectxvOES const GLfixed *v1 const GLfixed *v2 void glReferencePlaneSGIX const GLdouble *equation void glReleaseShaderCompiler void glRenderGpuMaskNV GLbitfield mask GLint glRenderMode GLenum mode void glRenderbufferStorage GLenum target GLenum internalformat GLsizei width GLsizei height void glRenderbufferStorageEXT GLenum target GLenum internalformat GLsizei width GLsizei height void glRenderbufferStorageMultisample GLenum target GLsizei samples GLenum internalformat GLsizei width GLsizei height void glRenderbufferStorageMultisampleANGLE GLenum target GLsizei samples GLenum internalformat GLsizei width GLsizei height void glRenderbufferStorageMultisampleAPPLE GLenum target GLsizei samples GLenum internalformat GLsizei width GLsizei height void glRenderbufferStorageMultisampleAdvancedAMD GLenum target GLsizei samples GLsizei storageSamples GLenum internalformat GLsizei width GLsizei height void glRenderbufferStorageMultisampleCoverageNV GLenum target GLsizei coverageSamples GLsizei colorSamples GLenum internalformat GLsizei width GLsizei height void glRenderbufferStorageMultisampleEXT GLenum target GLsizei samples GLenum internalformat GLsizei width GLsizei height void glRenderbufferStorageMultisampleIMG GLenum target GLsizei samples GLenum internalformat GLsizei width GLsizei height void glRenderbufferStorageMultisampleNV GLenum target GLsizei samples GLenum internalformat GLsizei width GLsizei height void glRenderbufferStorageOES GLenum target GLenum internalformat GLsizei width GLsizei height void glReplacementCodePointerSUN GLenum type GLsizei stride const void **pointer void glReplacementCodeubSUN GLubyte code void glReplacementCodeubvSUN const GLubyte *code void glReplacementCodeuiColor3fVertex3fSUN GLuint rc GLfloat r GLfloat g GLfloat b GLfloat x GLfloat y GLfloat z void glReplacementCodeuiColor3fVertex3fvSUN const GLuint *rc const GLfloat *c const GLfloat *v void glReplacementCodeuiColor4fNormal3fVertex3fSUN GLuint rc GLfloat r GLfloat g GLfloat b GLfloat a GLfloat nx GLfloat ny GLfloat nz GLfloat x GLfloat y GLfloat z void glReplacementCodeuiColor4fNormal3fVertex3fvSUN const GLuint *rc const GLfloat *c const GLfloat *n const GLfloat *v void glReplacementCodeuiColor4ubVertex3fSUN GLuint rc GLubyte r GLubyte g GLubyte b GLubyte a GLfloat x GLfloat y GLfloat z void glReplacementCodeuiColor4ubVertex3fvSUN const GLuint *rc const GLubyte *c const GLfloat *v void glReplacementCodeuiNormal3fVertex3fSUN GLuint rc GLfloat nx GLfloat ny GLfloat nz GLfloat x GLfloat y GLfloat z void glReplacementCodeuiNormal3fVertex3fvSUN const GLuint *rc const GLfloat *n const GLfloat *v void glReplacementCodeuiSUN GLuint code void glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN GLuint rc GLfloat s GLfloat t GLfloat r GLfloat g GLfloat b GLfloat a GLfloat nx GLfloat ny GLfloat nz GLfloat x GLfloat y GLfloat z void glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN const GLuint *rc const GLfloat *tc const GLfloat *c const GLfloat *n const GLfloat *v void glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN GLuint rc GLfloat s GLfloat t GLfloat nx GLfloat ny GLfloat nz GLfloat x GLfloat y GLfloat z void glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN const GLuint *rc const GLfloat *tc const GLfloat *n const GLfloat *v void glReplacementCodeuiTexCoord2fVertex3fSUN GLuint rc GLfloat s GLfloat t GLfloat x GLfloat y GLfloat z void glReplacementCodeuiTexCoord2fVertex3fvSUN const GLuint *rc const GLfloat *tc const GLfloat *v void glReplacementCodeuiVertex3fSUN GLuint rc GLfloat x GLfloat y GLfloat z void glReplacementCodeuiVertex3fvSUN const GLuint *rc const GLfloat *v void glReplacementCodeuivSUN const GLuint *code void glReplacementCodeusSUN GLushort code void glReplacementCodeusvSUN const GLushort *code void glRequestResidentProgramsNV GLsizei n const GLuint *programs void glResetHistogram GLenum target void glResetHistogramEXT GLenum target void glResetMemoryObjectParameterNV GLuint memory GLenum pname void glResetMinmax GLenum target void glResetMinmaxEXT GLenum target void glResizeBuffersMESA void glResolveDepthValuesNV void glResolveMultisampleFramebufferAPPLE void glResumeTransformFeedback void glResumeTransformFeedbackNV void glRotated GLdouble angle GLdouble x GLdouble y GLdouble z void glRotatef GLfloat angle GLfloat x GLfloat y GLfloat z void glRotatex GLfixed angle GLfixed x GLfixed y GLfixed z void glRotatexOES GLfixed angle GLfixed x GLfixed y GLfixed z void glSampleCoverage GLfloat value GLboolean invert void glSampleCoverageARB GLfloat value GLboolean invert void glSampleCoveragex GLclampx value GLboolean invert void glSampleCoveragexOES GLclampx value GLboolean invert void glSampleMapATI GLuint dst GLuint interp GLenum swizzle void glSampleMaskEXT GLclampf value GLboolean invert void glSampleMaskIndexedNV GLuint index GLbitfield mask void glSampleMaskSGIS GLclampf value GLboolean invert void glSampleMaski GLuint maskNumber GLbitfield mask void glSamplePatternEXT GLenum pattern void glSamplePatternSGIS GLenum pattern void glSamplerParameterIiv GLuint sampler GLenum pname const GLint *param void glSamplerParameterIivEXT GLuint sampler GLenum pname const GLint *param void glSamplerParameterIivOES GLuint sampler GLenum pname const GLint *param void glSamplerParameterIuiv GLuint sampler GLenum pname const GLuint *param void glSamplerParameterIuivEXT GLuint sampler GLenum pname const GLuint *param void glSamplerParameterIuivOES GLuint sampler GLenum pname const GLuint *param void glSamplerParameterf GLuint sampler GLenum pname GLfloat param void glSamplerParameterfv GLuint sampler GLenum pname const GLfloat *param void glSamplerParameteri GLuint sampler GLenum pname GLint param void glSamplerParameteriv GLuint sampler GLenum pname const GLint *param void glScaled GLdouble x GLdouble y GLdouble z void glScalef GLfloat x GLfloat y GLfloat z void glScalex GLfixed x GLfixed y GLfixed z void glScalexOES GLfixed x GLfixed y GLfixed z void glScissor GLint x GLint y GLsizei width GLsizei height void glScissorArrayv GLuint first GLsizei count const GLint *v void glScissorArrayvNV GLuint first GLsizei count const GLint *v void glScissorArrayvOES GLuint first GLsizei count const GLint *v void glScissorExclusiveArrayvNV GLuint first GLsizei count const GLint *v void glScissorExclusiveNV GLint x GLint y GLsizei width GLsizei height void glScissorIndexed GLuint index GLint left GLint bottom GLsizei width GLsizei height void glScissorIndexedNV GLuint index GLint left GLint bottom GLsizei width GLsizei height void glScissorIndexedOES GLuint index GLint left GLint bottom GLsizei width GLsizei height void glScissorIndexedv GLuint index const GLint *v void glScissorIndexedvNV GLuint index const GLint *v void glScissorIndexedvOES GLuint index const GLint *v void glSecondaryColor3b GLbyte red GLbyte green GLbyte blue void glSecondaryColor3bEXT GLbyte red GLbyte green GLbyte blue void glSecondaryColor3bv const GLbyte *v void glSecondaryColor3bvEXT const GLbyte *v void glSecondaryColor3d GLdouble red GLdouble green GLdouble blue void glSecondaryColor3dEXT GLdouble red GLdouble green GLdouble blue void glSecondaryColor3dv const GLdouble *v void glSecondaryColor3dvEXT const GLdouble *v void glSecondaryColor3f GLfloat red GLfloat green GLfloat blue void glSecondaryColor3fEXT GLfloat red GLfloat green GLfloat blue void glSecondaryColor3fv const GLfloat *v void glSecondaryColor3fvEXT const GLfloat *v void glSecondaryColor3hNV GLhalfNV red GLhalfNV green GLhalfNV blue void glSecondaryColor3hvNV const GLhalfNV *v void glSecondaryColor3i GLint red GLint green GLint blue void glSecondaryColor3iEXT GLint red GLint green GLint blue void glSecondaryColor3iv const GLint *v void glSecondaryColor3ivEXT const GLint *v void glSecondaryColor3s GLshort red GLshort green GLshort blue void glSecondaryColor3sEXT GLshort red GLshort green GLshort blue void glSecondaryColor3sv const GLshort *v void glSecondaryColor3svEXT const GLshort *v void glSecondaryColor3ub GLubyte red GLubyte green GLubyte blue void glSecondaryColor3ubEXT GLubyte red GLubyte green GLubyte blue void glSecondaryColor3ubv const GLubyte *v void glSecondaryColor3ubvEXT const GLubyte *v void glSecondaryColor3ui GLuint red GLuint green GLuint blue void glSecondaryColor3uiEXT GLuint red GLuint green GLuint blue void glSecondaryColor3uiv const GLuint *v void glSecondaryColor3uivEXT const GLuint *v void glSecondaryColor3us GLushort red GLushort green GLushort blue void glSecondaryColor3usEXT GLushort red GLushort green GLushort blue void glSecondaryColor3usv const GLushort *v void glSecondaryColor3usvEXT const GLushort *v void glSecondaryColorFormatNV GLint size GLenum type GLsizei stride void glSecondaryColorP3ui GLenum type GLuint color void glSecondaryColorP3uiv GLenum type const GLuint *color void glSecondaryColorPointer GLint size GLenum type GLsizei stride const void *pointer void glSecondaryColorPointerEXT GLint size GLenum type GLsizei stride const void *pointer void glSecondaryColorPointerListIBM GLint size GLenum type GLint stride const void **pointer GLint ptrstride void glSelectBuffer GLsizei size GLuint *buffer void glSelectPerfMonitorCountersAMD GLuint monitor GLboolean enable GLuint group GLint numCounters GLuint *counterList void glSemaphoreParameterui64vEXT GLuint semaphore GLenum pname const GLuint64 *params void glSeparableFilter2D GLenum target GLenum internalformat GLsizei width GLsizei height GLenum format GLenum type const void *row const void *column void glSeparableFilter2DEXT GLenum target GLenum internalformat GLsizei width GLsizei height GLenum format GLenum type const void *row const void *column void glSetFenceAPPLE GLuint fence void glSetFenceNV GLuint fence GLenum condition void glSetFragmentShaderConstantATI GLuint dst const GLfloat *value void glSetInvariantEXT GLuint id GLenum type const void *addr void glSetLocalConstantEXT GLuint id GLenum type const void *addr void glSetMultisamplefvAMD GLenum pname GLuint index const GLfloat *val void glShadeModel GLenum mode void glShaderBinary GLsizei count const GLuint *shaders GLenum binaryformat const void *binary GLsizei length void glShaderOp1EXT GLenum op GLuint res GLuint arg1 void glShaderOp2EXT GLenum op GLuint res GLuint arg1 GLuint arg2 void glShaderOp3EXT GLenum op GLuint res GLuint arg1 GLuint arg2 GLuint arg3 void glShaderSource GLuint shader GLsizei count const GLchar *const*string const GLint *length void glShaderSourceARB GLhandleARB shaderObj GLsizei count const GLcharARB **string const GLint *length void glShaderStorageBlockBinding GLuint program GLuint storageBlockIndex GLuint storageBlockBinding void glShadingRateImageBarrierNV GLboolean synchronize void glShadingRateImagePaletteNV GLuint viewport GLuint first GLsizei count const GLenum *rates void glShadingRateSampleOrderNV GLenum order void glShadingRateSampleOrderCustomNV GLenum rate GLuint samples const GLint *locations void glSharpenTexFuncSGIS GLenum target GLsizei n const GLfloat *points void glSignalSemaphoreEXT GLuint semaphore GLuint numBufferBarriers const GLuint *buffers GLuint numTextureBarriers const GLuint *textures const GLenum *dstLayouts void glSpecializeShader GLuint shader const GLchar *pEntryPoint GLuint numSpecializationConstants const GLuint *pConstantIndex const GLuint *pConstantValue void glSpecializeShaderARB GLuint shader const GLchar *pEntryPoint GLuint numSpecializationConstants const GLuint *pConstantIndex const GLuint *pConstantValue void glSpriteParameterfSGIX GLenum pname GLfloat param void glSpriteParameterfvSGIX GLenum pname const GLfloat *params void glSpriteParameteriSGIX GLenum pname GLint param void glSpriteParameterivSGIX GLenum pname const GLint *params void glStartInstrumentsSGIX void glStartTilingQCOM GLuint x GLuint y GLuint width GLuint height GLbitfield preserveMask void glStateCaptureNV GLuint state GLenum mode void glStencilClearTagEXT GLsizei stencilTagBits GLuint stencilClearTag 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 glStencilFunc GLenum func GLint ref GLuint mask void glStencilFuncSeparate GLenum face GLenum func GLint ref GLuint mask void glStencilFuncSeparateATI GLenum frontfunc GLenum backfunc GLint ref GLuint mask void glStencilMask GLuint mask void glStencilMaskSeparate GLenum face GLuint mask void glStencilOp GLenum fail GLenum zfail GLenum zpass void glStencilOpSeparate GLenum face GLenum sfail GLenum dpfail GLenum dppass void glStencilOpSeparateATI GLenum face GLenum sfail GLenum dpfail GLenum dppass void glStencilOpValueAMD GLenum face GLuint value 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 glStencilThenCoverFillPathInstancedNV GLsizei numPaths GLenum pathNameType const void *paths GLuint pathBase GLenum fillMode GLuint mask GLenum coverMode GLenum transformType const GLfloat *transformValues void glStencilThenCoverFillPathNV GLuint path GLenum fillMode GLuint mask GLenum coverMode void glStencilThenCoverStrokePathInstancedNV GLsizei numPaths GLenum pathNameType const void *paths GLuint pathBase GLint reference GLuint mask GLenum coverMode GLenum transformType const GLfloat *transformValues void glStencilThenCoverStrokePathNV GLuint path GLint reference GLuint mask GLenum coverMode void glStopInstrumentsSGIX GLint marker void glStringMarkerGREMEDY GLsizei len const void *string void glSubpixelPrecisionBiasNV GLuint xbits GLuint ybits void glSwizzleEXT GLuint res GLuint in GLenum outX GLenum outY GLenum outZ GLenum outW void glSyncTextureINTEL GLuint texture void glTagSampleBufferSGIX void glTangent3bEXT GLbyte tx GLbyte ty GLbyte tz void glTangent3bvEXT const GLbyte *v void glTangent3dEXT GLdouble tx GLdouble ty GLdouble tz void glTangent3dvEXT const GLdouble *v void glTangent3fEXT GLfloat tx GLfloat ty GLfloat tz void glTangent3fvEXT const GLfloat *v void glTangent3iEXT GLint tx GLint ty GLint tz void glTangent3ivEXT const GLint *v void glTangent3sEXT GLshort tx GLshort ty GLshort tz void glTangent3svEXT const GLshort *v void glTangentPointerEXT GLenum type GLsizei stride const void *pointer void glTbufferMask3DFX GLuint mask void glTessellationFactorAMD GLfloat factor void glTessellationModeAMD GLenum mode GLboolean glTestFenceAPPLE GLuint fence GLboolean glTestFenceNV GLuint fence GLboolean glTestObjectAPPLE GLenum object GLuint name void glTexAttachMemoryNV GLenum target GLuint memory GLuint64 offset void glTexBuffer GLenum target GLenum internalformat GLuint buffer void glTexBufferARB GLenum target GLenum internalformat GLuint buffer void glTexBufferEXT GLenum target GLenum internalformat GLuint buffer void glTexBufferOES GLenum target GLenum internalformat GLuint buffer void glTexBufferRange GLenum target GLenum internalformat GLuint buffer GLintptr offset GLsizeiptr size void glTexBufferRangeEXT GLenum target GLenum internalformat GLuint buffer GLintptr offset GLsizeiptr size void glTexBufferRangeOES GLenum target GLenum internalformat GLuint buffer GLintptr offset GLsizeiptr size void glTexBumpParameterfvATI GLenum pname const GLfloat *param void glTexBumpParameterivATI GLenum pname const GLint *param void glTexCoord1bOES GLbyte s void glTexCoord1bvOES const GLbyte *coords void glTexCoord1d GLdouble s void glTexCoord1dv const GLdouble *v void glTexCoord1f GLfloat s void glTexCoord1fv const GLfloat *v void glTexCoord1hNV GLhalfNV s void glTexCoord1hvNV const GLhalfNV *v void glTexCoord1i GLint s void glTexCoord1iv const GLint *v void glTexCoord1s GLshort s void glTexCoord1sv const GLshort *v void glTexCoord1xOES GLfixed s void glTexCoord1xvOES const GLfixed *coords void glTexCoord2bOES GLbyte s GLbyte t void glTexCoord2bvOES const GLbyte *coords void glTexCoord2d GLdouble s GLdouble t void glTexCoord2dv const GLdouble *v void glTexCoord2f GLfloat s GLfloat t void glTexCoord2fColor3fVertex3fSUN GLfloat s GLfloat t GLfloat r GLfloat g GLfloat b GLfloat x GLfloat y GLfloat z void glTexCoord2fColor3fVertex3fvSUN const GLfloat *tc const GLfloat *c const GLfloat *v void glTexCoord2fColor4fNormal3fVertex3fSUN GLfloat s GLfloat t GLfloat r GLfloat g GLfloat b GLfloat a GLfloat nx GLfloat ny GLfloat nz GLfloat x GLfloat y GLfloat z void glTexCoord2fColor4fNormal3fVertex3fvSUN const GLfloat *tc const GLfloat *c const GLfloat *n const GLfloat *v void glTexCoord2fColor4ubVertex3fSUN GLfloat s GLfloat t GLubyte r GLubyte g GLubyte b GLubyte a GLfloat x GLfloat y GLfloat z void glTexCoord2fColor4ubVertex3fvSUN const GLfloat *tc const GLubyte *c const GLfloat *v void glTexCoord2fNormal3fVertex3fSUN GLfloat s GLfloat t GLfloat nx GLfloat ny GLfloat nz GLfloat x GLfloat y GLfloat z void glTexCoord2fNormal3fVertex3fvSUN const GLfloat *tc const GLfloat *n const GLfloat *v void glTexCoord2fVertex3fSUN GLfloat s GLfloat t GLfloat x GLfloat y GLfloat z void glTexCoord2fVertex3fvSUN const GLfloat *tc const GLfloat *v void glTexCoord2fv const GLfloat *v void glTexCoord2hNV GLhalfNV s GLhalfNV t void glTexCoord2hvNV const GLhalfNV *v void glTexCoord2i GLint s GLint t void glTexCoord2iv const GLint *v void glTexCoord2s GLshort s GLshort t void glTexCoord2sv const GLshort *v void glTexCoord2xOES GLfixed s GLfixed t void glTexCoord2xvOES const GLfixed *coords void glTexCoord3bOES GLbyte s GLbyte t GLbyte r void glTexCoord3bvOES const GLbyte *coords void glTexCoord3d GLdouble s GLdouble t GLdouble r void glTexCoord3dv const GLdouble *v void glTexCoord3f GLfloat s GLfloat t GLfloat r void glTexCoord3fv const GLfloat *v void glTexCoord3hNV GLhalfNV s GLhalfNV t GLhalfNV r void glTexCoord3hvNV const GLhalfNV *v void glTexCoord3i GLint s GLint t GLint r void glTexCoord3iv const GLint *v void glTexCoord3s GLshort s GLshort t GLshort r void glTexCoord3sv const GLshort *v void glTexCoord3xOES GLfixed s GLfixed t GLfixed r void glTexCoord3xvOES const GLfixed *coords void glTexCoord4bOES GLbyte s GLbyte t GLbyte r GLbyte q void glTexCoord4bvOES const GLbyte *coords void glTexCoord4d GLdouble s GLdouble t GLdouble r GLdouble q void glTexCoord4dv const GLdouble *v void glTexCoord4f GLfloat s GLfloat t GLfloat r GLfloat q void glTexCoord4fColor4fNormal3fVertex4fSUN GLfloat s GLfloat t GLfloat p GLfloat q GLfloat r GLfloat g GLfloat b GLfloat a GLfloat nx GLfloat ny GLfloat nz GLfloat x GLfloat y GLfloat z GLfloat w void glTexCoord4fColor4fNormal3fVertex4fvSUN const GLfloat *tc const GLfloat *c const GLfloat *n const GLfloat *v void glTexCoord4fVertex4fSUN GLfloat s GLfloat t GLfloat p GLfloat q GLfloat x GLfloat y GLfloat z GLfloat w void glTexCoord4fVertex4fvSUN const GLfloat *tc const GLfloat *v void glTexCoord4fv const GLfloat *v void glTexCoord4hNV GLhalfNV s GLhalfNV t GLhalfNV r GLhalfNV q void glTexCoord4hvNV const GLhalfNV *v void glTexCoord4i GLint s GLint t GLint r GLint q void glTexCoord4iv const GLint *v void glTexCoord4s GLshort s GLshort t GLshort r GLshort q void glTexCoord4sv const GLshort *v void glTexCoord4xOES GLfixed s GLfixed t GLfixed r GLfixed q void glTexCoord4xvOES const GLfixed *coords void glTexCoordFormatNV GLint size GLenum type GLsizei stride void glTexCoordP1ui GLenum type GLuint coords void glTexCoordP1uiv GLenum type const GLuint *coords void glTexCoordP2ui GLenum type GLuint coords void glTexCoordP2uiv GLenum type const GLuint *coords void glTexCoordP3ui GLenum type GLuint coords void glTexCoordP3uiv GLenum type const GLuint *coords void glTexCoordP4ui GLenum type GLuint coords void glTexCoordP4uiv GLenum type const GLuint *coords void glTexCoordPointer GLint size GLenum type GLsizei stride const void *pointer void glTexCoordPointerEXT GLint size GLenum type GLsizei stride GLsizei count const void *pointer void glTexCoordPointerListIBM GLint size GLenum type GLint stride const void **pointer GLint ptrstride void glTexCoordPointervINTEL GLint size GLenum type const void **pointer void glTexEnvf GLenum target GLenum pname GLfloat param void glTexEnvfv GLenum target GLenum pname const GLfloat *params void glTexEnvi GLenum target GLenum pname GLint param void glTexEnviv GLenum target GLenum pname const GLint *params void glTexEnvx GLenum target GLenum pname GLfixed param void glTexEnvxOES GLenum target GLenum pname GLfixed param void glTexEnvxv GLenum target GLenum pname const GLfixed *params void glTexEnvxvOES GLenum target GLenum pname const GLfixed *params void glTexFilterFuncSGIS GLenum target GLenum filter GLsizei n const GLfloat *weights void glTexGend GLenum coord GLenum pname GLdouble param void glTexGendv GLenum coord GLenum pname const GLdouble *params void glTexGenf GLenum coord GLenum pname GLfloat param void glTexGenfOES GLenum coord GLenum pname GLfloat param void glTexGenfv GLenum coord GLenum pname const GLfloat *params void glTexGenfvOES GLenum coord GLenum pname const GLfloat *params void glTexGeni GLenum coord GLenum pname GLint param void glTexGeniOES GLenum coord GLenum pname GLint param void glTexGeniv GLenum coord GLenum pname const GLint *params void glTexGenivOES GLenum coord GLenum pname const GLint *params void glTexGenxOES GLenum coord GLenum pname GLfixed param void glTexGenxvOES GLenum coord GLenum pname const GLfixed *params void glTexImage1D GLenum target GLint level GLint internalformat GLsizei width GLint border GLenum format GLenum type const void *pixels void glTexImage2D GLenum target GLint level GLint internalformat GLsizei width GLsizei height GLint border GLenum format GLenum type const void *pixels void glTexImage2DMultisample GLenum target GLsizei samples GLenum internalformat GLsizei width GLsizei height GLboolean fixedsamplelocations void glTexImage2DMultisampleCoverageNV GLenum target GLsizei coverageSamples GLsizei colorSamples GLint internalFormat GLsizei width GLsizei height GLboolean fixedSampleLocations void glTexImage3D GLenum target GLint level GLint internalformat GLsizei width GLsizei height GLsizei depth GLint border GLenum format GLenum type const void *pixels void glTexImage3DEXT GLenum target GLint level GLenum internalformat GLsizei width GLsizei height GLsizei depth GLint border GLenum format GLenum type const void *pixels void glTexImage3DMultisample GLenum target GLsizei samples GLenum internalformat GLsizei width GLsizei height GLsizei depth GLboolean fixedsamplelocations void glTexImage3DMultisampleCoverageNV GLenum target GLsizei coverageSamples GLsizei colorSamples GLint internalFormat GLsizei width GLsizei height GLsizei depth GLboolean fixedSampleLocations void glTexImage3DOES GLenum target GLint level GLenum internalformat GLsizei width GLsizei height GLsizei depth GLint border GLenum format GLenum type const void *pixels void glTexImage4DSGIS GLenum target GLint level GLenum internalformat GLsizei width GLsizei height GLsizei depth GLsizei size4d GLint border GLenum format GLenum type const void *pixels void glTexPageCommitmentARB GLenum target GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLboolean commit void glTexPageCommitmentEXT GLenum target GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLboolean commit void glTexParameterIiv GLenum target GLenum pname const GLint *params void glTexParameterIivEXT GLenum target GLenum pname const GLint *params void glTexParameterIivOES GLenum target GLenum pname const GLint *params void glTexParameterIuiv GLenum target GLenum pname const GLuint *params void glTexParameterIuivEXT GLenum target GLenum pname const GLuint *params void glTexParameterIuivOES GLenum target GLenum pname const GLuint *params void glTexParameterf GLenum target GLenum pname GLfloat param void glTexParameterfv GLenum target GLenum pname const GLfloat *params void glTexParameteri GLenum target GLenum pname GLint param void glTexParameteriv GLenum target GLenum pname const GLint *params void glTexParameterx GLenum target GLenum pname GLfixed param void glTexParameterxOES GLenum target GLenum pname GLfixed param void glTexParameterxv GLenum target GLenum pname const GLfixed *params void glTexParameterxvOES GLenum target GLenum pname const GLfixed *params void glTexRenderbufferNV GLenum target GLuint renderbuffer void glTexStorage1D GLenum target GLsizei levels GLenum internalformat GLsizei width void glTexStorage1DEXT GLenum target GLsizei levels GLenum internalformat GLsizei width void glTexStorage2D GLenum target GLsizei levels GLenum internalformat GLsizei width GLsizei height void glTexStorage2DEXT GLenum target GLsizei levels GLenum internalformat GLsizei width GLsizei height void glTexStorage2DMultisample GLenum target GLsizei samples GLenum internalformat GLsizei width GLsizei height GLboolean fixedsamplelocations void glTexStorage3D GLenum target GLsizei levels GLenum internalformat GLsizei width GLsizei height GLsizei depth void glTexStorage3DEXT GLenum target GLsizei levels GLenum internalformat GLsizei width GLsizei height GLsizei depth void glTexStorage3DMultisample GLenum target GLsizei samples GLenum internalformat GLsizei width GLsizei height GLsizei depth GLboolean fixedsamplelocations void glTexStorage3DMultisampleOES GLenum target GLsizei samples GLenum internalformat GLsizei width GLsizei height GLsizei depth GLboolean fixedsamplelocations void glTexStorageMem1DEXT GLenum target GLsizei levels GLenum internalFormat GLsizei width GLuint memory GLuint64 offset void glTexStorageMem2DEXT GLenum target GLsizei levels GLenum internalFormat GLsizei width GLsizei height GLuint memory GLuint64 offset void glTexStorageMem2DMultisampleEXT GLenum target GLsizei samples GLenum internalFormat GLsizei width GLsizei height GLboolean fixedSampleLocations GLuint memory GLuint64 offset void glTexStorageMem3DEXT GLenum target GLsizei levels GLenum internalFormat GLsizei width GLsizei height GLsizei depth GLuint memory GLuint64 offset void glTexStorageMem3DMultisampleEXT GLenum target GLsizei samples GLenum internalFormat GLsizei width GLsizei height GLsizei depth GLboolean fixedSampleLocations GLuint memory GLuint64 offset void glTexStorageSparseAMD GLenum target GLenum internalFormat GLsizei width GLsizei height GLsizei depth GLsizei layers GLbitfield flags void glTexSubImage1D GLenum target GLint level GLint xoffset GLsizei width GLenum format GLenum type const void *pixels void glTexSubImage1DEXT GLenum target GLint level GLint xoffset GLsizei width GLenum format GLenum type const void *pixels void glTexSubImage2D GLenum target GLint level GLint xoffset GLint yoffset GLsizei width GLsizei height GLenum format GLenum type const void *pixels void glTexSubImage2DEXT GLenum target GLint level GLint xoffset GLint yoffset GLsizei width GLsizei height 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 glTexSubImage3DEXT GLenum target GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLenum format GLenum type const void *pixels void glTexSubImage3DOES GLenum target GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLenum format GLenum type const void *pixels void glTexSubImage4DSGIS GLenum target GLint level GLint xoffset GLint yoffset GLint zoffset GLint woffset GLsizei width GLsizei height GLsizei depth GLsizei size4d GLenum format GLenum type const void *pixels void glTextureAttachMemoryNV GLuint texture GLuint memory GLuint64 offset void glTextureBarrier void glTextureBarrierNV void glTextureBuffer GLuint texture GLenum internalformat GLuint buffer void glTextureBufferEXT GLuint texture GLenum target GLenum internalformat GLuint buffer void glTextureBufferRange GLuint texture GLenum internalformat GLuint buffer GLintptr offset GLsizeiptr size void glTextureBufferRangeEXT GLuint texture GLenum target GLenum internalformat GLuint buffer GLintptr offset GLsizeiptr size void glTextureColorMaskSGIS GLboolean red GLboolean green GLboolean blue GLboolean alpha void glTextureFoveationParametersQCOM GLuint texture GLuint layer GLuint focalPoint GLfloat focalX GLfloat focalY GLfloat gainX GLfloat gainY GLfloat foveaArea void glTextureImage1DEXT GLuint texture GLenum target GLint level GLint internalformat GLsizei width GLint border GLenum format GLenum type const void *pixels void glTextureImage2DEXT GLuint texture GLenum target GLint level GLint internalformat GLsizei width GLsizei height GLint border GLenum format GLenum type const void *pixels void glTextureImage2DMultisampleCoverageNV GLuint texture GLenum target GLsizei coverageSamples GLsizei colorSamples GLint internalFormat GLsizei width GLsizei height GLboolean fixedSampleLocations void glTextureImage2DMultisampleNV GLuint texture GLenum target GLsizei samples GLint internalFormat GLsizei width GLsizei height GLboolean fixedSampleLocations void glTextureImage3DEXT GLuint texture GLenum target GLint level GLint internalformat GLsizei width GLsizei height GLsizei depth GLint border GLenum format GLenum type const void *pixels void glTextureImage3DMultisampleCoverageNV GLuint texture GLenum target GLsizei coverageSamples GLsizei colorSamples GLint internalFormat GLsizei width GLsizei height GLsizei depth GLboolean fixedSampleLocations void glTextureImage3DMultisampleNV GLuint texture GLenum target GLsizei samples GLint internalFormat GLsizei width GLsizei height GLsizei depth GLboolean fixedSampleLocations void glTextureLightEXT GLenum pname void glTextureMaterialEXT GLenum face GLenum mode void glTextureNormalEXT GLenum mode void glTexturePageCommitmentEXT GLuint texture GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLboolean commit void glTextureParameterIiv GLuint texture GLenum pname const GLint *params void glTextureParameterIivEXT GLuint texture GLenum target GLenum pname const GLint *params void glTextureParameterIuiv GLuint texture GLenum pname const GLuint *params void glTextureParameterIuivEXT GLuint texture GLenum target GLenum pname const GLuint *params void glTextureParameterf GLuint texture GLenum pname GLfloat param void glTextureParameterfEXT GLuint texture GLenum target GLenum pname GLfloat param void glTextureParameterfv GLuint texture GLenum pname const GLfloat *param void glTextureParameterfvEXT GLuint texture GLenum target GLenum pname const GLfloat *params void glTextureParameteri GLuint texture GLenum pname GLint param void glTextureParameteriEXT GLuint texture GLenum target GLenum pname GLint param void glTextureParameteriv GLuint texture GLenum pname const GLint *param void glTextureParameterivEXT GLuint texture GLenum target GLenum pname const GLint *params void glTextureRangeAPPLE GLenum target GLsizei length const void *pointer void glTextureRenderbufferEXT GLuint texture GLenum target GLuint renderbuffer void glTextureStorage1D GLuint texture GLsizei levels GLenum internalformat GLsizei width void glTextureStorage1DEXT GLuint texture GLenum target GLsizei levels GLenum internalformat GLsizei width void glTextureStorage2D GLuint texture GLsizei levels GLenum internalformat GLsizei width GLsizei height void glTextureStorage2DEXT GLuint texture GLenum target GLsizei levels GLenum internalformat GLsizei width GLsizei height void glTextureStorage2DMultisample GLuint texture GLsizei samples GLenum internalformat GLsizei width GLsizei height GLboolean fixedsamplelocations void glTextureStorage2DMultisampleEXT GLuint texture GLenum target GLsizei samples GLenum internalformat GLsizei width GLsizei height GLboolean fixedsamplelocations void glTextureStorage3D GLuint texture GLsizei levels GLenum internalformat GLsizei width GLsizei height GLsizei depth void glTextureStorage3DEXT GLuint texture GLenum target GLsizei levels GLenum internalformat GLsizei width GLsizei height GLsizei depth void glTextureStorage3DMultisample GLuint texture GLsizei samples GLenum internalformat GLsizei width GLsizei height GLsizei depth GLboolean fixedsamplelocations void glTextureStorage3DMultisampleEXT GLuint texture GLenum target GLsizei samples GLenum internalformat GLsizei width GLsizei height GLsizei depth GLboolean fixedsamplelocations void glTextureStorageMem1DEXT GLuint texture GLsizei levels GLenum internalFormat GLsizei width GLuint memory GLuint64 offset void glTextureStorageMem2DEXT GLuint texture GLsizei levels GLenum internalFormat GLsizei width GLsizei height GLuint memory GLuint64 offset void glTextureStorageMem2DMultisampleEXT GLuint texture GLsizei samples GLenum internalFormat GLsizei width GLsizei height GLboolean fixedSampleLocations GLuint memory GLuint64 offset void glTextureStorageMem3DEXT GLuint texture GLsizei levels GLenum internalFormat GLsizei width GLsizei height GLsizei depth GLuint memory GLuint64 offset void glTextureStorageMem3DMultisampleEXT GLuint texture GLsizei samples GLenum internalFormat GLsizei width GLsizei height GLsizei depth GLboolean fixedSampleLocations GLuint memory GLuint64 offset void glTextureStorageSparseAMD GLuint texture GLenum target GLenum internalFormat GLsizei width GLsizei height GLsizei depth GLsizei layers GLbitfield flags void glTextureSubImage1D GLuint texture GLint level GLint xoffset GLsizei width GLenum format GLenum type const void *pixels void glTextureSubImage1DEXT GLuint texture GLenum target GLint level GLint xoffset GLsizei width GLenum format GLenum type const void *pixels void glTextureSubImage2D GLuint texture GLint level GLint xoffset GLint yoffset GLsizei width GLsizei height GLenum format GLenum type const void *pixels void glTextureSubImage2DEXT GLuint texture GLenum target GLint level GLint xoffset GLint yoffset GLsizei width GLsizei height GLenum format GLenum type const void *pixels void glTextureSubImage3D GLuint texture GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLenum format GLenum type const void *pixels void glTextureSubImage3DEXT GLuint texture GLenum target GLint level GLint xoffset GLint yoffset GLint zoffset GLsizei width GLsizei height GLsizei depth GLenum format GLenum type const void *pixels void glTextureView GLuint texture GLenum target GLuint origtexture GLenum internalformat GLuint minlevel GLuint numlevels GLuint minlayer GLuint numlayers void glTextureViewEXT GLuint texture GLenum target GLuint origtexture GLenum internalformat GLuint minlevel GLuint numlevels GLuint minlayer GLuint numlayers void glTextureViewOES GLuint texture GLenum target GLuint origtexture GLenum internalformat GLuint minlevel GLuint numlevels GLuint minlayer GLuint numlayers void glTrackMatrixNV GLenum target GLuint address GLenum matrix GLenum transform void glTransformFeedbackAttribsNV GLsizei count const GLint *attribs GLenum bufferMode void glTransformFeedbackBufferBase GLuint xfb GLuint index GLuint buffer void glTransformFeedbackBufferRange GLuint xfb GLuint index GLuint buffer GLintptr offset GLsizeiptr size void glTransformFeedbackStreamAttribsNV GLsizei count const GLint *attribs GLsizei nbuffers const GLint *bufstreams GLenum bufferMode void glTransformFeedbackVaryings GLuint program GLsizei count const GLchar *const*varyings GLenum bufferMode void glTransformFeedbackVaryingsEXT GLuint program GLsizei count const GLchar *const*varyings GLenum bufferMode void glTransformFeedbackVaryingsNV GLuint program GLsizei count const GLint *locations GLenum bufferMode void glTransformPathNV GLuint resultPath GLuint srcPath GLenum transformType const GLfloat *transformValues void glTranslated GLdouble x GLdouble y GLdouble z void glTranslatef GLfloat x GLfloat y GLfloat z void glTranslatex GLfixed x GLfixed y GLfixed z void glTranslatexOES GLfixed x GLfixed y GLfixed z void glUniform1d GLint location GLdouble x void glUniform1dv GLint location GLsizei count const GLdouble *value void glUniform1f GLint location GLfloat v0 void glUniform1fARB GLint location GLfloat v0 void glUniform1fv GLint location GLsizei count const GLfloat *value void glUniform1fvARB GLint location GLsizei count const GLfloat *value void glUniform1i GLint location GLint v0 void glUniform1i64ARB GLint location GLint64 x void glUniform1i64NV GLint location GLint64EXT x void glUniform1i64vARB GLint location GLsizei count const GLint64 *value void glUniform1i64vNV GLint location GLsizei count const GLint64EXT *value void glUniform1iARB GLint location GLint v0 void glUniform1iv GLint location GLsizei count const GLint *value void glUniform1ivARB GLint location GLsizei count const GLint *value void glUniform1ui GLint location GLuint v0 void glUniform1ui64ARB GLint location GLuint64 x void glUniform1ui64NV GLint location GLuint64EXT x void glUniform1ui64vARB GLint location GLsizei count const GLuint64 *value void glUniform1ui64vNV GLint location GLsizei count const GLuint64EXT *value void glUniform1uiEXT GLint location GLuint v0 void glUniform1uiv GLint location GLsizei count const GLuint *value void glUniform1uivEXT GLint location GLsizei count const GLuint *value void glUniform2d GLint location GLdouble x GLdouble y void glUniform2dv GLint location GLsizei count const GLdouble *value void glUniform2f GLint location GLfloat v0 GLfloat v1 void glUniform2fARB GLint location GLfloat v0 GLfloat v1 void glUniform2fv GLint location GLsizei count const GLfloat *value void glUniform2fvARB GLint location GLsizei count const GLfloat *value void glUniform2i GLint location GLint v0 GLint v1 void glUniform2i64ARB GLint location GLint64 x GLint64 y void glUniform2i64NV GLint location GLint64EXT x GLint64EXT y void glUniform2i64vARB GLint location GLsizei count const GLint64 *value void glUniform2i64vNV GLint location GLsizei count const GLint64EXT *value void glUniform2iARB GLint location GLint v0 GLint v1 void glUniform2iv GLint location GLsizei count const GLint *value void glUniform2ivARB GLint location GLsizei count const GLint *value void glUniform2ui GLint location GLuint v0 GLuint v1 void glUniform2ui64ARB GLint location GLuint64 x GLuint64 y void glUniform2ui64NV GLint location GLuint64EXT x GLuint64EXT y void glUniform2ui64vARB GLint location GLsizei count const GLuint64 *value void glUniform2ui64vNV GLint location GLsizei count const GLuint64EXT *value void glUniform2uiEXT GLint location GLuint v0 GLuint v1 void glUniform2uiv GLint location GLsizei count const GLuint *value void glUniform2uivEXT GLint location GLsizei count const GLuint *value void glUniform3d GLint location GLdouble x GLdouble y GLdouble z void glUniform3dv GLint location GLsizei count const GLdouble *value void glUniform3f GLint location GLfloat v0 GLfloat v1 GLfloat v2 void glUniform3fARB GLint location GLfloat v0 GLfloat v1 GLfloat v2 void glUniform3fv GLint location GLsizei count const GLfloat *value void glUniform3fvARB GLint location GLsizei count const GLfloat *value void glUniform3i GLint location GLint v0 GLint v1 GLint v2 void glUniform3i64ARB GLint location GLint64 x GLint64 y GLint64 z void glUniform3i64NV GLint location GLint64EXT x GLint64EXT y GLint64EXT z void glUniform3i64vARB GLint location GLsizei count const GLint64 *value void glUniform3i64vNV GLint location GLsizei count const GLint64EXT *value void glUniform3iARB GLint location GLint v0 GLint v1 GLint v2 void glUniform3iv GLint location GLsizei count const GLint *value void glUniform3ivARB GLint location GLsizei count const GLint *value void glUniform3ui GLint location GLuint v0 GLuint v1 GLuint v2 void glUniform3ui64ARB GLint location GLuint64 x GLuint64 y GLuint64 z void glUniform3ui64NV GLint location GLuint64EXT x GLuint64EXT y GLuint64EXT z void glUniform3ui64vARB GLint location GLsizei count const GLuint64 *value void glUniform3ui64vNV GLint location GLsizei count const GLuint64EXT *value void glUniform3uiEXT GLint location GLuint v0 GLuint v1 GLuint v2 void glUniform3uiv GLint location GLsizei count const GLuint *value void glUniform3uivEXT GLint location GLsizei count const GLuint *value void glUniform4d GLint location GLdouble x GLdouble y GLdouble z GLdouble w void glUniform4dv GLint location GLsizei count const GLdouble *value void glUniform4f GLint location GLfloat v0 GLfloat v1 GLfloat v2 GLfloat v3 void glUniform4fARB GLint location GLfloat v0 GLfloat v1 GLfloat v2 GLfloat v3 void glUniform4fv GLint location GLsizei count const GLfloat *value void glUniform4fvARB GLint location GLsizei count const GLfloat *value void glUniform4i GLint location GLint v0 GLint v1 GLint v2 GLint v3 void glUniform4i64ARB GLint location GLint64 x GLint64 y GLint64 z GLint64 w void glUniform4i64NV GLint location GLint64EXT x GLint64EXT y GLint64EXT z GLint64EXT w void glUniform4i64vARB GLint location GLsizei count const GLint64 *value void glUniform4i64vNV GLint location GLsizei count const GLint64EXT *value void glUniform4iARB GLint location GLint v0 GLint v1 GLint v2 GLint v3 void glUniform4iv GLint location GLsizei count const GLint *value void glUniform4ivARB GLint location GLsizei count const GLint *value void glUniform4ui GLint location GLuint v0 GLuint v1 GLuint v2 GLuint v3 void glUniform4ui64ARB GLint location GLuint64 x GLuint64 y GLuint64 z GLuint64 w void glUniform4ui64NV GLint location GLuint64EXT x GLuint64EXT y GLuint64EXT z GLuint64EXT w void glUniform4ui64vARB GLint location GLsizei count const GLuint64 *value void glUniform4ui64vNV GLint location GLsizei count const GLuint64EXT *value void glUniform4uiEXT GLint location GLuint v0 GLuint v1 GLuint v2 GLuint v3 void glUniform4uiv GLint location GLsizei count const GLuint *value void glUniform4uivEXT GLint location GLsizei count const GLuint *value void glUniformBlockBinding GLuint program GLuint uniformBlockIndex GLuint uniformBlockBinding void glUniformBufferEXT GLuint program GLint location GLuint buffer void glUniformHandleui64ARB GLint location GLuint64 value void glUniformHandleui64IMG GLint location GLuint64 value void glUniformHandleui64NV GLint location GLuint64 value void glUniformHandleui64vARB GLint location GLsizei count const GLuint64 *value void glUniformHandleui64vIMG GLint location GLsizei count const GLuint64 *value void glUniformHandleui64vNV GLint location GLsizei count const GLuint64 *value void glUniformMatrix2dv GLint location GLsizei count GLboolean transpose const GLdouble *value void glUniformMatrix2fv GLint location GLsizei count GLboolean transpose const GLfloat *value void glUniformMatrix2fvARB GLint location GLsizei count GLboolean transpose const GLfloat *value void glUniformMatrix2x3dv GLint location GLsizei count GLboolean transpose const GLdouble *value void glUniformMatrix2x3fv GLint location GLsizei count GLboolean transpose const GLfloat *value void glUniformMatrix2x3fvNV GLint location GLsizei count GLboolean transpose const GLfloat *value void glUniformMatrix2x4dv GLint location GLsizei count GLboolean transpose const GLdouble *value void glUniformMatrix2x4fv GLint location GLsizei count GLboolean transpose const GLfloat *value void glUniformMatrix2x4fvNV GLint location GLsizei count GLboolean transpose const GLfloat *value void glUniformMatrix3dv GLint location GLsizei count GLboolean transpose const GLdouble *value void glUniformMatrix3fv GLint location GLsizei count GLboolean transpose const GLfloat *value void glUniformMatrix3fvARB GLint location GLsizei count GLboolean transpose const GLfloat *value void glUniformMatrix3x2dv GLint location GLsizei count GLboolean transpose const GLdouble *value void glUniformMatrix3x2fv GLint location GLsizei count GLboolean transpose const GLfloat *value void glUniformMatrix3x2fvNV GLint location GLsizei count GLboolean transpose const GLfloat *value void glUniformMatrix3x4dv GLint location GLsizei count GLboolean transpose const GLdouble *value void glUniformMatrix3x4fv GLint location GLsizei count GLboolean transpose const GLfloat *value void glUniformMatrix3x4fvNV GLint location GLsizei count GLboolean transpose const GLfloat *value void glUniformMatrix4dv GLint location GLsizei count GLboolean transpose const GLdouble *value void glUniformMatrix4fv GLint location GLsizei count GLboolean transpose const GLfloat *value void glUniformMatrix4fvARB GLint location GLsizei count GLboolean transpose const GLfloat *value void glUniformMatrix4x2dv GLint location GLsizei count GLboolean transpose const GLdouble *value void glUniformMatrix4x2fv GLint location GLsizei count GLboolean transpose const GLfloat *value void glUniformMatrix4x2fvNV GLint location GLsizei count GLboolean transpose const GLfloat *value void glUniformMatrix4x3dv GLint location GLsizei count GLboolean transpose const GLdouble *value void glUniformMatrix4x3fv GLint location GLsizei count GLboolean transpose const GLfloat *value void glUniformMatrix4x3fvNV GLint location GLsizei count GLboolean transpose const GLfloat *value void glUniformSubroutinesuiv GLenum shadertype GLsizei count const GLuint *indices void glUniformui64NV GLint location GLuint64EXT value void glUniformui64vNV GLint location GLsizei count const GLuint64EXT *value void glUnlockArraysEXT GLboolean glUnmapBuffer GLenum target GLboolean glUnmapBufferARB GLenum target GLboolean glUnmapBufferOES GLenum target GLboolean glUnmapNamedBuffer GLuint buffer GLboolean glUnmapNamedBufferEXT GLuint buffer void glUnmapObjectBufferATI GLuint buffer void glUnmapTexture2DINTEL GLuint texture GLint level void glUpdateObjectBufferATI GLuint buffer GLuint offset GLsizei size const void *pointer GLenum preserve void glUseProgram GLuint program void glUseProgramObjectARB GLhandleARB programObj void glUseProgramStages GLuint pipeline GLbitfield stages GLuint program void glUseProgramStagesEXT GLuint pipeline GLbitfield stages GLuint program void glUseShaderProgramEXT GLenum type GLuint program void glVDPAUFiniNV void glVDPAUGetSurfaceivNV GLvdpauSurfaceNV surface GLenum pname GLsizei bufSize GLsizei *length GLint *values void glVDPAUInitNV const void *vdpDevice const void *getProcAddress GLboolean glVDPAUIsSurfaceNV GLvdpauSurfaceNV surface void glVDPAUMapSurfacesNV GLsizei numSurfaces const GLvdpauSurfaceNV *surfaces GLvdpauSurfaceNV glVDPAURegisterOutputSurfaceNV const void *vdpSurface GLenum target GLsizei numTextureNames const GLuint *textureNames GLvdpauSurfaceNV glVDPAURegisterVideoSurfaceNV const void *vdpSurface GLenum target GLsizei numTextureNames const GLuint *textureNames GLvdpauSurfaceNV glVDPAURegisterVideoSurfaceWithPictureStructureNV const void *vdpSurface GLenum target GLsizei numTextureNames const GLuint *textureNames GLboolean isFrameStructure void glVDPAUSurfaceAccessNV GLvdpauSurfaceNV surface GLenum access void glVDPAUUnmapSurfacesNV GLsizei numSurface const GLvdpauSurfaceNV *surfaces void glVDPAUUnregisterSurfaceNV GLvdpauSurfaceNV surface void glValidateProgram GLuint program void glValidateProgramARB GLhandleARB programObj void glValidateProgramPipeline GLuint pipeline void glValidateProgramPipelineEXT GLuint pipeline void glVariantArrayObjectATI GLuint id GLenum type GLsizei stride GLuint buffer GLuint offset void glVariantPointerEXT GLuint id GLenum type GLuint stride const void *addr void glVariantbvEXT GLuint id const GLbyte *addr void glVariantdvEXT GLuint id const GLdouble *addr void glVariantfvEXT GLuint id const GLfloat *addr void glVariantivEXT GLuint id const GLint *addr void glVariantsvEXT GLuint id const GLshort *addr void glVariantubvEXT GLuint id const GLubyte *addr void glVariantuivEXT GLuint id const GLuint *addr void glVariantusvEXT GLuint id const GLushort *addr void glVertex2bOES GLbyte x GLbyte y void glVertex2bvOES const GLbyte *coords void glVertex2d GLdouble x GLdouble y void glVertex2dv const GLdouble *v void glVertex2f GLfloat x GLfloat y void glVertex2fv const GLfloat *v void glVertex2hNV GLhalfNV x GLhalfNV y void glVertex2hvNV const GLhalfNV *v void glVertex2i GLint x GLint y void glVertex2iv const GLint *v void glVertex2s GLshort x GLshort y void glVertex2sv const GLshort *v void glVertex2xOES GLfixed x void glVertex2xvOES const GLfixed *coords void glVertex3bOES GLbyte x GLbyte y GLbyte z void glVertex3bvOES const GLbyte *coords void glVertex3d GLdouble x GLdouble y GLdouble z void glVertex3dv const GLdouble *v void glVertex3f GLfloat x GLfloat y GLfloat z void glVertex3fv const GLfloat *v void glVertex3hNV GLhalfNV x GLhalfNV y GLhalfNV z void glVertex3hvNV const GLhalfNV *v void glVertex3i GLint x GLint y GLint z void glVertex3iv const GLint *v void glVertex3s GLshort x GLshort y GLshort z void glVertex3sv const GLshort *v void glVertex3xOES GLfixed x GLfixed y void glVertex3xvOES const GLfixed *coords void glVertex4bOES GLbyte x GLbyte y GLbyte z GLbyte w void glVertex4bvOES const GLbyte *coords void glVertex4d GLdouble x GLdouble y GLdouble z GLdouble w void glVertex4dv const GLdouble *v void glVertex4f GLfloat x GLfloat y GLfloat z GLfloat w void glVertex4fv const GLfloat *v void glVertex4hNV GLhalfNV x GLhalfNV y GLhalfNV z GLhalfNV w void glVertex4hvNV const GLhalfNV *v void glVertex4i GLint x GLint y GLint z GLint w void glVertex4iv const GLint *v void glVertex4s GLshort x GLshort y GLshort z GLshort w void glVertex4sv const GLshort *v void glVertex4xOES GLfixed x GLfixed y GLfixed z void glVertex4xvOES const GLfixed *coords void glVertexArrayAttribBinding GLuint vaobj GLuint attribindex GLuint bindingindex void glVertexArrayAttribFormat GLuint vaobj GLuint attribindex GLint size GLenum type GLboolean normalized GLuint relativeoffset void glVertexArrayAttribIFormat GLuint vaobj GLuint attribindex GLint size GLenum type GLuint relativeoffset void glVertexArrayAttribLFormat GLuint vaobj GLuint attribindex GLint size GLenum type GLuint relativeoffset void glVertexArrayBindVertexBufferEXT GLuint vaobj GLuint bindingindex GLuint buffer GLintptr offset GLsizei stride void glVertexArrayBindingDivisor GLuint vaobj GLuint bindingindex GLuint divisor void glVertexArrayColorOffsetEXT GLuint vaobj GLuint buffer GLint size GLenum type GLsizei stride GLintptr offset void glVertexArrayEdgeFlagOffsetEXT GLuint vaobj GLuint buffer GLsizei stride GLintptr offset void glVertexArrayElementBuffer GLuint vaobj GLuint buffer void glVertexArrayFogCoordOffsetEXT GLuint vaobj GLuint buffer GLenum type GLsizei stride GLintptr offset void glVertexArrayIndexOffsetEXT GLuint vaobj GLuint buffer GLenum type GLsizei stride GLintptr offset void glVertexArrayMultiTexCoordOffsetEXT GLuint vaobj GLuint buffer GLenum texunit GLint size GLenum type GLsizei stride GLintptr offset void glVertexArrayNormalOffsetEXT GLuint vaobj GLuint buffer GLenum type GLsizei stride GLintptr offset void glVertexArrayParameteriAPPLE GLenum pname GLint param void glVertexArrayRangeAPPLE GLsizei length void *pointer void glVertexArrayRangeNV GLsizei length const void *pointer void glVertexArraySecondaryColorOffsetEXT GLuint vaobj GLuint buffer GLint size GLenum type GLsizei stride GLintptr offset void glVertexArrayTexCoordOffsetEXT GLuint vaobj GLuint buffer GLint size GLenum type GLsizei stride GLintptr offset void glVertexArrayVertexAttribBindingEXT GLuint vaobj GLuint attribindex GLuint bindingindex void glVertexArrayVertexAttribDivisorEXT GLuint vaobj GLuint index GLuint divisor void glVertexArrayVertexAttribFormatEXT GLuint vaobj GLuint attribindex GLint size GLenum type GLboolean normalized GLuint relativeoffset void glVertexArrayVertexAttribIFormatEXT GLuint vaobj GLuint attribindex GLint size GLenum type GLuint relativeoffset void glVertexArrayVertexAttribIOffsetEXT GLuint vaobj GLuint buffer GLuint index GLint size GLenum type GLsizei stride GLintptr offset void glVertexArrayVertexAttribLFormatEXT GLuint vaobj GLuint attribindex GLint size GLenum type GLuint relativeoffset void glVertexArrayVertexAttribLOffsetEXT GLuint vaobj GLuint buffer GLuint index GLint size GLenum type GLsizei stride GLintptr offset void glVertexArrayVertexAttribOffsetEXT GLuint vaobj GLuint buffer GLuint index GLint size GLenum type GLboolean normalized GLsizei stride GLintptr offset void glVertexArrayVertexBindingDivisorEXT GLuint vaobj GLuint bindingindex GLuint divisor void glVertexArrayVertexBuffer GLuint vaobj GLuint bindingindex GLuint buffer GLintptr offset GLsizei stride void glVertexArrayVertexBuffers GLuint vaobj GLuint first GLsizei count const GLuint *buffers const GLintptr *offsets const GLsizei *strides void glVertexArrayVertexOffsetEXT GLuint vaobj GLuint buffer GLint size GLenum type GLsizei stride GLintptr offset void glVertexAttrib1d GLuint index GLdouble x void glVertexAttrib1dARB GLuint index GLdouble x void glVertexAttrib1dNV GLuint index GLdouble x void glVertexAttrib1dv GLuint index const GLdouble *v void glVertexAttrib1dvARB GLuint index const GLdouble *v void glVertexAttrib1dvNV GLuint index const GLdouble *v void glVertexAttrib1f GLuint index GLfloat x void glVertexAttrib1fARB GLuint index GLfloat x void glVertexAttrib1fNV GLuint index GLfloat x void glVertexAttrib1fv GLuint index const GLfloat *v void glVertexAttrib1fvARB GLuint index const GLfloat *v void glVertexAttrib1fvNV GLuint index const GLfloat *v void glVertexAttrib1hNV GLuint index GLhalfNV x void glVertexAttrib1hvNV GLuint index const GLhalfNV *v void glVertexAttrib1s GLuint index GLshort x void glVertexAttrib1sARB GLuint index GLshort x void glVertexAttrib1sNV GLuint index GLshort x void glVertexAttrib1sv GLuint index const GLshort *v void glVertexAttrib1svARB GLuint index const GLshort *v void glVertexAttrib1svNV GLuint index const GLshort *v void glVertexAttrib2d GLuint index GLdouble x GLdouble y void glVertexAttrib2dARB GLuint index GLdouble x GLdouble y void glVertexAttrib2dNV GLuint index GLdouble x GLdouble y void glVertexAttrib2dv GLuint index const GLdouble *v void glVertexAttrib2dvARB GLuint index const GLdouble *v void glVertexAttrib2dvNV GLuint index const GLdouble *v void glVertexAttrib2f GLuint index GLfloat x GLfloat y void glVertexAttrib2fARB GLuint index GLfloat x GLfloat y void glVertexAttrib2fNV GLuint index GLfloat x GLfloat y void glVertexAttrib2fv GLuint index const GLfloat *v void glVertexAttrib2fvARB GLuint index const GLfloat *v void glVertexAttrib2fvNV GLuint index const GLfloat *v void glVertexAttrib2hNV GLuint index GLhalfNV x GLhalfNV y void glVertexAttrib2hvNV GLuint index const GLhalfNV *v void glVertexAttrib2s GLuint index GLshort x GLshort y void glVertexAttrib2sARB GLuint index GLshort x GLshort y void glVertexAttrib2sNV GLuint index GLshort x GLshort y void glVertexAttrib2sv GLuint index const GLshort *v void glVertexAttrib2svARB GLuint index const GLshort *v void glVertexAttrib2svNV GLuint index const GLshort *v void glVertexAttrib3d GLuint index GLdouble x GLdouble y GLdouble z void glVertexAttrib3dARB GLuint index GLdouble x GLdouble y GLdouble z void glVertexAttrib3dNV GLuint index GLdouble x GLdouble y GLdouble z void glVertexAttrib3dv GLuint index const GLdouble *v void glVertexAttrib3dvARB GLuint index const GLdouble *v void glVertexAttrib3dvNV GLuint index const GLdouble *v void glVertexAttrib3f GLuint index GLfloat x GLfloat y GLfloat z void glVertexAttrib3fARB GLuint index GLfloat x GLfloat y GLfloat z void glVertexAttrib3fNV GLuint index GLfloat x GLfloat y GLfloat z void glVertexAttrib3fv GLuint index const GLfloat *v void glVertexAttrib3fvARB GLuint index const GLfloat *v void glVertexAttrib3fvNV GLuint index const GLfloat *v void glVertexAttrib3hNV GLuint index GLhalfNV x GLhalfNV y GLhalfNV z void glVertexAttrib3hvNV GLuint index const GLhalfNV *v void glVertexAttrib3s GLuint index GLshort x GLshort y GLshort z void glVertexAttrib3sARB GLuint index GLshort x GLshort y GLshort z void glVertexAttrib3sNV GLuint index GLshort x GLshort y GLshort z void glVertexAttrib3sv GLuint index const GLshort *v void glVertexAttrib3svARB GLuint index const GLshort *v void glVertexAttrib3svNV GLuint index const GLshort *v void glVertexAttrib4Nbv GLuint index const GLbyte *v void glVertexAttrib4NbvARB GLuint index const GLbyte *v void glVertexAttrib4Niv GLuint index const GLint *v void glVertexAttrib4NivARB GLuint index const GLint *v void glVertexAttrib4Nsv GLuint index const GLshort *v void glVertexAttrib4NsvARB GLuint index const GLshort *v void glVertexAttrib4Nub GLuint index GLubyte x GLubyte y GLubyte z GLubyte w void glVertexAttrib4NubARB GLuint index GLubyte x GLubyte y GLubyte z GLubyte w void glVertexAttrib4Nubv GLuint index const GLubyte *v void glVertexAttrib4NubvARB GLuint index const GLubyte *v void glVertexAttrib4Nuiv GLuint index const GLuint *v void glVertexAttrib4NuivARB GLuint index const GLuint *v void glVertexAttrib4Nusv GLuint index const GLushort *v void glVertexAttrib4NusvARB GLuint index const GLushort *v void glVertexAttrib4bv GLuint index const GLbyte *v void glVertexAttrib4bvARB GLuint index const GLbyte *v void glVertexAttrib4d GLuint index GLdouble x GLdouble y GLdouble z GLdouble w void glVertexAttrib4dARB GLuint index GLdouble x GLdouble y GLdouble z GLdouble w void glVertexAttrib4dNV GLuint index GLdouble x GLdouble y GLdouble z GLdouble w void glVertexAttrib4dv GLuint index const GLdouble *v void glVertexAttrib4dvARB GLuint index const GLdouble *v void glVertexAttrib4dvNV GLuint index const GLdouble *v void glVertexAttrib4f GLuint index GLfloat x GLfloat y GLfloat z GLfloat w void glVertexAttrib4fARB GLuint index GLfloat x GLfloat y GLfloat z GLfloat w void glVertexAttrib4fNV GLuint index GLfloat x GLfloat y GLfloat z GLfloat w void glVertexAttrib4fv GLuint index const GLfloat *v void glVertexAttrib4fvARB GLuint index const GLfloat *v void glVertexAttrib4fvNV GLuint index const GLfloat *v void glVertexAttrib4hNV GLuint index GLhalfNV x GLhalfNV y GLhalfNV z GLhalfNV w void glVertexAttrib4hvNV GLuint index const GLhalfNV *v void glVertexAttrib4iv GLuint index const GLint *v void glVertexAttrib4ivARB GLuint index const GLint *v void glVertexAttrib4s GLuint index GLshort x GLshort y GLshort z GLshort w void glVertexAttrib4sARB GLuint index GLshort x GLshort y GLshort z GLshort w void glVertexAttrib4sNV GLuint index GLshort x GLshort y GLshort z GLshort w void glVertexAttrib4sv GLuint index const GLshort *v void glVertexAttrib4svARB GLuint index const GLshort *v void glVertexAttrib4svNV GLuint index const GLshort *v void glVertexAttrib4ubNV GLuint index GLubyte x GLubyte y GLubyte z GLubyte w void glVertexAttrib4ubv GLuint index const GLubyte *v void glVertexAttrib4ubvARB GLuint index const GLubyte *v void glVertexAttrib4ubvNV GLuint index const GLubyte *v void glVertexAttrib4uiv GLuint index const GLuint *v void glVertexAttrib4uivARB GLuint index const GLuint *v void glVertexAttrib4usv GLuint index const GLushort *v void glVertexAttrib4usvARB GLuint index const GLushort *v void glVertexAttribArrayObjectATI GLuint index GLint size GLenum type GLboolean normalized GLsizei stride GLuint buffer GLuint offset void glVertexAttribBinding GLuint attribindex GLuint bindingindex void glVertexAttribDivisor GLuint index GLuint divisor void glVertexAttribDivisorANGLE GLuint index GLuint divisor void glVertexAttribDivisorARB GLuint index GLuint divisor void glVertexAttribDivisorEXT GLuint index GLuint divisor void glVertexAttribDivisorNV GLuint index GLuint divisor void glVertexAttribFormat GLuint attribindex GLint size GLenum type GLboolean normalized GLuint relativeoffset void glVertexAttribFormatNV GLuint index GLint size GLenum type GLboolean normalized GLsizei stride void glVertexAttribI1i GLuint index GLint x void glVertexAttribI1iEXT GLuint index GLint x void glVertexAttribI1iv GLuint index const GLint *v void glVertexAttribI1ivEXT GLuint index const GLint *v void glVertexAttribI1ui GLuint index GLuint x void glVertexAttribI1uiEXT GLuint index GLuint x void glVertexAttribI1uiv GLuint index const GLuint *v void glVertexAttribI1uivEXT GLuint index const GLuint *v void glVertexAttribI2i GLuint index GLint x GLint y void glVertexAttribI2iEXT GLuint index GLint x GLint y void glVertexAttribI2iv GLuint index const GLint *v void glVertexAttribI2ivEXT GLuint index const GLint *v void glVertexAttribI2ui GLuint index GLuint x GLuint y void glVertexAttribI2uiEXT GLuint index GLuint x GLuint y void glVertexAttribI2uiv GLuint index const GLuint *v void glVertexAttribI2uivEXT GLuint index const GLuint *v void glVertexAttribI3i GLuint index GLint x GLint y GLint z void glVertexAttribI3iEXT GLuint index GLint x GLint y GLint z void glVertexAttribI3iv GLuint index const GLint *v void glVertexAttribI3ivEXT GLuint index const GLint *v void glVertexAttribI3ui GLuint index GLuint x GLuint y GLuint z void glVertexAttribI3uiEXT GLuint index GLuint x GLuint y GLuint z void glVertexAttribI3uiv GLuint index const GLuint *v void glVertexAttribI3uivEXT GLuint index const GLuint *v void glVertexAttribI4bv GLuint index const GLbyte *v void glVertexAttribI4bvEXT GLuint index const GLbyte *v void glVertexAttribI4i GLuint index GLint x GLint y GLint z GLint w void glVertexAttribI4iEXT GLuint index GLint x GLint y GLint z GLint w void glVertexAttribI4iv GLuint index const GLint *v void glVertexAttribI4ivEXT GLuint index const GLint *v void glVertexAttribI4sv GLuint index const GLshort *v void glVertexAttribI4svEXT GLuint index const GLshort *v void glVertexAttribI4ubv GLuint index const GLubyte *v void glVertexAttribI4ubvEXT GLuint index const GLubyte *v void glVertexAttribI4ui GLuint index GLuint x GLuint y GLuint z GLuint w void glVertexAttribI4uiEXT GLuint index GLuint x GLuint y GLuint z GLuint w void glVertexAttribI4uiv GLuint index const GLuint *v void glVertexAttribI4uivEXT GLuint index const GLuint *v void glVertexAttribI4usv GLuint index const GLushort *v void glVertexAttribI4usvEXT GLuint index const GLushort *v void glVertexAttribIFormat GLuint attribindex GLint size GLenum type GLuint relativeoffset void glVertexAttribIFormatNV GLuint index GLint size GLenum type GLsizei stride void glVertexAttribIPointer GLuint index GLint size GLenum type GLsizei stride const void *pointer void glVertexAttribIPointerEXT GLuint index GLint size GLenum type GLsizei stride const void *pointer void glVertexAttribL1d GLuint index GLdouble x void glVertexAttribL1dEXT GLuint index GLdouble x void glVertexAttribL1dv GLuint index const GLdouble *v void glVertexAttribL1dvEXT GLuint index const GLdouble *v void glVertexAttribL1i64NV GLuint index GLint64EXT x void glVertexAttribL1i64vNV GLuint index const GLint64EXT *v void glVertexAttribL1ui64ARB GLuint index GLuint64EXT x void glVertexAttribL1ui64NV GLuint index GLuint64EXT x void glVertexAttribL1ui64vARB GLuint index const GLuint64EXT *v void glVertexAttribL1ui64vNV GLuint index const GLuint64EXT *v void glVertexAttribL2d GLuint index GLdouble x GLdouble y void glVertexAttribL2dEXT GLuint index GLdouble x GLdouble y void glVertexAttribL2dv GLuint index const GLdouble *v void glVertexAttribL2dvEXT GLuint index const GLdouble *v void glVertexAttribL2i64NV GLuint index GLint64EXT x GLint64EXT y void glVertexAttribL2i64vNV GLuint index const GLint64EXT *v void glVertexAttribL2ui64NV GLuint index GLuint64EXT x GLuint64EXT y void glVertexAttribL2ui64vNV GLuint index const GLuint64EXT *v void glVertexAttribL3d GLuint index GLdouble x GLdouble y GLdouble z void glVertexAttribL3dEXT GLuint index GLdouble x GLdouble y GLdouble z void glVertexAttribL3dv GLuint index const GLdouble *v void glVertexAttribL3dvEXT GLuint index const GLdouble *v void glVertexAttribL3i64NV GLuint index GLint64EXT x GLint64EXT y GLint64EXT z void glVertexAttribL3i64vNV GLuint index const GLint64EXT *v void glVertexAttribL3ui64NV GLuint index GLuint64EXT x GLuint64EXT y GLuint64EXT z void glVertexAttribL3ui64vNV GLuint index const GLuint64EXT *v void glVertexAttribL4d GLuint index GLdouble x GLdouble y GLdouble z GLdouble w void glVertexAttribL4dEXT GLuint index GLdouble x GLdouble y GLdouble z GLdouble w void glVertexAttribL4dv GLuint index const GLdouble *v void glVertexAttribL4dvEXT GLuint index const GLdouble *v void glVertexAttribL4i64NV GLuint index GLint64EXT x GLint64EXT y GLint64EXT z GLint64EXT w void glVertexAttribL4i64vNV GLuint index const GLint64EXT *v void glVertexAttribL4ui64NV GLuint index GLuint64EXT x GLuint64EXT y GLuint64EXT z GLuint64EXT w void glVertexAttribL4ui64vNV GLuint index const GLuint64EXT *v void glVertexAttribLFormat GLuint attribindex GLint size GLenum type GLuint relativeoffset void glVertexAttribLFormatNV GLuint index GLint size GLenum type GLsizei stride void glVertexAttribLPointer GLuint index GLint size GLenum type GLsizei stride const void *pointer void glVertexAttribLPointerEXT GLuint index GLint size GLenum type GLsizei stride const void *pointer void glVertexAttribP1ui GLuint index GLenum type GLboolean normalized GLuint value void glVertexAttribP1uiv GLuint index GLenum type GLboolean normalized const GLuint *value void glVertexAttribP2ui GLuint index GLenum type GLboolean normalized GLuint value void glVertexAttribP2uiv GLuint index GLenum type GLboolean normalized const GLuint *value void glVertexAttribP3ui GLuint index GLenum type GLboolean normalized GLuint value void glVertexAttribP3uiv GLuint index GLenum type GLboolean normalized const GLuint *value void glVertexAttribP4ui GLuint index GLenum type GLboolean normalized GLuint value void glVertexAttribP4uiv GLuint index GLenum type GLboolean normalized const GLuint *value void glVertexAttribParameteriAMD GLuint index GLenum pname GLint param void glVertexAttribPointer GLuint index GLint size GLenum type GLboolean normalized GLsizei stride const void *pointer void glVertexAttribPointerARB GLuint index GLint size GLenum type GLboolean normalized GLsizei stride const void *pointer void glVertexAttribPointerNV GLuint index GLint fsize GLenum type GLsizei stride const void *pointer void glVertexAttribs1dvNV GLuint index GLsizei count const GLdouble *v void glVertexAttribs1fvNV GLuint index GLsizei count const GLfloat *v void glVertexAttribs1hvNV GLuint index GLsizei n const GLhalfNV *v void glVertexAttribs1svNV GLuint index GLsizei count const GLshort *v void glVertexAttribs2dvNV GLuint index GLsizei count const GLdouble *v void glVertexAttribs2fvNV GLuint index GLsizei count const GLfloat *v void glVertexAttribs2hvNV GLuint index GLsizei n const GLhalfNV *v void glVertexAttribs2svNV GLuint index GLsizei count const GLshort *v void glVertexAttribs3dvNV GLuint index GLsizei count const GLdouble *v void glVertexAttribs3fvNV GLuint index GLsizei count const GLfloat *v void glVertexAttribs3hvNV GLuint index GLsizei n const GLhalfNV *v void glVertexAttribs3svNV GLuint index GLsizei count const GLshort *v void glVertexAttribs4dvNV GLuint index GLsizei count const GLdouble *v void glVertexAttribs4fvNV GLuint index GLsizei count const GLfloat *v void glVertexAttribs4hvNV GLuint index GLsizei n const GLhalfNV *v void glVertexAttribs4svNV GLuint index GLsizei count const GLshort *v void glVertexAttribs4ubvNV GLuint index GLsizei count const GLubyte *v void glVertexBindingDivisor GLuint bindingindex GLuint divisor void glVertexBlendARB GLint count void glVertexBlendEnvfATI GLenum pname GLfloat param void glVertexBlendEnviATI GLenum pname GLint param void glVertexFormatNV GLint size GLenum type GLsizei stride void glVertexP2ui GLenum type GLuint value void glVertexP2uiv GLenum type const GLuint *value void glVertexP3ui GLenum type GLuint value void glVertexP3uiv GLenum type const GLuint *value void glVertexP4ui GLenum type GLuint value void glVertexP4uiv GLenum type const GLuint *value void glVertexPointer GLint size GLenum type GLsizei stride const void *pointer void glVertexPointerEXT GLint size GLenum type GLsizei stride GLsizei count const void *pointer void glVertexPointerListIBM GLint size GLenum type GLint stride const void **pointer GLint ptrstride void glVertexPointervINTEL GLint size GLenum type const void **pointer void glVertexStream1dATI GLenum stream GLdouble x void glVertexStream1dvATI GLenum stream const GLdouble *coords void glVertexStream1fATI GLenum stream GLfloat x void glVertexStream1fvATI GLenum stream const GLfloat *coords void glVertexStream1iATI GLenum stream GLint x void glVertexStream1ivATI GLenum stream const GLint *coords void glVertexStream1sATI GLenum stream GLshort x void glVertexStream1svATI GLenum stream const GLshort *coords void glVertexStream2dATI GLenum stream GLdouble x GLdouble y void glVertexStream2dvATI GLenum stream const GLdouble *coords void glVertexStream2fATI GLenum stream GLfloat x GLfloat y void glVertexStream2fvATI GLenum stream const GLfloat *coords void glVertexStream2iATI GLenum stream GLint x GLint y void glVertexStream2ivATI GLenum stream const GLint *coords void glVertexStream2sATI GLenum stream GLshort x GLshort y void glVertexStream2svATI GLenum stream const GLshort *coords void glVertexStream3dATI GLenum stream GLdouble x GLdouble y GLdouble z void glVertexStream3dvATI GLenum stream const GLdouble *coords void glVertexStream3fATI GLenum stream GLfloat x GLfloat y GLfloat z void glVertexStream3fvATI GLenum stream const GLfloat *coords void glVertexStream3iATI GLenum stream GLint x GLint y GLint z void glVertexStream3ivATI GLenum stream const GLint *coords void glVertexStream3sATI GLenum stream GLshort x GLshort y GLshort z void glVertexStream3svATI GLenum stream const GLshort *coords void glVertexStream4dATI GLenum stream GLdouble x GLdouble y GLdouble z GLdouble w void glVertexStream4dvATI GLenum stream const GLdouble *coords void glVertexStream4fATI GLenum stream GLfloat x GLfloat y GLfloat z GLfloat w void glVertexStream4fvATI GLenum stream const GLfloat *coords void glVertexStream4iATI GLenum stream GLint x GLint y GLint z GLint w void glVertexStream4ivATI GLenum stream const GLint *coords void glVertexStream4sATI GLenum stream GLshort x GLshort y GLshort z GLshort w void glVertexStream4svATI GLenum stream const GLshort *coords void glVertexWeightPointerEXT GLint size GLenum type GLsizei stride const void *pointer void glVertexWeightfEXT GLfloat weight void glVertexWeightfvEXT const GLfloat *weight void glVertexWeighthNV GLhalfNV weight void glVertexWeighthvNV const GLhalfNV *weight GLenum glVideoCaptureNV GLuint video_capture_slot GLuint *sequence_num GLuint64EXT *capture_time void glVideoCaptureStreamParameterdvNV GLuint video_capture_slot GLuint stream GLenum pname const GLdouble *params void glVideoCaptureStreamParameterfvNV GLuint video_capture_slot GLuint stream GLenum pname const GLfloat *params void glVideoCaptureStreamParameterivNV GLuint video_capture_slot GLuint stream GLenum pname const GLint *params void glViewport GLint x GLint y GLsizei width GLsizei height void glViewportArrayv GLuint first GLsizei count const GLfloat *v void glViewportArrayvNV GLuint first GLsizei count const GLfloat *v void glViewportArrayvOES GLuint first GLsizei count const GLfloat *v void glViewportIndexedf GLuint index GLfloat x GLfloat y GLfloat w GLfloat h void glViewportIndexedfOES GLuint index GLfloat x GLfloat y GLfloat w GLfloat h void glViewportIndexedfNV GLuint index GLfloat x GLfloat y GLfloat w GLfloat h void glViewportIndexedfv GLuint index const GLfloat *v void glViewportIndexedfvOES GLuint index const GLfloat *v void glViewportIndexedfvNV GLuint index const GLfloat *v void glViewportPositionWScaleNV GLuint index GLfloat xcoeff GLfloat ycoeff void glViewportSwizzleNV GLuint index GLenum swizzlex GLenum swizzley GLenum swizzlez GLenum swizzlew void glWaitSemaphoreEXT GLuint semaphore GLuint numBufferBarriers const GLuint *buffers GLuint numTextureBarriers const GLuint *textures const GLenum *srcLayouts void glWaitSync GLsync sync GLbitfield flags GLuint64 timeout void glWaitSyncAPPLE GLsync sync GLbitfield flags GLuint64 timeout void glWeightPathsNV GLuint resultPath GLsizei numPaths const GLuint *paths const GLfloat *weights void glWeightPointerARB GLint size GLenum type GLsizei stride const void *pointer void glWeightPointerOES GLint size GLenum type GLsizei stride const void *pointer void glWeightbvARB GLint size const GLbyte *weights void glWeightdvARB GLint size const GLdouble *weights void glWeightfvARB GLint size const GLfloat *weights void glWeightivARB GLint size const GLint *weights void glWeightsvARB GLint size const GLshort *weights void glWeightubvARB GLint size const GLubyte *weights void glWeightuivARB GLint size const GLuint *weights void glWeightusvARB GLint size const GLushort *weights void glWindowPos2d GLdouble x GLdouble y void glWindowPos2dARB GLdouble x GLdouble y void glWindowPos2dMESA GLdouble x GLdouble y void glWindowPos2dv const GLdouble *v void glWindowPos2dvARB const GLdouble *v void glWindowPos2dvMESA const GLdouble *v void glWindowPos2f GLfloat x GLfloat y void glWindowPos2fARB GLfloat x GLfloat y void glWindowPos2fMESA GLfloat x GLfloat y void glWindowPos2fv const GLfloat *v void glWindowPos2fvARB const GLfloat *v void glWindowPos2fvMESA const GLfloat *v void glWindowPos2i GLint x GLint y void glWindowPos2iARB GLint x GLint y void glWindowPos2iMESA GLint x GLint y void glWindowPos2iv const GLint *v void glWindowPos2ivARB const GLint *v void glWindowPos2ivMESA const GLint *v void glWindowPos2s GLshort x GLshort y void glWindowPos2sARB GLshort x GLshort y void glWindowPos2sMESA GLshort x GLshort y void glWindowPos2sv const GLshort *v void glWindowPos2svARB const GLshort *v void glWindowPos2svMESA const GLshort *v void glWindowPos3d GLdouble x GLdouble y GLdouble z void glWindowPos3dARB GLdouble x GLdouble y GLdouble z void glWindowPos3dMESA GLdouble x GLdouble y GLdouble z void glWindowPos3dv const GLdouble *v void glWindowPos3dvARB const GLdouble *v void glWindowPos3dvMESA const GLdouble *v void glWindowPos3f GLfloat x GLfloat y GLfloat z void glWindowPos3fARB GLfloat x GLfloat y GLfloat z void glWindowPos3fMESA GLfloat x GLfloat y GLfloat z void glWindowPos3fv const GLfloat *v void glWindowPos3fvARB const GLfloat *v void glWindowPos3fvMESA const GLfloat *v void glWindowPos3i GLint x GLint y GLint z void glWindowPos3iARB GLint x GLint y GLint z void glWindowPos3iMESA GLint x GLint y GLint z void glWindowPos3iv const GLint *v void glWindowPos3ivARB const GLint *v void glWindowPos3ivMESA const GLint *v void glWindowPos3s GLshort x GLshort y GLshort z void glWindowPos3sARB GLshort x GLshort y GLshort z void glWindowPos3sMESA GLshort x GLshort y GLshort z void glWindowPos3sv const GLshort *v void glWindowPos3svARB const GLshort *v void glWindowPos3svMESA const GLshort *v void glWindowPos4dMESA GLdouble x GLdouble y GLdouble z GLdouble w void glWindowPos4dvMESA const GLdouble *v void glWindowPos4fMESA GLfloat x GLfloat y GLfloat z GLfloat w void glWindowPos4fvMESA const GLfloat *v void glWindowPos4iMESA GLint x GLint y GLint z GLint w void glWindowPos4ivMESA const GLint *v void glWindowPos4sMESA GLshort x GLshort y GLshort z GLshort w void glWindowPos4svMESA const GLshort *v void glWindowRectanglesEXT GLenum mode GLsizei count const GLint *box void glWriteMaskEXT GLuint res GLuint in GLenum outX GLenum outY GLenum outZ GLenum outW void glDrawVkImageNV GLuint64 vkImage GLuint sampler GLfloat x0 GLfloat y0 GLfloat x1 GLfloat y1 GLfloat z GLfloat s0 GLfloat t0 GLfloat s1 GLfloat t1 GLVULKANPROCNV glGetVkProcAddrNV const GLchar *name void glWaitVkSemaphoreNV GLuint64 vkSemaphore void glSignalVkSemaphoreNV GLuint64 vkSemaphore void glSignalVkFenceNV GLuint64 vkFence glad-0.1.30/glad/files/glx.xml000066400000000000000000003363511347444401100160440ustar00rootroot00000000000000 Copyright (c) 2013-2018 The Khronos Group Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ------------------------------------------------------------------------ This file, glx.xml, is the GLX API Registry. The canonical version of the registry, together with documentation, schema, and Python generator scripts used to generate C header files for GLX, can always be found in the Khronos Registry at https://github.com/KhronosGroup/OpenGL-Registry = 199901L #include #elif defined(__sun__) || defined(__digital__) #include #if defined(__STDC__) #if defined(__arch64__) || defined(_LP64) typedef long int int64_t; typedef unsigned long int uint64_t; #else typedef long long int int64_t; typedef unsigned long long int uint64_t; #endif /* __arch64__ */ #endif /* __STDC__ */ #elif defined( __VMS ) || defined(__sgi) #include #elif defined(__SCO__) || defined(__USLC__) #include #elif defined(__UNIXOS2__) || defined(__SOL64__) typedef long int int32_t; typedef long long int int64_t; typedef unsigned long long int uint64_t; #elif defined(_WIN32) && defined(__GNUC__) #include #elif defined(_WIN32) typedef __int32 int32_t; typedef __int64 int64_t; typedef unsigned __int64 uint64_t; #else /* Fallback if nothing above works */ #include #endif #endif]]> typedef XID GLXFBConfigID; typedef struct __GLXFBConfigRec *GLXFBConfig; typedef XID GLXContextID; typedef struct __GLXcontextRec *GLXContext; typedef XID GLXPixmap; typedef XID GLXDrawable; typedef XID GLXWindow; typedef XID GLXPbuffer; typedef void ( *__GLXextFuncPtr)(void); typedef XID GLXVideoCaptureDeviceNV; typedef unsigned int GLXVideoDeviceNV; typedef XID GLXVideoSourceSGIX; typedef XID GLXFBConfigIDSGIX; typedef struct __GLXFBConfigRec *GLXFBConfigSGIX; typedef XID GLXPbufferSGIX; typedef struct { int event_type; /* GLX_DAMAGED or GLX_SAVED */ int draw_type; /* GLX_WINDOW or GLX_PBUFFER */ unsigned long serial; /* # of last request processed by server */ Bool send_event; /* true if this came for SendEvent request */ Display *display; /* display the event was read from */ GLXDrawable drawable; /* XID of Drawable */ unsigned int buffer_mask; /* mask indicating which buffers are affected */ unsigned int aux_buffer; /* which aux buffer was affected */ int x, y; int width, height; int count; /* if nonzero, at least this many more */ } GLXPbufferClobberEvent; typedef struct { int type; unsigned long serial; /* # of last request processed by server */ Bool send_event; /* true if this came from a SendEvent request */ Display *display; /* Display the event was read from */ GLXDrawable drawable; /* drawable on which event was requested in event mask */ int event_type; int64_t ust; int64_t msc; int64_t sbc; } GLXBufferSwapComplete; typedef union __GLXEvent { GLXPbufferClobberEvent glxpbufferclobber; GLXBufferSwapComplete glxbufferswapcomplete; long pad[24]; } GLXEvent; typedef struct { int type; unsigned long serial; Bool send_event; Display *display; int extension; int evtype; GLXDrawable window; Bool stereo_tree; } GLXStereoNotifyEventEXT; typedef struct { int type; unsigned long serial; /* # of last request processed by server */ Bool send_event; /* true if this came for SendEvent request */ Display *display; /* display the event was read from */ GLXDrawable drawable; /* i.d. of Drawable */ int event_type; /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */ int draw_type; /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */ unsigned int mask; /* mask indicating which buffers are affected*/ int x, y; int width, height; int count; /* if nonzero, at least this many more */ } GLXBufferClobberEventSGIX; typedef struct { char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ int networkId; } GLXHyperpipeNetworkSGIX; typedef struct { char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ int channel; unsigned int participationType; int timeSlice; } GLXHyperpipeConfigSGIX; typedef struct { char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ int srcXOrigin, srcYOrigin, srcWidth, srcHeight; int destXOrigin, destYOrigin, destWidth, destHeight; } GLXPipeRect; typedef struct { char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ int XOrigin, YOrigin, maxHeight, maxWidth; } GLXPipeRectLimits; Bool glXAssociateDMPbufferSGIX Display *dpy GLXPbufferSGIX pbuffer DMparams *params DMbuffer dmbuffer int glXBindChannelToWindowSGIX Display *display int screen int channel Window window int glXBindHyperpipeSGIX Display *dpy int hpId Bool glXBindSwapBarrierNV Display *dpy GLuint group GLuint barrier void glXBindSwapBarrierSGIX Display *dpy GLXDrawable drawable int barrier void glXBindTexImageEXT Display *dpy GLXDrawable drawable int buffer const int *attrib_list int glXBindVideoCaptureDeviceNV Display *dpy unsigned int video_capture_slot GLXVideoCaptureDeviceNV device int glXBindVideoDeviceNV Display *dpy unsigned int video_slot unsigned int video_device const int *attrib_list int glXBindVideoImageNV Display *dpy GLXVideoDeviceNV VideoDevice GLXPbuffer pbuf int iVideoBuffer void glXBlitContextFramebufferAMD GLXContext dstCtx GLint srcX0 GLint srcY0 GLint srcX1 GLint srcY1 GLint dstX0 GLint dstY0 GLint dstX1 GLint dstY1 GLbitfield mask GLenum filter int glXChannelRectSGIX Display *display int screen int channel int x int y int w int h int glXChannelRectSyncSGIX Display *display int screen int channel GLenum synctype GLXFBConfig *glXChooseFBConfig Display *dpy int screen const int *attrib_list int *nelements GLXFBConfigSGIX *glXChooseFBConfigSGIX Display *dpy int screen int *attrib_list int *nelements XVisualInfo *glXChooseVisual Display *dpy int screen int *attribList void glXCopyBufferSubDataNV Display *dpy GLXContext readCtx GLXContext writeCtx GLenum readTarget GLenum writeTarget GLintptr readOffset GLintptr writeOffset GLsizeiptr size void glXNamedCopyBufferSubDataNV Display *dpy GLXContext readCtx GLXContext writeCtx GLuint readBuffer GLuint writeBuffer GLintptr readOffset GLintptr writeOffset GLsizeiptr size void glXCopyContext Display *dpy GLXContext src GLXContext dst unsigned long mask void glXCopyImageSubDataNV Display *dpy GLXContext srcCtx GLuint srcName GLenum srcTarget GLint srcLevel GLint srcX GLint srcY GLint srcZ GLXContext dstCtx GLuint dstName GLenum dstTarget GLint dstLevel GLint dstX GLint dstY GLint dstZ GLsizei width GLsizei height GLsizei depth void glXCopySubBufferMESA Display *dpy GLXDrawable drawable int x int y int width int height GLXContext glXCreateAssociatedContextAMD unsigned int id GLXContext share_list GLXContext glXCreateAssociatedContextAttribsAMD unsigned int id GLXContext share_context const int *attribList GLXContext glXCreateContextAttribsARB Display *dpy GLXFBConfig config GLXContext share_context Bool direct const int *attrib_list GLXContext glXCreateContext Display *dpy XVisualInfo *vis GLXContext shareList Bool direct GLXContext glXCreateContextWithConfigSGIX Display *dpy GLXFBConfigSGIX config int render_type GLXContext share_list Bool direct GLXPbufferSGIX glXCreateGLXPbufferSGIX Display *dpy GLXFBConfigSGIX config unsigned int width unsigned int height int *attrib_list GLXPixmap glXCreateGLXPixmap Display *dpy XVisualInfo *visual Pixmap pixmap GLXPixmap glXCreateGLXPixmapMESA Display *dpy XVisualInfo *visual Pixmap pixmap Colormap cmap GLXPixmap glXCreateGLXPixmapWithConfigSGIX Display *dpy GLXFBConfigSGIX config Pixmap pixmap GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX Display *display int screen VLServer server VLPath path int nodeClass VLNode drainNode GLXContext glXCreateNewContext Display *dpy GLXFBConfig config int render_type GLXContext share_list Bool direct GLXPbuffer glXCreatePbuffer Display *dpy GLXFBConfig config const int *attrib_list GLXPixmap glXCreatePixmap Display *dpy GLXFBConfig config Pixmap pixmap const int *attrib_list GLXWindow glXCreateWindow Display *dpy GLXFBConfig config Window win const int *attrib_list void glXCushionSGI Display *dpy Window window float cushion Bool glXDelayBeforeSwapNV Display *dpy GLXDrawable drawable GLfloat seconds Bool glXDeleteAssociatedContextAMD GLXContext ctx void glXDestroyContext Display *dpy GLXContext ctx void glXDestroyGLXPbufferSGIX Display *dpy GLXPbufferSGIX pbuf void glXDestroyGLXPixmap Display *dpy GLXPixmap pixmap void glXDestroyGLXVideoSourceSGIX Display *dpy GLXVideoSourceSGIX glxvideosource int glXDestroyHyperpipeConfigSGIX Display *dpy int hpId void glXDestroyPbuffer Display *dpy GLXPbuffer pbuf void glXDestroyPixmap Display *dpy GLXPixmap pixmap void glXDestroyWindow Display *dpy GLXWindow win GLXVideoCaptureDeviceNV *glXEnumerateVideoCaptureDevicesNV Display *dpy int screen int *nelements unsigned int *glXEnumerateVideoDevicesNV Display *dpy int screen int *nelements void glXFreeContextEXT Display *dpy GLXContext context unsigned int glXGetAGPOffsetMESA const void *pointer const char *glXGetClientString Display *dpy int name int glXGetConfig Display *dpy XVisualInfo *visual int attrib int *value unsigned int glXGetContextGPUIDAMD GLXContext ctx GLXContextID glXGetContextIDEXT const GLXContext context GLXContext glXGetCurrentAssociatedContextAMD GLXContext glXGetCurrentContext Display *glXGetCurrentDisplayEXT Display *glXGetCurrentDisplay GLXDrawable glXGetCurrentDrawable GLXDrawable glXGetCurrentReadDrawableSGI GLXDrawable glXGetCurrentReadDrawable int glXGetFBConfigAttrib Display *dpy GLXFBConfig config int attribute int *value int glXGetFBConfigAttribSGIX Display *dpy GLXFBConfigSGIX config int attribute int *value GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX Display *dpy XVisualInfo *vis GLXFBConfig *glXGetFBConfigs Display *dpy int screen int *nelements unsigned int glXGetGPUIDsAMD unsigned int maxCount unsigned int *ids int glXGetGPUInfoAMD unsigned int id int property GLenum dataType unsigned int size void *data Bool glXGetMscRateOML Display *dpy GLXDrawable drawable int32_t *numerator int32_t *denominator __GLXextFuncPtr glXGetProcAddressARB const GLubyte *procName __GLXextFuncPtr glXGetProcAddress const GLubyte *procName void glXGetSelectedEvent Display *dpy GLXDrawable draw unsigned long *event_mask void glXGetSelectedEventSGIX Display *dpy GLXDrawable drawable unsigned long *mask int glXGetSwapIntervalMESA Bool glXGetSyncValuesOML Display *dpy GLXDrawable drawable int64_t *ust int64_t *msc int64_t *sbc Status glXGetTransparentIndexSUN Display *dpy Window overlay Window underlay long *pTransparentIndex int glXGetVideoDeviceNV Display *dpy int screen int numVideoDevices GLXVideoDeviceNV *pVideoDevice int glXGetVideoInfoNV Display *dpy int screen GLXVideoDeviceNV VideoDevice unsigned long *pulCounterOutputPbuffer unsigned long *pulCounterOutputVideo int glXGetVideoSyncSGI unsigned int *count XVisualInfo *glXGetVisualFromFBConfig Display *dpy GLXFBConfig config XVisualInfo *glXGetVisualFromFBConfigSGIX Display *dpy GLXFBConfigSGIX config int glXHyperpipeAttribSGIX Display *dpy int timeSlice int attrib int size void *attribList int glXHyperpipeConfigSGIX Display *dpy int networkId int npipes GLXHyperpipeConfigSGIX *cfg int *hpId GLXContext glXImportContextEXT Display *dpy GLXContextID contextID Bool glXIsDirect Display *dpy GLXContext ctx Bool glXJoinSwapGroupNV Display *dpy GLXDrawable drawable GLuint group void glXJoinSwapGroupSGIX Display *dpy GLXDrawable drawable GLXDrawable member void glXLockVideoCaptureDeviceNV Display *dpy GLXVideoCaptureDeviceNV device Bool glXMakeAssociatedContextCurrentAMD GLXContext ctx Bool glXMakeContextCurrent Display *dpy GLXDrawable draw GLXDrawable read GLXContext ctx Bool glXMakeCurrent Display *dpy GLXDrawable drawable GLXContext ctx Bool glXMakeCurrentReadSGI Display *dpy GLXDrawable draw GLXDrawable read GLXContext ctx int glXQueryChannelDeltasSGIX Display *display int screen int channel int *x int *y int *w int *h int glXQueryChannelRectSGIX Display *display int screen int channel int *dx int *dy int *dw int *dh int glXQueryContext Display *dpy GLXContext ctx int attribute int *value int glXQueryContextInfoEXT Display *dpy GLXContext context int attribute int *value Bool glXQueryCurrentRendererIntegerMESA int attribute unsigned int *value const char *glXQueryCurrentRendererStringMESA int attribute void glXQueryDrawable Display *dpy GLXDrawable draw int attribute unsigned int *value Bool glXQueryExtension Display *dpy int *errorb int *event const char *glXQueryExtensionsString Display *dpy int screen Bool glXQueryFrameCountNV Display *dpy int screen GLuint *count int glXQueryGLXPbufferSGIX Display *dpy GLXPbufferSGIX pbuf int attribute unsigned int *value int glXQueryHyperpipeAttribSGIX Display *dpy int timeSlice int attrib int size void *returnAttribList int glXQueryHyperpipeBestAttribSGIX Display *dpy int timeSlice int attrib int size void *attribList void *returnAttribList GLXHyperpipeConfigSGIX *glXQueryHyperpipeConfigSGIX Display *dpy int hpId int *npipes GLXHyperpipeNetworkSGIX *glXQueryHyperpipeNetworkSGIX Display *dpy int *npipes Bool glXQueryMaxSwapBarriersSGIX Display *dpy int screen int *max Bool glXQueryMaxSwapGroupsNV Display *dpy int screen GLuint *maxGroups GLuint *maxBarriers Bool glXQueryRendererIntegerMESA Display *dpy int screen int renderer int attribute unsigned int *value const char *glXQueryRendererStringMESA Display *dpy int screen int renderer int attribute const char *glXQueryServerString Display *dpy int screen int name Bool glXQuerySwapGroupNV Display *dpy GLXDrawable drawable GLuint *group GLuint *barrier Bool glXQueryVersion Display *dpy int *maj int *min int glXQueryVideoCaptureDeviceNV Display *dpy GLXVideoCaptureDeviceNV device int attribute int *value Bool glXReleaseBuffersMESA Display *dpy GLXDrawable drawable void glXReleaseTexImageEXT Display *dpy GLXDrawable drawable int buffer void glXReleaseVideoCaptureDeviceNV Display *dpy GLXVideoCaptureDeviceNV device int glXReleaseVideoDeviceNV Display *dpy int screen GLXVideoDeviceNV VideoDevice int glXReleaseVideoImageNV Display *dpy GLXPbuffer pbuf Bool glXResetFrameCountNV Display *dpy int screen void glXSelectEvent Display *dpy GLXDrawable draw unsigned long event_mask void glXSelectEventSGIX Display *dpy GLXDrawable drawable unsigned long mask int glXSendPbufferToVideoNV Display *dpy GLXPbuffer pbuf int iBufferType unsigned long *pulCounterPbuffer GLboolean bBlock Bool glXSet3DfxModeMESA int mode void glXSwapBuffers Display *dpy GLXDrawable drawable int64_t glXSwapBuffersMscOML Display *dpy GLXDrawable drawable int64_t target_msc int64_t divisor int64_t remainder int glXSwapIntervalMESA unsigned int interval void glXSwapIntervalEXT Display *dpy GLXDrawable drawable int interval int glXSwapIntervalSGI int interval void glXUseXFont Font font int first int count int list Bool glXWaitForMscOML Display *dpy GLXDrawable drawable int64_t target_msc int64_t divisor int64_t remainder int64_t *ust int64_t *msc int64_t *sbc Bool glXWaitForSbcOML Display *dpy GLXDrawable drawable int64_t target_sbc int64_t *ust int64_t *msc int64_t *sbc void glXWaitGL int glXWaitVideoSyncSGI int divisor int remainder unsigned int *count void glXWaitX glad-0.1.30/glad/files/khrplatform.h000066400000000000000000000234661347444401100172320ustar00rootroot00000000000000#ifndef __khrplatform_h_ #define __khrplatform_h_ /* ** Copyright (c) 2008-2018 The Khronos Group Inc. ** ** Permission is hereby granted, free of charge, to any person obtaining a ** copy of this software and/or associated documentation files (the ** "Materials"), to deal in the Materials without restriction, including ** without limitation the rights to use, copy, modify, merge, publish, ** distribute, sublicense, and/or sell copies of the Materials, and to ** permit persons to whom the Materials are furnished to do so, subject to ** the following conditions: ** ** The above copyright notice and this permission notice shall be included ** in all copies or substantial portions of the Materials. ** ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ /* Khronos platform-specific types and definitions. * * The master copy of khrplatform.h is maintained in the Khronos EGL * Registry repository at https://github.com/KhronosGroup/EGL-Registry * The last semantic modification to khrplatform.h was at commit ID: * 67a3e0864c2d75ea5287b9f3d2eb74a745936692 * * Adopters may modify this file to suit their platform. Adopters are * encouraged to submit platform specific modifications to the Khronos * group so that they can be included in future versions of this file. * Please submit changes by filing pull requests or issues on * the EGL Registry repository linked above. * * * See the Implementer's Guidelines for information about where this file * should be located on your system and for more details of its use: * https://www.khronos.org/registry/implementers_guide.pdf * * This file should be included as * #include * by Khronos client API header files that use its types and defines. * * The types in khrplatform.h should only be used to define API-specific types. * * Types defined in khrplatform.h: * khronos_int8_t signed 8 bit * khronos_uint8_t unsigned 8 bit * khronos_int16_t signed 16 bit * khronos_uint16_t unsigned 16 bit * khronos_int32_t signed 32 bit * khronos_uint32_t unsigned 32 bit * khronos_int64_t signed 64 bit * khronos_uint64_t unsigned 64 bit * khronos_intptr_t signed same number of bits as a pointer * khronos_uintptr_t unsigned same number of bits as a pointer * khronos_ssize_t signed size * khronos_usize_t unsigned size * khronos_float_t signed 32 bit floating point * khronos_time_ns_t unsigned 64 bit time in nanoseconds * khronos_utime_nanoseconds_t unsigned time interval or absolute time in * nanoseconds * khronos_stime_nanoseconds_t signed time interval in nanoseconds * khronos_boolean_enum_t enumerated boolean type. This should * only be used as a base type when a client API's boolean type is * an enum. Client APIs which use an integer or other type for * booleans cannot use this as the base type for their boolean. * * Tokens defined in khrplatform.h: * * KHRONOS_FALSE, KHRONOS_TRUE Enumerated boolean false/true values. * * KHRONOS_SUPPORT_INT64 is 1 if 64 bit integers are supported; otherwise 0. * KHRONOS_SUPPORT_FLOAT is 1 if floats are supported; otherwise 0. * * Calling convention macros defined in this file: * KHRONOS_APICALL * KHRONOS_APIENTRY * KHRONOS_APIATTRIBUTES * * These may be used in function prototypes as: * * KHRONOS_APICALL void KHRONOS_APIENTRY funcname( * int arg1, * int arg2) KHRONOS_APIATTRIBUTES; */ /*------------------------------------------------------------------------- * Definition of KHRONOS_APICALL *------------------------------------------------------------------------- * This precedes the return type of the function in the function prototype. */ #if defined(_WIN32) && !defined(__SCITECH_SNAP__) # define KHRONOS_APICALL __declspec(dllimport) #elif defined (__SYMBIAN32__) # define KHRONOS_APICALL IMPORT_C #elif defined(__ANDROID__) # define KHRONOS_APICALL __attribute__((visibility("default"))) #else # define KHRONOS_APICALL #endif /*------------------------------------------------------------------------- * Definition of KHRONOS_APIENTRY *------------------------------------------------------------------------- * This follows the return type of the function and precedes the function * name in the function prototype. */ #if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__) /* Win32 but not WinCE */ # define KHRONOS_APIENTRY __stdcall #else # define KHRONOS_APIENTRY #endif /*------------------------------------------------------------------------- * Definition of KHRONOS_APIATTRIBUTES *------------------------------------------------------------------------- * This follows the closing parenthesis of the function prototype arguments. */ #if defined (__ARMCC_2__) #define KHRONOS_APIATTRIBUTES __softfp #else #define KHRONOS_APIATTRIBUTES #endif /*------------------------------------------------------------------------- * basic type definitions *-----------------------------------------------------------------------*/ #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__) /* * Using */ #include typedef int32_t khronos_int32_t; typedef uint32_t khronos_uint32_t; typedef int64_t khronos_int64_t; typedef uint64_t khronos_uint64_t; #define KHRONOS_SUPPORT_INT64 1 #define KHRONOS_SUPPORT_FLOAT 1 #elif defined(__VMS ) || defined(__sgi) /* * Using */ #include typedef int32_t khronos_int32_t; typedef uint32_t khronos_uint32_t; typedef int64_t khronos_int64_t; typedef uint64_t khronos_uint64_t; #define KHRONOS_SUPPORT_INT64 1 #define KHRONOS_SUPPORT_FLOAT 1 #elif defined(_WIN32) && !defined(__SCITECH_SNAP__) /* * Win32 */ typedef __int32 khronos_int32_t; typedef unsigned __int32 khronos_uint32_t; typedef __int64 khronos_int64_t; typedef unsigned __int64 khronos_uint64_t; #define KHRONOS_SUPPORT_INT64 1 #define KHRONOS_SUPPORT_FLOAT 1 #elif defined(__sun__) || defined(__digital__) /* * Sun or Digital */ typedef int khronos_int32_t; typedef unsigned int khronos_uint32_t; #if defined(__arch64__) || defined(_LP64) typedef long int khronos_int64_t; typedef unsigned long int khronos_uint64_t; #else typedef long long int khronos_int64_t; typedef unsigned long long int khronos_uint64_t; #endif /* __arch64__ */ #define KHRONOS_SUPPORT_INT64 1 #define KHRONOS_SUPPORT_FLOAT 1 #elif 0 /* * Hypothetical platform with no float or int64 support */ typedef int khronos_int32_t; typedef unsigned int khronos_uint32_t; #define KHRONOS_SUPPORT_INT64 0 #define KHRONOS_SUPPORT_FLOAT 0 #else /* * Generic fallback */ #include typedef int32_t khronos_int32_t; typedef uint32_t khronos_uint32_t; typedef int64_t khronos_int64_t; typedef uint64_t khronos_uint64_t; #define KHRONOS_SUPPORT_INT64 1 #define KHRONOS_SUPPORT_FLOAT 1 #endif /* * Types that are (so far) the same on all platforms */ typedef signed char khronos_int8_t; typedef unsigned char khronos_uint8_t; typedef signed short int khronos_int16_t; typedef unsigned short int khronos_uint16_t; /* * Types that differ between LLP64 and LP64 architectures - in LLP64, * pointers are 64 bits, but 'long' is still 32 bits. Win64 appears * to be the only LLP64 architecture in current use. */ #ifdef _WIN64 typedef signed long long int khronos_intptr_t; typedef unsigned long long int khronos_uintptr_t; typedef signed long long int khronos_ssize_t; typedef unsigned long long int khronos_usize_t; #else typedef signed long int khronos_intptr_t; typedef unsigned long int khronos_uintptr_t; typedef signed long int khronos_ssize_t; typedef unsigned long int khronos_usize_t; #endif #if KHRONOS_SUPPORT_FLOAT /* * Float type */ typedef float khronos_float_t; #endif #if KHRONOS_SUPPORT_INT64 /* Time types * * These types can be used to represent a time interval in nanoseconds or * an absolute Unadjusted System Time. Unadjusted System Time is the number * of nanoseconds since some arbitrary system event (e.g. since the last * time the system booted). The Unadjusted System Time is an unsigned * 64 bit value that wraps back to 0 every 584 years. Time intervals * may be either signed or unsigned. */ typedef khronos_uint64_t khronos_utime_nanoseconds_t; typedef khronos_int64_t khronos_stime_nanoseconds_t; #endif /* * Dummy value used to pad enum types to 32 bits. */ #ifndef KHRONOS_MAX_ENUM #define KHRONOS_MAX_ENUM 0x7FFFFFFF #endif /* * Enumerated boolean type * * Values other than zero should be considered to be true. Therefore * comparisons should not be made against KHRONOS_TRUE. */ typedef enum { KHRONOS_FALSE = 0, KHRONOS_TRUE = 1, KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM } khronos_boolean_enum_t; #endif /* __khrplatform_h_ */ glad-0.1.30/glad/files/wgl.xml000066400000000000000000003131731347444401100160400ustar00rootroot00000000000000 Copyright (c) 2013-2018 The Khronos Group Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ------------------------------------------------------------------------ This file, wgl.xml, is the WGL API Registry. The older ".spec" file format has been retired and will no longer be updated with new extensions and API versions. The canonical version of the registry, together with documentation, schema, and Python generator scripts used to generate C header files for WGL, can always be found in the Khronos Registry at https://github.com/KhronosGroup/OpenGL-Registry struct _GPU_DEVICE { DWORD cb; CHAR DeviceName[32]; CHAR DeviceString[128]; DWORD Flags; RECT rcVirtualScreen; }; DECLARE_HANDLE(HPBUFFERARB); DECLARE_HANDLE(HPBUFFEREXT); DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV); DECLARE_HANDLE(HPVIDEODEV); DECLARE_HANDLE(HPGPUNV); DECLARE_HANDLE(HGPUNV); DECLARE_HANDLE(HVIDEOINPUTDEVICENV); typedef struct _GPU_DEVICE GPU_DEVICE; typedef struct _GPU_DEVICE *PGPU_DEVICE; int ChoosePixelFormat HDC hDc const PIXELFORMATDESCRIPTOR *pPfd int DescribePixelFormat HDC hdc int ipfd UINT cjpfd const PIXELFORMATDESCRIPTOR *ppfd int GetPixelFormat HDC hdc BOOL SetPixelFormat HDC hdc int ipfd const PIXELFORMATDESCRIPTOR *ppfd BOOL SwapBuffers HDC hdc void *wglAllocateMemoryNV GLsizei size GLfloat readfreq GLfloat writefreq GLfloat priority BOOL wglAssociateImageBufferEventsI3D HDC hDC const HANDLE *pEvent const LPVOID *pAddress const DWORD *pSize UINT count BOOL wglBeginFrameTrackingI3D GLboolean wglBindDisplayColorTableEXT GLushort id BOOL wglBindSwapBarrierNV GLuint group GLuint barrier BOOL wglBindTexImageARB HPBUFFERARB hPbuffer int iBuffer BOOL wglBindVideoCaptureDeviceNV UINT uVideoSlot HVIDEOINPUTDEVICENV hDevice BOOL wglBindVideoDeviceNV HDC hDC unsigned int uVideoSlot HVIDEOOUTPUTDEVICENV hVideoDevice const int *piAttribList BOOL wglBindVideoImageNV HPVIDEODEV hVideoDevice HPBUFFERARB hPbuffer int iVideoBuffer VOID wglBlitContextFramebufferAMD HGLRC dstCtx GLint srcX0 GLint srcY0 GLint srcX1 GLint srcY1 GLint dstX0 GLint dstY0 GLint dstX1 GLint dstY1 GLbitfield mask GLenum filter BOOL wglChoosePixelFormatARB HDC hdc const int *piAttribIList const FLOAT *pfAttribFList UINT nMaxFormats int *piFormats UINT *nNumFormats BOOL wglChoosePixelFormatEXT HDC hdc const int *piAttribIList const FLOAT *pfAttribFList UINT nMaxFormats int *piFormats UINT *nNumFormats BOOL wglCopyContext HGLRC hglrcSrc HGLRC hglrcDst UINT mask BOOL wglCopyImageSubDataNV HGLRC hSrcRC GLuint srcName GLenum srcTarget GLint srcLevel GLint srcX GLint srcY GLint srcZ HGLRC hDstRC GLuint dstName GLenum dstTarget GLint dstLevel GLint dstX GLint dstY GLint dstZ GLsizei width GLsizei height GLsizei depth HDC wglCreateAffinityDCNV const HGPUNV *phGpuList HGLRC wglCreateAssociatedContextAMD UINT id HGLRC wglCreateAssociatedContextAttribsAMD UINT id HGLRC hShareContext const int *attribList HANDLE wglCreateBufferRegionARB HDC hDC int iLayerPlane UINT uType HGLRC wglCreateContext HDC hDc HGLRC wglCreateContextAttribsARB HDC hDC HGLRC hShareContext const int *attribList GLboolean wglCreateDisplayColorTableEXT GLushort id LPVOID wglCreateImageBufferI3D HDC hDC DWORD dwSize UINT uFlags HGLRC wglCreateLayerContext HDC hDc int level HPBUFFERARB wglCreatePbufferARB HDC hDC int iPixelFormat int iWidth int iHeight const int *piAttribList HPBUFFEREXT wglCreatePbufferEXT HDC hDC int iPixelFormat int iWidth int iHeight const int *piAttribList BOOL wglDelayBeforeSwapNV HDC hDC GLfloat seconds BOOL wglDeleteAssociatedContextAMD HGLRC hglrc VOID wglDeleteBufferRegionARB HANDLE hRegion BOOL wglDeleteContext HGLRC oldContext BOOL wglDeleteDCNV HDC hdc BOOL wglDescribeLayerPlane HDC hDc int pixelFormat int layerPlane UINT nBytes const LAYERPLANEDESCRIPTOR *plpd VOID wglDestroyDisplayColorTableEXT GLushort id BOOL wglDestroyImageBufferI3D HDC hDC LPVOID pAddress BOOL wglDestroyPbufferARB HPBUFFERARB hPbuffer BOOL wglDestroyPbufferEXT HPBUFFEREXT hPbuffer BOOL wglDisableFrameLockI3D BOOL wglDisableGenlockI3D HDC hDC BOOL wglDXCloseDeviceNV HANDLE hDevice BOOL wglDXLockObjectsNV HANDLE hDevice GLint count HANDLE *hObjects BOOL wglDXObjectAccessNV HANDLE hObject GLenum access HANDLE wglDXOpenDeviceNV void *dxDevice HANDLE wglDXRegisterObjectNV HANDLE hDevice void *dxObject GLuint name GLenum type GLenum access BOOL wglDXSetResourceShareHandleNV void *dxObject HANDLE shareHandle BOOL wglDXUnlockObjectsNV HANDLE hDevice GLint count HANDLE *hObjects BOOL wglDXUnregisterObjectNV HANDLE hDevice HANDLE hObject BOOL wglEnableFrameLockI3D BOOL wglEnableGenlockI3D HDC hDC BOOL wglEndFrameTrackingI3D UINT wglEnumerateVideoCaptureDevicesNV HDC hDc HVIDEOINPUTDEVICENV *phDeviceList int wglEnumerateVideoDevicesNV HDC hDC HVIDEOOUTPUTDEVICENV *phDeviceList BOOL wglEnumGpuDevicesNV HGPUNV hGpu UINT iDeviceIndex PGPU_DEVICE lpGpuDevice BOOL wglEnumGpusFromAffinityDCNV HDC hAffinityDC UINT iGpuIndex HGPUNV *hGpu BOOL wglEnumGpusNV UINT iGpuIndex HGPUNV *phGpu void wglFreeMemoryNV void *pointer BOOL wglGenlockSampleRateI3D HDC hDC UINT uRate BOOL wglGenlockSourceDelayI3D HDC hDC UINT uDelay BOOL wglGenlockSourceEdgeI3D HDC hDC UINT uEdge BOOL wglGenlockSourceI3D HDC hDC UINT uSource UINT wglGetContextGPUIDAMD HGLRC hglrc HGLRC wglGetCurrentAssociatedContextAMD HGLRC wglGetCurrentContext HDC wglGetCurrentDC HDC wglGetCurrentReadDCARB HDC wglGetCurrentReadDCEXT PROC wglGetDefaultProcAddress LPCSTR lpszProc BOOL wglGetDigitalVideoParametersI3D HDC hDC int iAttribute int *piValue UINT GetEnhMetaFilePixelFormat HENHMETAFILE hemf const PIXELFORMATDESCRIPTOR *ppfd const char *wglGetExtensionsStringARB HDC hdc const char *wglGetExtensionsStringEXT BOOL wglGetFrameUsageI3D float *pUsage BOOL wglGetGammaTableI3D HDC hDC int iEntries USHORT *puRed USHORT *puGreen USHORT *puBlue BOOL wglGetGammaTableParametersI3D HDC hDC int iAttribute int *piValue BOOL wglGetGenlockSampleRateI3D HDC hDC UINT *uRate BOOL wglGetGenlockSourceDelayI3D HDC hDC UINT *uDelay BOOL wglGetGenlockSourceEdgeI3D HDC hDC UINT *uEdge BOOL wglGetGenlockSourceI3D HDC hDC UINT *uSource UINT wglGetGPUIDsAMD UINT maxCount UINT *ids INT wglGetGPUInfoAMD UINT id int property GLenum dataType UINT size void *data int wglGetLayerPaletteEntries HDC hdc int iLayerPlane int iStart int cEntries const COLORREF *pcr BOOL wglGetMscRateOML HDC hdc INT32 *numerator INT32 *denominator HDC wglGetPbufferDCARB HPBUFFERARB hPbuffer HDC wglGetPbufferDCEXT HPBUFFEREXT hPbuffer BOOL wglGetPixelFormatAttribfvARB HDC hdc int iPixelFormat int iLayerPlane UINT nAttributes const int *piAttributes FLOAT *pfValues BOOL wglGetPixelFormatAttribfvEXT HDC hdc int iPixelFormat int iLayerPlane UINT nAttributes int *piAttributes FLOAT *pfValues BOOL wglGetPixelFormatAttribivARB HDC hdc int iPixelFormat int iLayerPlane UINT nAttributes const int *piAttributes int *piValues BOOL wglGetPixelFormatAttribivEXT HDC hdc int iPixelFormat int iLayerPlane UINT nAttributes int *piAttributes int *piValues PROC wglGetProcAddress LPCSTR lpszProc int wglGetSwapIntervalEXT BOOL wglGetSyncValuesOML HDC hdc INT64 *ust INT64 *msc INT64 *sbc BOOL wglGetVideoDeviceNV HDC hDC int numDevices HPVIDEODEV *hVideoDevice BOOL wglGetVideoInfoNV HPVIDEODEV hpVideoDevice unsigned long *pulCounterOutputPbuffer unsigned long *pulCounterOutputVideo BOOL wglIsEnabledFrameLockI3D BOOL *pFlag BOOL wglIsEnabledGenlockI3D HDC hDC BOOL *pFlag BOOL wglJoinSwapGroupNV HDC hDC GLuint group GLboolean wglLoadDisplayColorTableEXT const GLushort *table GLuint length BOOL wglLockVideoCaptureDeviceNV HDC hDc HVIDEOINPUTDEVICENV hDevice BOOL wglMakeAssociatedContextCurrentAMD HGLRC hglrc BOOL wglMakeContextCurrentARB HDC hDrawDC HDC hReadDC HGLRC hglrc BOOL wglMakeContextCurrentEXT HDC hDrawDC HDC hReadDC HGLRC hglrc BOOL wglMakeCurrent HDC hDc HGLRC newContext BOOL wglQueryCurrentContextNV int iAttribute int *piValue BOOL wglQueryFrameCountNV HDC hDC GLuint *count BOOL wglQueryFrameLockMasterI3D BOOL *pFlag BOOL wglQueryFrameTrackingI3D DWORD *pFrameCount DWORD *pMissedFrames float *pLastMissedUsage BOOL wglQueryGenlockMaxSourceDelayI3D HDC hDC UINT *uMaxLineDelay UINT *uMaxPixelDelay BOOL wglQueryMaxSwapGroupsNV HDC hDC GLuint *maxGroups GLuint *maxBarriers BOOL wglQueryPbufferARB HPBUFFERARB hPbuffer int iAttribute int *piValue BOOL wglQueryPbufferEXT HPBUFFEREXT hPbuffer int iAttribute int *piValue BOOL wglQuerySwapGroupNV HDC hDC GLuint *group GLuint *barrier BOOL wglQueryVideoCaptureDeviceNV HDC hDc HVIDEOINPUTDEVICENV hDevice int iAttribute int *piValue BOOL wglRealizeLayerPalette HDC hdc int iLayerPlane BOOL bRealize BOOL wglReleaseImageBufferEventsI3D HDC hDC const LPVOID *pAddress UINT count int wglReleasePbufferDCARB HPBUFFERARB hPbuffer HDC hDC int wglReleasePbufferDCEXT HPBUFFEREXT hPbuffer HDC hDC BOOL wglReleaseTexImageARB HPBUFFERARB hPbuffer int iBuffer BOOL wglReleaseVideoCaptureDeviceNV HDC hDc HVIDEOINPUTDEVICENV hDevice BOOL wglReleaseVideoDeviceNV HPVIDEODEV hVideoDevice BOOL wglReleaseVideoImageNV HPBUFFERARB hPbuffer int iVideoBuffer BOOL wglResetFrameCountNV HDC hDC BOOL wglRestoreBufferRegionARB HANDLE hRegion int x int y int width int height int xSrc int ySrc BOOL wglSaveBufferRegionARB HANDLE hRegion int x int y int width int height BOOL wglSendPbufferToVideoNV HPBUFFERARB hPbuffer int iBufferType unsigned long *pulCounterPbuffer BOOL bBlock BOOL wglSetDigitalVideoParametersI3D HDC hDC int iAttribute const int *piValue BOOL wglSetGammaTableI3D HDC hDC int iEntries const USHORT *puRed const USHORT *puGreen const USHORT *puBlue BOOL wglSetGammaTableParametersI3D HDC hDC int iAttribute const int *piValue int wglSetLayerPaletteEntries HDC hdc int iLayerPlane int iStart int cEntries const COLORREF *pcr BOOL wglSetPbufferAttribARB HPBUFFERARB hPbuffer const int *piAttribList BOOL wglSetStereoEmitterState3DL HDC hDC UINT uState BOOL wglShareLists HGLRC hrcSrvShare HGLRC hrcSrvSource INT64 wglSwapBuffersMscOML HDC hdc INT64 target_msc INT64 divisor INT64 remainder BOOL wglSwapLayerBuffers HDC hdc UINT fuFlags BOOL wglSwapIntervalEXT int interval INT64 wglSwapLayerBuffersMscOML HDC hdc int fuPlanes INT64 target_msc INT64 divisor INT64 remainder BOOL wglUseFontBitmaps HDC hDC DWORD first DWORD count DWORD listBase BOOL wglUseFontBitmapsA HDC hDC DWORD first DWORD count DWORD listBase BOOL wglUseFontBitmapsW HDC hDC DWORD first DWORD count DWORD listBase BOOL wglUseFontOutlines HDC hDC DWORD first DWORD count DWORD listBase FLOAT deviation FLOAT extrusion int format LPGLYPHMETRICSFLOAT lpgmf BOOL wglUseFontOutlinesA HDC hDC DWORD first DWORD count DWORD listBase FLOAT deviation FLOAT extrusion int format LPGLYPHMETRICSFLOAT lpgmf BOOL wglUseFontOutlinesW HDC hDC DWORD first DWORD count DWORD listBase FLOAT deviation FLOAT extrusion int format LPGLYPHMETRICSFLOAT lpgmf BOOL wglWaitForMscOML HDC hdc INT64 target_msc INT64 divisor INT64 remainder INT64 *ust INT64 *msc INT64 *sbc BOOL wglWaitForSbcOML HDC hdc INT64 target_sbc INT64 *ust INT64 *msc INT64 *sbc glad-0.1.30/glad/lang/000077500000000000000000000000001347444401100143345ustar00rootroot00000000000000glad-0.1.30/glad/lang/__init__.py000066400000000000000000000006601347444401100164470ustar00rootroot00000000000000import glad.lang.c import glad.lang.d import glad.lang.nim import glad.lang.pascal import glad.lang.volt def get_generator(name, spec): _langs = [ glad.lang.c, glad.lang.d, glad.lang.nim, glad.lang.pascal, glad.lang.volt ] for lang in _langs: gen, loader = lang.get_generator(name, spec) if gen is not None: return gen, loader return None, None glad-0.1.30/glad/lang/c/000077500000000000000000000000001347444401100145565ustar00rootroot00000000000000glad-0.1.30/glad/lang/c/__init__.py000066400000000000000000000011011347444401100166600ustar00rootroot00000000000000from glad.lang.c.loader.egl import EGLCLoader from glad.lang.c.loader.gl import OpenGLCLoader from glad.lang.c.loader.glx import GLXCLoader from glad.lang.c.loader.wgl import WGLCLoader from glad.lang.c.generator import CGenerator from glad.lang.c.debug import CDebugGenerator _specs = { 'egl': EGLCLoader, 'gl': OpenGLCLoader, 'glx': GLXCLoader, 'wgl': WGLCLoader } _generators = { 'c': CGenerator, 'c-debug': CDebugGenerator } def get_generator(name, spec): gen = _generators.get(name) loader = _specs.get(spec) return gen, loader glad-0.1.30/glad/lang/c/debug.py000066400000000000000000000100361347444401100162160ustar00rootroot00000000000000from glad.lang.c.generator import CGenerator DEFAULT_DEBUG_IMPL = ''' {return_def} _pre_call_callback("{name}", {args_callback}); {return_assign} glad_{name}({args}); _post_call_callback("{name}", {args_callback}); {return_return} ''' DEBUG_HEADER = ''' #define GLAD_DEBUG typedef void (* GLADcallback)(const char *name, void *funcptr, int len_args, ...); GLAPI void glad_set_pre_callback(GLADcallback cb); GLAPI void glad_set_post_callback(GLADcallback cb); ''' DEBUG_CODE = ''' static GLADcallback _pre_call_callback = _pre_call_callback_default; void glad_set_pre_callback(GLADcallback cb) { _pre_call_callback = cb; } static GLADcallback _post_call_callback = _post_call_callback_default; void glad_set_post_callback(GLADcallback cb) { _post_call_callback = cb; } ''' DEFAULT_CALLBACK = ''' void _pre_call_callback_default(const char *name, void *funcptr, int len_args, ...) { (void) name; (void) funcptr; (void) len_args; } void _post_call_callback_default(const char *name, void *funcptr, int len_args, ...) { (void) name; (void) funcptr; (void) len_args; } ''' DEFAULT_CALLBACK_GL = ''' void _pre_call_callback_default(const char *name, void *funcptr, int len_args, ...) { (void) name; (void) funcptr; (void) len_args; } void _post_call_callback_default(const char *name, void *funcptr, int len_args, ...) { GLenum error_code; (void) funcptr; (void) len_args; error_code = glad_glGetError(); if (error_code != GL_NO_ERROR) { fprintf(stderr, "ERROR %d in %s\\n", error_code, name); } } ''' class CDebugGenerator(CGenerator): NAME = 'c-debug' NAME_LONG = 'C/C++ Debug' def write_code_head(self, f): CGenerator.write_code_head(self, f) if self.spec.NAME == 'gl': f.write(DEFAULT_CALLBACK_GL) else: f.write(DEFAULT_CALLBACK) f.write(DEBUG_CODE) def write_api_header(self, f): CGenerator.write_api_header(self, f) f.write(DEBUG_HEADER) def write_function_prototype(self, fobj, func): fobj.write('typedef {} (APIENTRYP PFN{}PROC)({});\n'.format( func.proto.ret.to_c(), func.proto.name.upper(), ', '.join(param.type.raw for param in func.params) or 'void' )) fobj.write('GLAPI PFN{}PROC glad_{};\n'.format( func.proto.name.upper(), func.proto.name )) fobj.write('GLAPI PFN{}PROC glad_debug_{};\n'.format( func.proto.name.upper(), func.proto.name )) fobj.write('#define {0} glad_debug_{0}\n'.format(func.proto.name)) def write_function(self, fobj, func): fobj.write('PFN{}PROC glad_{};\n'.format( func.proto.name.upper(), func.proto.name )) # write the default debug function args_def = ', '.join( '{type} arg{i}'.format(type=param.type.to_c(), i=i) for i, param in enumerate(func.params) ) or 'void' fobj.write('{} APIENTRY glad_debug_impl_{}({}) {{'.format( func.proto.ret.to_c(), func.proto.name, args_def )) args = ', '.join('arg{}'.format(i) for i, _ in enumerate(func.params)) args_callback = ', '.join(filter( None, ['(void*){}'.format(func.proto.name), str(len(func.params)), args] )) return_def = '' return_assign = '' return_return = '' # lower because of win API having VOID if not func.proto.ret.to_c().lower() == 'void': return_def = '\n {} ret;'.format(func.proto.ret.to_c()) return_assign = 'ret = ' return_return = 'return ret;' fobj.write('\n'.join(filter(None, DEFAULT_DEBUG_IMPL.format( name=func.proto.name, args=args, args_callback=args_callback, return_def=return_def, return_assign=return_assign, return_return=return_return ).splitlines()))) fobj.write('\n}\n') fobj.write('PFN{0}PROC glad_debug_{1} = glad_debug_impl_{1};\n'.format( func.proto.name.upper(), func.proto.name )) glad-0.1.30/glad/lang/c/generator.py000066400000000000000000000324701347444401100171240ustar00rootroot00000000000000from collections import OrderedDict import os from glad.lang.common.generator import Generator from glad.lang.common.util import makefiledir import glad.files KHRPLATFORM = 'https://raw.githubusercontent.com/KhronosGroup/EGL-Registry/master/api/KHR/khrplatform.h' _KHR_TYPE_REPLACEMENTS = { 'khronos_intptr_t': 'ptrdiff_t', 'khronos_ssize_t': 'ptrdiff_t' } def replace_khr_types(output_str): replaced = output_str for before, after in _KHR_TYPE_REPLACEMENTS.items(): replaced = replaced.replace(before, after) if replaced == output_str: return output_str return '#if defined(__khrplatform_h_)\n' + output_str + '#else\n' + replaced + '#endif\n' class CGenerator(Generator): NAME = 'c' NAME_LONG = 'C/C++' def open(self): suffix = '' if not self.spec.NAME == 'gl': suffix = '_{}'.format(self.spec.NAME) if self.local_files: self.h_include = '"glad{}.h"'.format(suffix) self._f_c = open(make_path(self.path, 'glad{}.c'.format(suffix)), 'w') self._f_h = open(make_path(self.path, 'glad{}.h'.format(suffix)), 'w') khr = self.path else: self.h_include = ''.format(suffix) self._f_c = open(make_path(self.path, 'src', 'glad{}.c'.format(suffix)), 'w') self._f_h = open(make_path(self.path, 'include', 'glad', 'glad{}.h'.format(suffix)), 'w') khr = os.path.join(self.path, 'include', 'KHR') if not self.omit_khrplatform: khr_url = KHRPLATFORM if os.path.exists('khrplatform.h'): khr_url = 'file:' + os.path.abspath('khrplatform.h') khrplatform = os.path.join(khr, 'khrplatform.h') if not os.path.exists(khrplatform): if not os.path.exists(khr): os.makedirs(khr) if self.options.get('reproducible', False): with glad.files.open_local('khrplatform.h', 'rb') as src: with open(khrplatform, 'wb') as dst: dst.write(src.read()) else: self.opener.urlretrieve(khr_url, khrplatform) return self def close(self): self._f_c.close() self._f_h.close() def generate_header(self): self._f_h.write('/*\n') self._f_h.write(self.header) self._f_h.write('*/\n\n') self._f_c.write('/*\n') self._f_c.write(self.header) self._f_c.write('*/\n\n') def generate_loader(self, features, extensions): f = self._f_c if self.spec.NAME in ('egl', 'wgl'): features = {'egl': [], 'wgl': []} written = set() for api, version in self.api.items(): for feature in features[api]: f.write('static void load_{}(GLADloadproc load) {{\n' .format(feature.name)) if self.spec.NAME in ('gl', 'glx', 'wgl'): f.write('\tif(!GLAD_{}) return;\n'.format(feature.name)) for func in feature.functions: f.write('\tglad_{0} = (PFN{1}PROC)load("{0}");\n' .format(func.proto.name, func.proto.name.upper())) f.write('}\n') for ext in extensions[api]: if len(list(ext.functions)) == 0 or ext.name in written: continue f.write('static void load_{}(GLADloadproc load) {{\n' .format(ext.name)) if self.spec.NAME in ('gl', 'glx', 'wgl'): f.write('\tif(!GLAD_{}) return;\n'.format(ext.name)) if ext.name == 'GLX_SGIX_video_source': f.write('#ifdef _VL_H_\n') if ext.name == 'GLX_SGIX_dmbuffer': f.write('#ifdef _DM_BUFFER_H_\n') for func in ext.functions: # even if they were in written we need to load it f.write('\tglad_{0} = (PFN{1}PROC)load("{0}");\n' .format(func.proto.name, func.proto.name.upper())) if ext.name in ('GLX_SGIX_video_source', 'GLX_SGIX_dmbuffer'): f.write('#else\n') f.write('\t(void)load;\n') f.write('#endif\n') f.write('}\n') written.add(ext.name) f.write('static int find_extensions{}(void) {{\n'.format(api.upper())) if self.spec.NAME in ('gl', 'glx', 'wgl'): f.write('\tif (!get_exts()) return 0;\n') for ext in extensions[api]: f.write('\tGLAD_{0} = has_ext("{0}");\n'.format(ext.name)) if len(extensions[api]) == 0: f.write('\t(void)&has_ext;\n') # suppress unused has_ext warnings f.write('\tfree_exts();\n') f.write('\treturn 1;\n') f.write('}\n\n') if api == 'glx': f.write('static void find_core{}(Display *dpy, int screen) {{\n'.format(api.upper())) elif api == 'wgl': f.write('static void find_core{}(HDC hdc) {{\n'.format(api.upper())) else: f.write('static void find_core{}(void) {{\n'.format(api.upper())) self.loader.write_find_core(f) if self.spec.NAME in ('gl', 'glx', 'wgl'): for feature in features[api]: f.write('\tGLAD_{} = (major == {num[0]} && minor >= {num[1]}) ||' ' major > {num[0]};\n'.format(feature.name, num=feature.number)) if self.spec.NAME == 'gl': f.write('\tif (GLVersion.major > {0} || (GLVersion.major >= {0} && GLVersion.minor >= {1})) {{\n'.format(version[0], version[1])) f.write('\t\tmax_loaded_major = {0};\n'.format(version[0])) f.write('\t\tmax_loaded_minor = {0};\n'.format(version[1])) f.write('\t}\n') f.write('}\n\n') if api == 'glx': f.write('int gladLoad{}Loader(GLADloadproc load, Display *dpy, int screen) {{\n'.format(api.upper())) elif api == 'wgl': f.write('int gladLoad{}Loader(GLADloadproc load, HDC hdc) {{\n'.format(api.upper())) else: f.write('int gladLoad{}Loader(GLADloadproc load) {{\n'.format(api.upper())) self.loader.write_begin_load(f) if api == 'glx': f.write('\tfind_core{}(dpy, screen);\n'.format(api.upper())) elif api == 'wgl': f.write('\tfind_core{}(hdc);\n'.format(api.upper())) else: f.write('\tfind_core{}();\n'.format(api.upper())) for feature in features[api]: f.write('\tload_{}(load);\n'.format(feature.name)) f.write('\n\tif (!find_extensions{}()) return 0;\n'.format(api.upper())) for ext in extensions[api]: if len(list(ext.functions)) == 0: continue f.write('\tload_{}(load);\n'.format(ext.name)) self.loader.write_end_load(f) f.write('}\n\n') self.loader.write_header_end(self._f_h) def generate_types(self, types): f = self._f_h self.loader.write_header(f) self.write_api_header(f) dedup_types = OrderedDict() for type in types: dedup_types.setdefault(type.name, []).append(type) for types in dedup_types.values(): type = types[0] output_string = (type.raw + '\n').lstrip().replace(' ', ' ') if self.omit_khrplatform: output_string = replace_khr_types(output_string) if output_string == '#include \n': if self.omit_khrplatform: continue elif self.local_files: output_string = '#include "khrplatform.h"\n' if 'ptrdiff_t' in output_string: # 10.6 is the last version supporting more than 64 bit (>1060) output_string = \ '#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) ' +\ '&& (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1060)\n' +\ output_string.replace('ptrdiff_t', 'long') + '#else\n' + output_string + '#endif\n' f.write(output_string) def generate_features(self, features): f = self._f_h write = set() if self.spec.NAME in ('wgl',): # These are already defined in windows.h pass elif self.spec.NAME in ('egl',): self.write_enums(f, set(), features) for feature in features: for func in feature.functions: self.write_function_def(f, func) else: self.write_functions(f, write, set(), features) f = self._f_c self.write_code_head(f) self.loader.write(f) self.loader.write_has_ext(f) if self.spec.NAME in ('gl', 'glx', 'wgl'): for feature in features: f.write('int GLAD_{} = 0;\n'.format(feature.name)) for func in sorted(write, key=lambda x: x.proto.name): self.write_function(f, func) def generate_extensions(self, extensions, enums, functions): write = set() written = set(enum.name for enum in enums) | \ set(function.proto.name for function in functions) f = self._f_h self.write_functions(f, write, written, extensions) f = self._f_c if self.spec.NAME in ('gl', 'glx', 'wgl'): for ext in sorted(set(ext.name for ext in extensions)): f.write('int GLAD_{} = 0;\n'.format(ext)) written = set() for ext in extensions: if ext.name == 'GLX_SGIX_video_source': f.write('#ifdef _VL_H_\n') if ext.name == 'GLX_SGIX_dmbuffer': f.write('#ifdef _DM_BUFFER_H_\n') for func in ext.functions: if func in write and func not in written: self.write_function(f, func) written.add(func) if ext.name in ('GLX_SGIX_video_source', 'GLX_SGIX_dmbuffer'): f.write('#endif\n') def write_functions(self, f, write, written, extensions): self.write_enums(f, written, extensions) for ext in extensions: f.write('#ifndef {0}\n#define {0} 1\n'.format(ext.name)) if self.spec.NAME in ('gl', 'glx', 'wgl'): f.write('GLAPI int GLAD_{};\n'.format(ext.name)) if ext.name == 'GLX_SGIX_video_source': f.write('#ifdef _VL_H_\n') if ext.name == 'GLX_SGIX_dmbuffer': f.write('#ifdef _DM_BUFFER_H_\n') for func in ext.functions: if not func.proto.name in written: self.write_function_prototype(f, func) write.add(func) written.add(func.proto.name) if ext.name in ('GLX_SGIX_video_source', 'GLX_SGIX_dmbuffer'): f.write('#endif\n') f.write('#endif\n') def write_enums(self, f, written, extensions): for ext in extensions: for enum in ext.enums: if not enum.name in written: f.write('#define {} {}\n'.format(enum.name, enum.value)) written.add(enum.name) def write_api_header(self, f): for api in self.api: if api == 'glx': f.write('GLAPI int gladLoad{}Loader(GLADloadproc, Display *dpy, int screen);\n\n'.format(api.upper())) elif api == 'wgl': f.write('GLAPI int gladLoad{}Loader(GLADloadproc, HDC hdc);\n\n'.format(api.upper())) else: f.write('GLAPI int gladLoad{}Loader(GLADloadproc);\n\n'.format(api.upper())) def write_code_head(self, f): f.write('#include \n#include \n#include \n#include {}\n'.format(self.h_include)) def write_extern(self, fobj): fobj.write('#ifdef __cplusplus\nextern "C" {\n#endif\n') def write_extern_end(self, fobj): fobj.write('#ifdef __cplusplus\n}\n#endif\n') def write_function_def(self, fobj, func): # write a function definition instead of a prototype. # e.g. egl uses that, since the main functions get linked in and not loaded through a function. fobj.write('{}('.format(func.proto.ret.raw)) fobj.write(', '.join(param.type.raw for param in func.params) or 'void') fobj.write(');\n') def write_function_prototype(self, fobj, func): fobj.write('typedef {} (APIENTRYP PFN{}PROC)({});\n'.format( func.proto.ret.to_c(), func.proto.name.upper(), ', '.join(param.type.raw for param in func.params) or 'void') ) fobj.write('GLAPI PFN{}PROC glad_{};\n'.format(func.proto.name.upper(), func.proto.name)) fobj.write('#define {0} glad_{0}\n'.format(func.proto.name)) def write_function(self, fobj, func): fobj.write('PFN{}PROC glad_{} = NULL;\n'.format(func.proto.name.upper(), func.proto.name)) def make_path(path, *args): path = os.path.join(path, *args) makefiledir(path) return path glad-0.1.30/glad/lang/c/loader/000077500000000000000000000000001347444401100160245ustar00rootroot00000000000000glad-0.1.30/glad/lang/c/loader/__init__.py000066400000000000000000000070431347444401100201410ustar00rootroot00000000000000 LOAD_OPENGL_DLL = ''' %(pre)s void* %(proc)s(const char *namez); #if defined(_WIN32) || defined(__CYGWIN__) #include static HMODULE libGL; typedef void* (APIENTRYP PFNWGLGETPROCADDRESSPROC_PRIVATE)(const char*); static PFNWGLGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr; #ifdef _MSC_VER #ifdef __has_include #if __has_include() #define HAVE_WINAPIFAMILY 1 #endif #elif _MSC_VER >= 1700 && !_USING_V110_SDK71_ #define HAVE_WINAPIFAMILY 1 #endif #endif #ifdef HAVE_WINAPIFAMILY #include #if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) #define IS_UWP 1 #endif #endif %(pre)s int %(init)s(void) { #ifndef IS_UWP libGL = LoadLibraryW(L"opengl32.dll"); if(libGL != NULL) { void (* tmp)(void); tmp = (void(*)(void)) GetProcAddress(libGL, "wglGetProcAddress"); gladGetProcAddressPtr = (PFNWGLGETPROCADDRESSPROC_PRIVATE) tmp; return gladGetProcAddressPtr != NULL; } #endif return 0; } %(pre)s void %(terminate)s(void) { if(libGL != NULL) { FreeLibrary((HMODULE) libGL); libGL = NULL; } } #else #include static void* libGL; #if !defined(__APPLE__) && !defined(__HAIKU__) typedef void* (APIENTRYP PFNGLXGETPROCADDRESSPROC_PRIVATE)(const char*); static PFNGLXGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr; #endif %(pre)s int %(init)s(void) { #ifdef __APPLE__ static const char *NAMES[] = { "../Frameworks/OpenGL.framework/OpenGL", "/Library/Frameworks/OpenGL.framework/OpenGL", "/System/Library/Frameworks/OpenGL.framework/OpenGL", "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL" }; #else static const char *NAMES[] = {"libGL.so.1", "libGL.so"}; #endif unsigned int index = 0; for(index = 0; index < (sizeof(NAMES) / sizeof(NAMES[0])); index++) { libGL = dlopen(NAMES[index], RTLD_NOW | RTLD_GLOBAL); if(libGL != NULL) { #if defined(__APPLE__) || defined(__HAIKU__) return 1; #else gladGetProcAddressPtr = (PFNGLXGETPROCADDRESSPROC_PRIVATE)dlsym(libGL, "glXGetProcAddressARB"); return gladGetProcAddressPtr != NULL; #endif } } return 0; } %(pre)s void %(terminate)s(void) { if(libGL != NULL) { dlclose(libGL); libGL = NULL; } } #endif %(pre)s void* %(proc)s(const char *namez) { void* result = NULL; if(libGL == NULL) return NULL; #if !defined(__APPLE__) && !defined(__HAIKU__) if(gladGetProcAddressPtr != NULL) { result = gladGetProcAddressPtr(namez); } #endif if(result == NULL) { #if defined(_WIN32) || defined(__CYGWIN__) result = (void*)GetProcAddress((HMODULE) libGL, namez); #else result = dlsym(libGL, namez); #endif } return result; } ''' LOAD_OPENGL_DLL_H = ''' ''' LOAD_OPENGL_GLAPI_H = ''' #ifndef GLAPI # if defined(GLAD_GLAPI_EXPORT) # if defined(_WIN32) || defined(__CYGWIN__) # if defined(GLAD_GLAPI_EXPORT_BUILD) # if defined(__GNUC__) # define GLAPI __attribute__ ((dllexport)) extern # else # define GLAPI __declspec(dllexport) extern # endif # else # if defined(__GNUC__) # define GLAPI __attribute__ ((dllimport)) extern # else # define GLAPI __declspec(dllimport) extern # endif # endif # elif defined(__GNUC__) && defined(GLAD_GLAPI_EXPORT_BUILD) # define GLAPI __attribute__ ((visibility ("default"))) extern # else # define GLAPI extern # endif # else # define GLAPI extern # endif #endif ''' glad-0.1.30/glad/lang/c/loader/egl.py000066400000000000000000000027401347444401100171500ustar00rootroot00000000000000from glad.lang.common.loader import BaseLoader _EGL_LOADER = ''' int gladLoadEGL(void) { return gladLoadEGLLoader((GLADloadproc)eglGetProcAddress); } ''' _EGL_HEADER = ''' #ifndef __glad_egl_h_ #ifdef __egl_h_ #error EGL header already included, remove this include, glad already provides it #endif #define __glad_egl_h_ #define __egl_h_ #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) #define APIENTRY __stdcall #endif #ifndef APIENTRY #define APIENTRY #endif #ifndef APIENTRYP #define APIENTRYP APIENTRY * #endif #ifndef GLAPI #define GLAPI extern #endif #ifdef __cplusplus extern "C" { #endif typedef void* (* GLADloadproc)(const char *name); ''' _EGL_HEADER_LOADER = ''' GLAPI int gladLoadEGL(void); ''' _EGL_HEADER_END = ''' #ifdef __cplusplus } #endif #endif ''' _EGL_HAS_EXT = ''' ''' class EGLCLoader(BaseLoader): def write(self, fobj): if not self.disabled: fobj.write(_EGL_LOADER) def write_begin_load(self, fobj): # suppress unused warnings fobj.write('\t(void) load;\n') def write_end_load(self, fobj): fobj.write('\treturn 1;\n') def write_find_core(self, fobj): pass def write_has_ext(self, fobj): fobj.write(_EGL_HAS_EXT) def write_header(self, fobj): fobj.write(_EGL_HEADER) if not self.disabled: fobj.write(_EGL_HEADER_LOADER) def write_header_end(self, fobj): fobj.write(_EGL_HEADER_END) glad-0.1.30/glad/lang/c/loader/gl.py000066400000000000000000000142661347444401100170110ustar00rootroot00000000000000from glad.lang.common.loader import BaseLoader from glad.lang.c.loader import LOAD_OPENGL_DLL, LOAD_OPENGL_DLL_H, LOAD_OPENGL_GLAPI_H _OPENGL_LOADER = \ LOAD_OPENGL_DLL % {'pre':'static', 'init':'open_gl', 'proc':'get_proc', 'terminate':'close_gl'} + ''' int gladLoadGL(void) { int status = 0; if(open_gl()) { status = gladLoadGLLoader(&get_proc); close_gl(); } return status; } ''' _OPENGL_HAS_EXT = ''' struct gladGLversionStruct GLVersion = { 0, 0 }; #if defined(GL_ES_VERSION_3_0) || defined(GL_VERSION_3_0) #define _GLAD_IS_SOME_NEW_VERSION 1 #endif static int max_loaded_major; static int max_loaded_minor; static const char *exts = NULL; static int num_exts_i = 0; static char **exts_i = NULL; static int get_exts(void) { #ifdef _GLAD_IS_SOME_NEW_VERSION if(max_loaded_major < 3) { #endif exts = (const char *)glGetString(GL_EXTENSIONS); #ifdef _GLAD_IS_SOME_NEW_VERSION } else { unsigned int index; num_exts_i = 0; glGetIntegerv(GL_NUM_EXTENSIONS, &num_exts_i); if (num_exts_i > 0) { exts_i = (char **)malloc((size_t)num_exts_i * (sizeof *exts_i)); } if (exts_i == NULL) { return 0; } for(index = 0; index < (unsigned)num_exts_i; index++) { const char *gl_str_tmp = (const char*)glGetStringi(GL_EXTENSIONS, index); size_t len = strlen(gl_str_tmp); char *local_str = (char*)malloc((len+1) * sizeof(char)); if(local_str != NULL) { memcpy(local_str, gl_str_tmp, (len+1) * sizeof(char)); } exts_i[index] = local_str; } } #endif return 1; } static void free_exts(void) { if (exts_i != NULL) { int index; for(index = 0; index < num_exts_i; index++) { free((char *)exts_i[index]); } free((void *)exts_i); exts_i = NULL; } } static int has_ext(const char *ext) { #ifdef _GLAD_IS_SOME_NEW_VERSION if(max_loaded_major < 3) { #endif const char *extensions; const char *loc; const char *terminator; extensions = exts; if(extensions == NULL || ext == NULL) { return 0; } while(1) { loc = strstr(extensions, ext); if(loc == NULL) { return 0; } terminator = loc + strlen(ext); if((loc == extensions || *(loc - 1) == ' ') && (*terminator == ' ' || *terminator == '\\0')) { return 1; } extensions = terminator; } #ifdef _GLAD_IS_SOME_NEW_VERSION } else { int index; if(exts_i == NULL) return 0; for(index = 0; index < num_exts_i; index++) { const char *e = exts_i[index]; if(exts_i[index] != NULL && strcmp(e, ext) == 0) { return 1; } } } #endif return 0; } ''' _OPENGL_HEADER_START = ''' #ifndef __glad_h_ #define __glad_h_ ''' _OPENGL_HEADER_INCLUDE_ERROR = ''' #ifdef __{0}_h_ #error {1} header already included, remove this include, glad already provides it #endif #define __{0}_h_ ''' _OPENGL_HEADER = ''' #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) #define APIENTRY __stdcall #endif #ifndef APIENTRY #define APIENTRY #endif #ifndef APIENTRYP #define APIENTRYP APIENTRY * #endif #ifndef GLAPIENTRY #define GLAPIENTRY APIENTRY #endif #ifdef __cplusplus extern "C" { #endif struct gladGLversionStruct { int major; int minor; }; typedef void* (* GLADloadproc)(const char *name); ''' + LOAD_OPENGL_GLAPI_H + ''' GLAPI struct gladGLversionStruct GLVersion; ''' _OPENGL_HEADER_LOADER = ''' GLAPI int gladLoadGL(void); ''' + LOAD_OPENGL_DLL_H _OPENGL_HEADER_END = ''' #ifdef __cplusplus } #endif #endif ''' _FIND_VERSION = ''' /* Thank you @elmindreda * https://github.com/elmindreda/greg/blob/master/templates/greg.c.in#L176 * https://github.com/glfw/glfw/blob/master/src/context.c#L36 */ int i, major, minor; const char* version; const char* prefixes[] = { "OpenGL ES-CM ", "OpenGL ES-CL ", "OpenGL ES ", NULL }; version = (const char*) glGetString(GL_VERSION); if (!version) return; for (i = 0; prefixes[i]; i++) { const size_t length = strlen(prefixes[i]); if (strncmp(version, prefixes[i], length) == 0) { version += length; break; } } /* PR #18 */ #ifdef _MSC_VER sscanf_s(version, "%d.%d", &major, &minor); #else sscanf(version, "%d.%d", &major, &minor); #endif GLVersion.major = major; GLVersion.minor = minor; max_loaded_major = major; max_loaded_minor = minor; ''' class OpenGLCLoader(BaseLoader): def write(self, fobj): if not self.disabled and 'gl' in self.apis: fobj.write(_OPENGL_LOADER) def write_begin_load(self, fobj): fobj.write('\tGLVersion.major = 0; GLVersion.minor = 0;\n') fobj.write('\tglGetString = (PFNGLGETSTRINGPROC)load("glGetString");\n') fobj.write('\tif(glGetString == NULL) return 0;\n') fobj.write('\tif(glGetString(GL_VERSION) == NULL) return 0;\n') def write_end_load(self, fobj): fobj.write('\treturn GLVersion.major != 0 || GLVersion.minor != 0;\n') def write_find_core(self, fobj): fobj.write(_FIND_VERSION) def write_find_core_end(self, fobj): fobj.write(_FIND_VERSION) def write_has_ext(self, fobj): fobj.write(_OPENGL_HAS_EXT) def write_header(self, fobj): fobj.write(_OPENGL_HEADER_START) written = set() for api, hname, name in [ ('gl', 'gl', 'OpenGL'), ('gles1', 'gl', 'OpenGL ES 1'), ('gles2', 'gl2', 'OpenGL ES 2'), ('gles2', 'gl3', 'OpenGL ES 3') ]: if api in self.apis and hname not in written: fobj.write(_OPENGL_HEADER_INCLUDE_ERROR.format(hname, name)) written.add(hname) fobj.write(_OPENGL_HEADER) if not self.disabled and 'gl' in self.apis: fobj.write(_OPENGL_HEADER_LOADER) def write_header_end(self, fobj): fobj.write(_OPENGL_HEADER_END) glad-0.1.30/glad/lang/c/loader/glx.py000066400000000000000000000066711347444401100172020ustar00rootroot00000000000000from glad.lang.common.loader import BaseLoader from glad.lang.c.loader import LOAD_OPENGL_DLL, LOAD_OPENGL_DLL_H, LOAD_OPENGL_GLAPI_H _GLX_LOADER = \ LOAD_OPENGL_DLL % {'pre':'static', 'init':'open_gl', 'proc':'get_proc', 'terminate':'close_gl'} + ''' int gladLoadGLX(Display *dpy, int screen) { int status = 0; if(open_gl()) { status = gladLoadGLXLoader((GLADloadproc)get_proc, dpy, screen); close_gl(); } return status; } ''' _GLX_HEADER_START = ''' #include #include #include ''' #include _WGL_HEADER_MID = ''' #ifndef __glad_glxext_h_ #ifdef __glxext_h_ #error GLX header already included, remove this include, glad already provides it #endif #define __glad_glxext_h_ #define __glxext_h_ #ifndef APIENTRY #define APIENTRY #endif #ifndef APIENTRYP #define APIENTRYP APIENTRY * #endif #ifdef __cplusplus extern "C" { #endif typedef void* (* GLADloadproc)(const char *name); ''' + LOAD_OPENGL_GLAPI_H _GLX_HEADER_LOADER = ''' GLAPI int gladLoadGLX(Display *dpy, int screen); ''' + LOAD_OPENGL_DLL_H _GLX_HEADER_END = ''' #ifdef __cplusplus } #endif #endif ''' _GLX_HAS_EXT = ''' static Display *GLADGLXDisplay = 0; static int GLADGLXscreen = 0; static int get_exts(void) { return 1; } static void free_exts(void) { return; } static int has_ext(const char *ext) { const char *terminator; const char *loc; const char *extensions; if(!GLAD_GLX_VERSION_1_1) return 0; extensions = glXQueryExtensionsString(GLADGLXDisplay, GLADGLXscreen); if(extensions == NULL || ext == NULL) return 0; while(1) { loc = strstr(extensions, ext); if(loc == NULL) break; terminator = loc + strlen(ext); if((loc == extensions || *(loc - 1) == ' ') && (*terminator == ' ' || *terminator == '\\0')) { return 1; } extensions = terminator; } return 0; } ''' class GLXCLoader(BaseLoader): def write(self, fobj): if not self.disabled: fobj.write(_GLX_LOADER) def write_begin_load(self, fobj): fobj.write('\tglXQueryVersion = (PFNGLXQUERYVERSIONPROC)load("glXQueryVersion");\n') fobj.write('\tif(glXQueryVersion == NULL) return 0;\n') def write_end_load(self, fobj): fobj.write('\treturn 1;\n') def write_find_core(self, fobj): fobj.write('\tint major = 0, minor = 0;\n') fobj.write('\tif(dpy == 0 && GLADGLXDisplay == 0) {\n') fobj.write('\t\tdpy = XOpenDisplay(0);\n') fobj.write('\t\tscreen = XScreenNumberOfScreen(XDefaultScreenOfDisplay(dpy));\n') fobj.write('\t} else if(dpy == 0) {\n') fobj.write('\t\tdpy = GLADGLXDisplay;\n') fobj.write('\t\tscreen = GLADGLXscreen;\n') fobj.write('\t}\n') fobj.write('\tglXQueryVersion(dpy, &major, &minor);\n') fobj.write('\tGLADGLXDisplay = dpy;\n') fobj.write('\tGLADGLXscreen = screen;\n') def write_has_ext(self, fobj): fobj.write(_GLX_HAS_EXT) def write_header(self, fobj): fobj.write(_GLX_HEADER_START) if self.local_files: fobj.write('#include "glad.h"\n') else: fobj.write('#include \n') fobj.write(_WGL_HEADER_MID) if not self.disabled: fobj.write(_GLX_HEADER_LOADER) def write_header_end(self, fobj): fobj.write(_GLX_HEADER_END) glad-0.1.30/glad/lang/c/loader/wgl.py000066400000000000000000000064421347444401100171750ustar00rootroot00000000000000from glad.lang.common.loader import BaseLoader from glad.lang.c.loader import LOAD_OPENGL_DLL, LOAD_OPENGL_DLL_H, LOAD_OPENGL_GLAPI_H _WGL_LOADER = \ LOAD_OPENGL_DLL % {'pre':'static', 'init':'open_gl', 'proc':'get_proc', 'terminate':'close_gl'} + ''' int gladLoadWGL(HDC hdc) { int status = 0; if(open_gl()) { status = gladLoadWGLLoader((GLADloadproc)get_proc, hdc); close_gl(); } return status; } ''' _WGL_HEADER_START = ''' #ifndef WINAPI #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN 1 #endif #ifndef NOMINMAX #define NOMINMAX 1 #endif #include #endif ''' #include _WGL_HEADER_MID = ''' #ifndef __glad_wglext_h_ #ifdef __wglext_h_ #error WGL header already included, remove this include, glad already provides it #endif #define __glad_wglext_h_ #define __wglext_h_ #ifndef APIENTRY #define APIENTRY #endif #ifndef APIENTRYP #define APIENTRYP APIENTRY * #endif #ifdef __cplusplus extern "C" { #endif typedef void* (* GLADloadproc)(const char *name); ''' + LOAD_OPENGL_GLAPI_H _WGL_HEADER_LOADER = ''' GLAPI int gladLoadWGL(HDC hdc); ''' + LOAD_OPENGL_DLL_H _WGL_HEADER_END = ''' #ifdef __cplusplus } #endif #endif ''' _WGL_HAS_EXT = ''' static HDC GLADWGLhdc = (HDC)INVALID_HANDLE_VALUE; static int get_exts(void) { return 1; } static void free_exts(void) { return; } static int has_ext(const char *ext) { const char *terminator; const char *loc; const char *extensions; if(wglGetExtensionsStringEXT == NULL && wglGetExtensionsStringARB == NULL) return 0; if(wglGetExtensionsStringARB == NULL || GLADWGLhdc == INVALID_HANDLE_VALUE) extensions = wglGetExtensionsStringEXT(); else extensions = wglGetExtensionsStringARB(GLADWGLhdc); if(extensions == NULL || ext == NULL) return 0; while(1) { loc = strstr(extensions, ext); if(loc == NULL) break; terminator = loc + strlen(ext); if((loc == extensions || *(loc - 1) == ' ') && (*terminator == ' ' || *terminator == '\\0')) { return 1; } extensions = terminator; } return 0; } ''' class WGLCLoader(BaseLoader): def write(self, fobj): if not self.disabled: fobj.write(_WGL_LOADER) def write_begin_load(self, fobj): fobj.write('\twglGetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC)load("wglGetExtensionsStringARB");\n') fobj.write('\twglGetExtensionsStringEXT = (PFNWGLGETEXTENSIONSSTRINGEXTPROC)load("wglGetExtensionsStringEXT");\n') fobj.write('\tif(wglGetExtensionsStringARB == NULL && wglGetExtensionsStringEXT == NULL) return 0;\n') def write_end_load(self, fobj): fobj.write('\treturn 1;\n') def write_find_core(self, fobj): fobj.write('\tGLADWGLhdc = hdc;\n') def write_has_ext(self, fobj): fobj.write(_WGL_HAS_EXT) def write_header(self, fobj): fobj.write(_WGL_HEADER_START) if self.local_files: fobj.write('#include "glad.h"\n') else: fobj.write('#include \n') fobj.write(_WGL_HEADER_MID) if not self.disabled: fobj.write(_WGL_HEADER_LOADER) def write_header_end(self, fobj): fobj.write(_WGL_HEADER_END) glad-0.1.30/glad/lang/common/000077500000000000000000000000001347444401100156245ustar00rootroot00000000000000glad-0.1.30/glad/lang/common/__init__.py000066400000000000000000000000001347444401100177230ustar00rootroot00000000000000glad-0.1.30/glad/lang/common/generator.py000066400000000000000000000201051347444401100201620ustar00rootroot00000000000000from collections import defaultdict from datetime import datetime from itertools import chain import os.path import sys from glad.lang.common.loader import NullLoader from glad.opener import URLOpener from glad.util import api_name, Version import glad if sys.version_info >= (3, 0): from urllib.parse import urlencode else: from urllib import urlencode HEADER_TEMPLATE = ''' {apis_named} loader generated by glad {version} on {date}. Language/Generator: {language} Specification: {specification} APIs: {apis} Profile: {profile} Extensions: {extensions} Loader: {loader} Local files: {local_files} Omit khrplatform: {omit_khrplatform} Reproducible: {reproducible} Commandline: {commandline} Online: {online} ''' class Generator(object): NAME = None NAME_LONG = None URL = 'https://glad.dav1d.de' def __init__(self, path, spec, api, extension_names=None, loader=None, opener=None, local_files=False, omit_khrplatform=False, header_template=HEADER_TEMPLATE, **options): self.path = os.path.abspath(path) self.spec = spec for a in api: if a not in self.spec.features: raise ValueError( 'Unknown API "{0}" for specification "{1}", the following APIs are available "{2}".' .format(a, self.spec.NAME, ', '.join(self.spec.features.keys())) ) self.api = api self.extension_names = extension_names self.has_loader = not loader.disabled self.loader = loader if self.loader is None: self.loader = NullLoader self.opener = opener if self.opener is None: self.opener = URLOpener.default() self.local_files = local_files self.omit_khrplatform = omit_khrplatform self.options = options self._header_template = header_template def open(self): raise NotImplementedError def close(self): raise NotImplementedError def __enter__(self): self.open() return self def __exit__(self, exc_type, exc_value, traceback): self.close() def generate(self): features = list() for api, version in self.api.items(): features.extend(self.spec.features[api]) if version is None: version = list(self.spec.features[api].keys())[-1] self.api[api] = Version(*version) if version not in self.spec.features[api]: raise ValueError( 'Unknown version "{0}" for specification "{1}"' .format(version, self.spec.NAME) ) if self.extension_names is None: self.extension_names = list(chain.from_iterable(self.spec.extensions[a] for a in self.api)) # sort and eliminate duplicates self.extension_names = list(sorted(set(self.extension_names))) e = list(chain.from_iterable(self.spec.extensions[a] for a in self.api)) for ext in self.extension_names: if ext not in e: raise ValueError( 'Invalid extension "{0}" for specification "{1}"' .format(ext, self.spec.NAME) ) self.generate_header() types = [t for t in self.spec.types if t.api is None or t.api in self.api] self.generate_types(types) f = list() for api, version in self.api.items(): f.extend([value for key, value in self.spec.features[api].items() if key <= version]) enums, functions = merge(f) self.generate_features(f) extensions = list() for api in self.api: extensions.extend(self.spec.extensions[api][ext] for ext in self.extension_names if ext in self.spec.extensions[api]) self.generate_extensions(extensions, enums, functions) fs = defaultdict(list) es = defaultdict(list) for api, version in self.api.items(): fs[api].extend( [value for key, value in self.spec.features[api].items() if key <= version] ) es[api].extend(self.spec.extensions[api][ext] for ext in self.extension_names if ext in self.spec.extensions[api]) self.generate_loader(fs, es) @property def header(self): apis_named = ', '.join(sorted(set(api_name(api) for api in self.api))) date = datetime.now().strftime('%c') language = self.NAME_LONG specification = self.spec.NAME apis = ', '.join('{}={}'.format(api, '.'.join(map(str, version))) for api, version in self.api.items()) profile = getattr(self.spec, 'profile', '-') extensions = ',\n '.join(sorted(self.extension_names)) online = self.online if len(online) > 2000: online = 'Too many extensions' if self.options.get('reproducible', False): date = '-' return self._header_template.format( apis_named=apis_named, version=glad.__version__, date=date, language=language, specification=specification, apis=apis, profile=profile, extensions=extensions, loader=self.has_loader, local_files=self.local_files, omit_khrplatform=self.omit_khrplatform, reproducible=self.options.get('reproducible', False), commandline=self.commandline, online=online ) @property def commandline(self): profile = getattr(self.spec, 'profile', None) if profile is not None: profile = '--profile="{}"'.format(profile) api = '--api="{}"'.format(','.join( '{}={}'.format(api, '.'.join(map(str, version))) for api, version in self.api.items()) ) generator = '--generator="{}"'.format(self.NAME) specification = '--spec="{}"'.format(self.spec.NAME) loader = '' if self.has_loader else '--no-loader' extensions = '--extensions="{}"'.format(','.join(sorted(self.extension_names))) local_files = '--local-files' if self.local_files else '' omit_khrplatform = '--omit-khrplatform' if self.omit_khrplatform else '' reproducible = '--reproducible' if self.options.get('reproducible', False) else '' return ' '.join(filter(None, [ profile, api, generator, specification, loader, local_files, omit_khrplatform, extensions ])) @property def online(self): profile = getattr(self.spec, 'profile', None) if profile is not None: profile = ('profile', profile) api = [('api', s) for s in ('{}={}'.format(api, '.'.join(map(str, version))) for api, version in self.api.items())] generator = ('language', self.NAME) specification = ('specification', self.spec.NAME) loader = ('loader', 'on') if self.has_loader else None extensions = [('extensions', ext) for ext in self.extension_names] data = [profile, generator, specification, loader] data.extend(api) data.extend(extensions) data = list(filter(None, data)) serialized = urlencode(data) # TODO: --local-files, --omit-khrplatform return '{}/#{}'.format(self.URL, serialized) def generate_header(self): raise NotImplementedError def generate_loader(self, features, extensions): raise NotImplementedError def generate_types(self, types): raise NotImplementedError def generate_features(self, features): raise NotImplementedError def generate_extensions(self, extensions, enums, functions): raise NotImplementedError def merge(features): enums = set() functions = set() for feature in features: enums |= set(feature.enums) functions |= set(feature.functions) return enums, functions glad-0.1.30/glad/lang/common/loader.py000066400000000000000000000023661347444401100174530ustar00rootroot00000000000000class BaseLoader(object): def __init__(self, apis, disabled=False, local_files=False): self.apis = apis self.disabled = disabled self.local_files = local_files def write(self, fobj): raise NotImplementedError def write_begin_load(self, fobj): raise NotImplementedError def write_end_load(self, fobj): raise NotImplementedError def write_find_core(self, fobj): raise NotImplementedError def write_has_ext(self, fobj): raise NotImplementedError def write_header(self, fobj): raise NotImplementedError def write_header_end(self, fobj): raise NotImplementedError class NullLoader(BaseLoader): def write_begin_load(self, fobj): pass def write_end_load(self, fobj): pass def write_header_end(self, fobj): pass def write_has_ext(self, fobj): pass def write(self, fobj): pass def write_header(self, fobj): pass def write_find_core(self, fobj): pass def __getattr__(self, name): try: return self.__getattribute__(name) except AttributeError: pass def dummy(*args, **kwargs): pass return dummy glad-0.1.30/glad/lang/common/util.py000066400000000000000000000003301347444401100171470ustar00rootroot00000000000000import os.path import os def enforce(exp, message, exc): if not exp: raise exc(message) def makefiledir(path): dir = os.path.split(path)[0] if not os.path.exists(dir): os.makedirs(dir)glad-0.1.30/glad/lang/d/000077500000000000000000000000001347444401100145575ustar00rootroot00000000000000glad-0.1.30/glad/lang/d/__init__.py000066400000000000000000000007631347444401100166760ustar00rootroot00000000000000from glad.lang.d.loader.egl import EGLDLoader from glad.lang.d.loader.gl import OpenGLDLoader from glad.lang.d.loader.glx import GLXDLoader from glad.lang.d.loader.wgl import WGLDLoader from glad.lang.d.generator import DGenerator _specs = { 'egl': EGLDLoader, 'gl': OpenGLDLoader, 'glx': GLXDLoader, 'wgl': WGLDLoader } _generators = { 'd': DGenerator, } def get_generator(name, spec): gen = _generators.get(name) loader = _specs.get(spec) return gen, loader glad-0.1.30/glad/lang/d/generator.py000066400000000000000000000704111347444401100171220ustar00rootroot00000000000000from itertools import chain import os.path import sys from glad.lang.common.generator import Generator from glad.lang.common.util import makefiledir if sys.version_info >= (3, 0): from io import StringIO basestring = str else: from StringIO import StringIO def _gl_types(gen, f): gen.write_opaque_struct(f, '__GLsync') gen.write_alias(f, 'GLsync', '__GLsync*') gen.write_opaque_struct(f, '_cl_context') gen.write_opaque_struct(f, '_cl_event') gen.write_extern(f) gen.write_alias( f, 'GLDEBUGPROC', 'void function(GLenum, GLenum, ' 'GLuint, GLenum, GLsizei, in GLchar*, GLvoid*)' ) gen.write_alias(f, 'GLDEBUGPROCARB', 'GLDEBUGPROC') gen.write_alias(f, 'GLDEBUGPROCKHR', 'GLDEBUGPROC') gen.write_alias( f, 'GLDEBUGPROCAMD', 'void function(GLuint, GLenum, ' 'GLenum, GLsizei, in GLchar*, GLvoid*)' ) gen.write_extern_end(f) def _egl_types(gen, f): io = StringIO() gen.write_opaque_struct(io, 'egl_native_pixmap_t') f.write(''' // Thanks to @jpf91 (github) for these declarations version(Windows) { import core.sys.windows.windows; alias EGLNativeDisplayType = HDC; alias EGLNativePixmapType = HBITMAP; alias EGLNativeWindowType = HWND; } else version(Symbian) { alias EGLNativeDisplayType = int; alias EGLNativeWindowType = void*; alias EGLNativePixmapType = void*; } else version(Android) { //import android.native_window; //struct egl_native_pixmap_t; ''' + io.getvalue() + ''' //alias ANativeWindow* EGLNativeWindowType; //alias egl_native_pixmap_t* EGLNativePixmapType; alias EGLNativeWindowType = void*; alias EGLNativePixmapType = void*; alias EGLNativeDisplayType = void*; } else version(linux) { version(Xlib) { import X11.Xlib; import X11.Xutil; alias EGLNativeDisplayType = Display*; alias EGLNativePixmapType = Pixmap; alias EGLNativeWindowType = Window; } else { alias EGLNativeDisplayType = void*; alias EGLNativePixmapType = uint; alias EGLNativeWindowType = uint; } } alias EGLObjectKHR = void*; alias EGLLabelKHR = void*; extern(System) { alias EGLSetBlobFuncANDROID = void function(const(void)*, EGLsizeiANDROID, const(void)*, EGLsizeiANDROID); alias EGLGetBlobFuncANDROID = EGLsizeiANDROID function(const(void)*, EGLsizeiANDROID, const(void)* EGLsizeiANDROID); struct EGLClientPixmapHI { void *pData; EGLint iWidth; EGLint iHeight; EGLint iStride; } alias EGLDEBUGPROCKHR = void function(EGLenum error,const char *command,EGLint messageType,EGLLabelKHR threadLabel,EGLLabelKHR objectLabel,const char* message); } ''') gen.write_extern(f) gen.write_opaque_struct(f, '_cl_event') gen.write_extern_end(f) def _glx_types(gen, f): f.write(''' version(Xlib) { import X11.Xlib; import X11.Xutil; } else { alias Bool = int; alias Status = int; alias VisualID = uint; alias XPointer = byte*; alias XID = uint; alias Colormap = XID; alias Display = void; alias Font = XID; alias Window = XID; alias Drawable = XID; alias Pixmap = XID; alias Cursor = XID; alias GContext = XID; alias KeySym = XID; extern(System) { // Borrowed from derelict struct XExtData { int number; XExtData* next; extern(C) int function(XExtData*) free_private; XPointer private_data; } struct Visual { XExtData* ext_data; VisualID visualid; int _class; uint red_mask, green_mask, blue_mask; int bits_per_rgb; int map_entries; } struct XVisualInfo { Visual *visual; VisualID visualid; int screen; int depth; int _class; uint red_mask; uint green_mask; uint blue_mask; int colormap_size; int bits_per_rgb; } } } alias DMbuffer = void*; alias DMparams = void*; alias VLNode = void*; alias VLPath = void*; alias VLServer = void*; alias int64_t = long; alias uint64_t = ulong; alias int32_t = int; alias GLXContextID = uint; alias GLXPixmap = uint; alias GLXDrawable = uint; alias GLXPbuffer = uint; alias GLXWindow = uint; alias GLXFBConfigID = uint; alias GLXVideoCaptureDeviceNV = XID; alias GLXPbufferSGIX = XID; alias GLXVideoSourceSGIX = XID; alias GLXVideoDeviceNV = uint; extern(System) { alias __GLXextFuncPtr = void function(); struct GLXPbufferClobberEvent { int event_type; /* GLX_DAMAGED or GLX_SAVED */ int draw_type; /* GLX_WINDOW or GLX_PBUFFER */ ulong serial; /* # of last request processed by server */ Bool send_event; /* true if this came for SendEvent request */ Display *display; /* display the event was read from */ GLXDrawable drawable; /* XID of Drawable */ uint buffer_mask; /* mask indicating which buffers are affected */ uint aux_buffer; /* which aux buffer was affected */ int x, y; int width, height; int count; /* if nonzero, at least this many more */ } struct GLXBufferSwapComplete { int type; ulong serial; /* # of last request processed by server */ Bool send_event; /* true if this came from a SendEvent request */ Display *display; /* Display the event was read from */ GLXDrawable drawable; /* drawable on which event was requested in event mask */ int event_type; long ust; long msc; long sbc; } union GLXEvent { GLXPbufferClobberEvent glxpbufferclobber; GLXBufferSwapComplete glxbufferswapcomplete; int[24] pad; } struct GLXBufferClobberEventSGIX { int type; ulong serial; /* # of last request processed by server */ Bool send_event; /* true if this came for SendEvent request */ Display *display; /* display the event was read from */ GLXDrawable drawable; /* i.d. of Drawable */ int event_type; /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */ int draw_type; /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */ uint mask; /* mask indicating which buffers are affected*/ int x, y; int width, height; int count; /* if nonzero, at least this many more */ } struct GLXHyperpipeNetworkSGIX { char[80] pipeName; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ int networkId; } struct GLXHyperpipeConfigSGIX { char[80] pipeName; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ int channel; uint participationType; int timeSlice; } struct GLXPipeRect { char[80] pipeName; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ int srcXOrigin, srcYOrigin, srcWidth, srcHeight; int destXOrigin, destYOrigin, destWidth, destHeight; } struct GLXPipeRectLimits { char[80] pipeName; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ int XOrigin, YOrigin, maxHeight, maxWidth; } } ''') gen.write_extern(f) gen.write_opaque_struct(f, '__GLXcontextRec') gen.write_alias(f, 'GLXContext', '__GLXcontextRec*') gen.write_opaque_struct(f, '__GLXFBConfigRec') gen.write_alias(f, 'GLXFBConfig', '__GLXFBConfigRec*') gen.write_alias(f, 'GLXFBConfigSGIX', '__GLXFBConfigRec*') gen.write_extern_end(f) def _wgl_types(gen, f): f.write(''' version(Windows) { public import core.sys.windows.windows; } else { alias BOOL = int; alias CHAR = char; alias WORD = ushort; alias DWORD = uint; alias FLOAT = float; alias HANDLE = void*; alias HDC = HANDLE; alias HGLRC = HANDLE; alias INT = int; alias LPCSTR = const(CHAR)*; alias LPVOID = void*; alias UINT = uint; alias USHORT = ushort; alias VOID = void; alias COLORREF = DWORD; alias HENHMETAFILE = HANDLE; alias BYTE = byte; } alias PROC = HANDLE; extern(System) { struct RECT { int left; int top; int right; int bottom; } struct LAYERPLANEDESCRIPTOR { WORD nSize; WORD nVersion; DWORD dwFlags; BYTE iPixelType; BYTE cColorBits; BYTE cRedBits; BYTE cRedShift; BYTE cGreenBits; BYTE cGreenShift; BYTE cBlueBits; BYTE cBlueShift; BYTE cAlphaBits; BYTE cAlphaShift; BYTE cAccumBits; BYTE cAccumRedBits; BYTE cAccumGreenBits; BYTE cAccumBlueBits; BYTE cAccumAlphaBits; BYTE cDepthBits; BYTE cStencilBits; BYTE cAuxBuffers; BYTE iLayerType; BYTE bReserved; COLORREF crTransparent; } struct PIXELFORMATDESCRIPTOR { WORD nSize; WORD nVersion; DWORD dwFlags; BYTE iPixelType; BYTE cColorBits; BYTE cRedBits; BYTE cRedShift; BYTE cGreenBits; BYTE cGreenShift; BYTE cBlueBits; BYTE cBlueShift; BYTE cAlphaBits; BYTE cAlphaShift; BYTE cAccumBits; BYTE cAccumRedBits; BYTE cAccumGreenBits; BYTE cAccumBlueBits; BYTE cAccumAlphaBits; BYTE cDepthBits; BYTE cStencilBits; BYTE cAuxBuffers; BYTE iLayerType; BYTE bReserved; DWORD dwLayerMask; DWORD dwVisibleMask; DWORD dwDamageMask; } struct POINTFLOAT { FLOAT x; FLOAT y; } struct GLYPHMETRICSFLOAT { FLOAT gmfBlackBoxX; FLOAT gmfBlackBoxY; POINTFLOAT gmfptGlyphOrigin; FLOAT gmfCellIncX; FLOAT gmfCellIncY; } alias PGLYPHMETRICSFLOAT = GLYPHMETRICSFLOAT*; alias LPGLYPHMETRICSFLOAT = GLYPHMETRICSFLOAT; struct GPU_DEVICE { DWORD cb; CHAR[32] DeviceName; CHAR[128] DeviceString; DWORD Flags; RECT rcVirtualScreen; } alias PGPU_DEVICE = GPU_DEVICE; } ''') gen.write_opaque_struct(f, 'HPBUFFERARB') gen.write_opaque_struct(f, 'HPBUFFEREXT') gen.write_opaque_struct(f, 'HVIDEOOUTPUTDEVICENV') gen.write_opaque_struct(f, 'HPVIDEODEV') gen.write_opaque_struct(f, 'HPGPUNV') gen.write_opaque_struct(f, 'HGPUNV') gen.write_opaque_struct(f, 'HVIDEOINPUTDEVICENV') DTYPES = { '__pre': { 'egl': 'import core.stdc.stdint : intptr_t;\n\n' }, '__other': { 'gl': _gl_types, 'egl': _egl_types, 'glx': _glx_types, 'wgl': _wgl_types }, 'gl': { 'GLenum': 'uint', 'GLvoid': 'void', 'GLboolean': 'ubyte', 'GLbitfield': 'uint', 'GLchar': 'char', 'GLbyte': 'byte', 'GLshort': 'short', 'GLint': 'int', 'GLclampx': 'int', 'GLsizei': 'int', 'GLubyte': 'ubyte', 'GLushort': 'ushort', 'GLuint': 'uint', 'GLhalf': 'ushort', 'GLfloat': 'float', 'GLclampf': 'float', 'GLdouble': 'double', 'GLclampd': 'double', 'GLfixed': 'int', 'GLintptr': 'ptrdiff_t', 'GLsizeiptr': 'ptrdiff_t', 'GLintptrARB': 'ptrdiff_t', 'GLsizeiptrARB': 'ptrdiff_t', 'GLcharARB': 'byte', 'GLhandleARB': 'uint', 'GLhalfARB': 'ushort', 'GLhalfNV': 'ushort', 'GLint64EXT': 'long', 'GLuint64EXT': 'ulong', 'GLint64': 'long', 'GLuint64': 'ulong', 'GLvdpauSurfaceNV': 'ptrdiff_t', 'GLeglImageOES': 'void*' }, 'egl': { 'EGLBoolean': 'uint', 'EGLenum': 'uint', 'EGLAttribKHR': 'intptr_t', 'EGLAttrib': 'intptr_t', 'EGLClientBuffer': 'void*', 'EGLConfig': 'void*', 'EGLContext': 'void*', 'EGLDeviceEXT': 'void*', 'EGLDisplay': 'void*', 'EGLImage': 'void*', 'EGLImageKHR': 'void*', 'EGLOutputLayerEXT': 'void*', 'EGLOutputPortEXT': 'void*', 'EGLStreamKHR': 'void*', 'EGLSurface': 'void*', 'EGLSync': 'void*', 'EGLSyncKHR': 'void*', 'EGLSyncNV': 'void*', '__eglMustCastToProperFunctionPointerType': 'void function()', 'EGLint': 'int', 'EGLTimeKHR': 'ulong', 'EGLTime': 'ulong', 'EGLTimeNV': 'ulong', 'EGLuint64NV': 'ulong', 'EGLuint64KHR': 'ulong', 'EGLuint64MESA': 'ulong', 'EGLsizeiANDROID': 'ptrdiff_t', 'EGLNativeFileDescriptorKHR': 'int' }, 'glx': { 'GLboolean': 'ubyte', 'GLenum': 'uint', 'GLint': 'int', 'GLsizei': 'int', 'GLubyte': 'ubyte', 'GLuint': 'uint', 'GLfloat': 'float', 'GLbitfield': 'uint', 'GLintptr': 'ptrdiff_t', 'GLsizeiptr': 'ptrdiff_t' }, 'wgl': { 'GLbitfield': 'uint', 'GLenum': 'uint', 'GLfloat': 'float', 'GLint': 'int', 'GLsizei': 'int', 'GLuint': 'uint', 'GLushort': 'ushort', 'INT32': 'int', 'INT64': 'long', 'GLboolean': 'ubyte' }, 'SpecialNumbers': { 'gl': [ ('GL_FALSE', '0', 'ubyte'), ('GL_TRUE', '1', 'ubyte'), ('GL_NO_ERROR', '0', 'uint'), ('GL_NONE', '0', 'uint'), ('GL_ZERO', '0', 'uint'), ('GL_ONE', '1', 'uint'), ('GL_NONE_OES', '0', 'uint'), ('GL_INVALID_INDEX', '0xFFFFFFFF', 'uint'), ('GL_TIMEOUT_IGNORED', '0xFFFFFFFFFFFFFFFF', 'ulong'), ('GL_TIMEOUT_IGNORED_APPLE', '0xFFFFFFFFFFFFFFFF', 'ulong'), ('GL_VERSION_ES_CL_1_0', '1', 'uint'), ('GL_VERSION_ES_CM_1_1', '1', 'uint'), ('GL_VERSION_ES_CL_1_1', '1', 'uint') ], 'egl': [ ('EGL_DONT_CARE', '-1', 'int'), ('EGL_UNKNOWN', '-1', 'int'), ('EGL_NO_NATIVE_FENCE_FD_ANDROID', '-1', 'uint'), ('EGL_DEPTH_ENCODING_NONE_NV', '0', 'uint'), ('EGL_NO_CONTEXT', 'cast(EGLContext)0', 'EGLContext'), ('EGL_NO_DEVICE_EXT', 'cast(EGLDeviceEXT)0', 'EGLDeviceEXT'), ('EGL_NO_DISPLAY', 'cast(EGLDisplay)0', 'EGLDisplay'), ('EGL_NO_IMAGE', 'cast(EGLImage)0', 'EGLImage'), ('EGL_NO_IMAGE_KHR', 'cast(EGLImageKHR)0', 'EGLImageKHR'), ('EGL_DEFAULT_DISPLAY', 'cast(EGLNativeDisplayType)0', 'EGLNativeDisplayType'), ('EGL_NO_FILE_DESCRIPTOR_KHR', 'cast(EGLNativeFileDescriptorKHR)-1', 'EGLNativeFileDescriptorKHR'), ('EGL_NO_OUTPUT_LAYER_EXT', 'cast(EGLOutputLayerEXT)0', 'EGLOutputLayerEXT'), ('EGL_NO_OUTPUT_PORT_EXT', 'cast(EGLOutputPortEXT)0', 'EGLOutputPortEXT'), ('EGL_NO_STREAM_KHR', 'cast(EGLStreamKHR)0', 'EGLStreamKHR'), ('EGL_NO_SURFACE', 'cast(EGLSurface)0', 'EGLSurface'), ('EGL_NO_SYNC', 'cast(EGLSync)0', 'EGLSync'), ('EGL_NO_SYNC_KHR', 'cast(EGLSyncKHR)0', 'EGLSyncKHR'), ('EGL_NO_SYNC_NV', 'cast(EGLSyncNV)0', 'EGLSyncNV'), ('EGL_DISPLAY_SCALING', '10000', 'uint'), ('EGL_FOREVER', '0xFFFFFFFFFFFFFFFF', 'ulong'), ('EGL_FOREVER_KHR', '0xFFFFFFFFFFFFFFFF', 'ulong'), ('EGL_FOREVER_NV', '0xFFFFFFFFFFFFFFFF', 'ulong') ], 'glx': [ ('GLX_DONT_CARE', '0xFFFFFFFF', 'uint'), ('GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB', '0', 'uint') ], 'wgl': [ ('WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB', '0', 'uint'), ('WGL_FONT_LINES', '0', 'uint'), ('WGL_FONT_POLYGONS', 1, 'uint') ] } } class BaseDGenerator(Generator): NAME = 'd' NAME_LONG = 'D' def open(self): self._f_loader = open(self.make_path(self.LOADER), 'w') self._f_gl = open(self.make_path(self.PACKAGE), 'w') self._f_types = open(self.make_path(self.TYPES), 'w') self._f_enums = open(self.make_path(self.ENUMS), 'w') self._f_funcs = open(self.make_path(self.FUNCS), 'w') self._f_exts = open(self.make_path(self.EXT), 'w') def close(self): self._f_loader.close() self._f_gl.close() self._f_types.close() self._f_enums.close() self._f_funcs.close() self._f_exts.close() @property def PACKAGE(self): return 'all' def generate_header(self): self._f_gl.write('/*\n') self._f_gl.write(self.header) self._f_gl.write('*/\n\n') def generate_loader(self, features, extensions): f = self._f_loader rfeatures = features if self.spec.NAME in ('egl', 'wgl'): features = {'egl': [], 'wgl': []} self.write_module(f, self.LOADER) self.write_imports(f, [self.FUNCS, self.EXT, self.ENUMS, self.TYPES]) self.loader.write(f) self.loader.write_has_ext(f) written = set() for api, version in self.api.items(): loadername = 'Load' if self.LOAD_GL_PREFIX else 'load' f.write('bool {}{}{}(Loader load) {{\n' .format(self.LOAD_GL_PREFIX, loadername, api.upper())) self.loader.write_begin_load(f) f.write('\tfind_core{}();\n'.format(api.upper())) for feature in features[api]: f.write('\tload_{}(load);\n'.format(feature.name)) f.write('\n\tfind_extensions{}();\n'.format(api.upper())) for ext in extensions[api]: if len(list(ext.functions)) == 0: continue f.write('\tload_{}(load);\n'.format(ext.name)) self.loader.write_end_load(f) f.write('}\n\n') f.write('private {\n\n') f.write('void find_core{}() {{\n'.format(api.upper())) self.loader.write_find_core(f) if self.spec.NAME == 'gl': for feature in features[api]: f.write('\t{} = (major == {num[0]} && minor >= {num[1]}) ||' ' major > {num[0]};\n'.format(feature.name, num=feature.number)) f.write('\treturn;\n') f.write('}\n\n') f.write('void find_extensions{}() {{\n'.format(api.upper())) if self.spec.NAME == 'gl': for ext in extensions[api]: f.write('\t{0} = has_ext("{0}");\n'.format(ext.name)) f.write('\treturn;\n') f.write('}\n\n') for feature in features[api]: f.write('void load_{}(Loader load) {{\n' .format(feature.name)) if self.spec.NAME == 'gl': f.write('\tif(!{}) return;\n'.format(feature.name)) for func in feature.functions: f.write('\t{name} = cast(typeof({name}))load("{name}");\n' .format(name=func.proto.name)) f.write('\treturn;\n}\n\n') for ext in extensions[api]: if len(list(ext.functions)) == 0 or ext.name in written: continue f.write('void load_{}(Loader load) {{\n' .format(ext.name)) if self.spec.NAME == 'gl': f.write('\tif(!{}) return;\n'.format(ext.name)) for func in ext.functions: # even if they were in written we need to load it f.write('\t{name} = cast(typeof({name}))load("{name}");\n' .format(name=func.proto.name)) f.write('\treturn;\n') f.write('}\n') written.add(ext.name) f.write('\n} /* private */\n\n') self.write_packages(rfeatures, extensions) def write_packages(self, allfeatures, allextensions): f = self._f_gl self.write_module(f, self.PACKAGE) self.write_imports(f, [self.FUNCS, self.EXT, self.ENUMS, self.TYPES], False) for api, features in allfeatures.items(): extensions = allextensions[api] with open(self.make_path(api), 'w') as f: self.write_module(f, api) self.write_imports(f, [self.TYPES], False) extenums = chain.from_iterable(ext.enums for ext in extensions) funcenums = chain.from_iterable(ext.enums for ext in extensions) enums = set(enum.name for enum in extenums) | \ set(enum.name for enum in funcenums) featfuncs = set(func.proto.name for func in chain.from_iterable(feat.functions for feat in features)) extfuncs = set(func.proto.name for func in chain.from_iterable(ext.functions for ext in extensions)) extfuncs = extfuncs - featfuncs enums |= set(enum.name for enum in chain.from_iterable(feat.enums for feat in features)) self.write_selective_import(f, self.FUNCS, featfuncs) self.write_selective_import(f, self.EXT, extfuncs) self.write_selective_import(f, self.ENUMS, enums) def generate_types(self, types): f = self._f_types self.write_module(f, self.TYPES) f.write(self.TYPE_DICT.get('__pre', {}).get(self.spec.NAME,'')) for ogl, d in self.TYPE_DICT[self.spec.NAME].items(): self.write_alias(f, ogl, d) self.TYPE_DICT['__other'][self.spec.NAME](self, f) def generate_features(self, features): self.write_enums(features) self.write_funcs(features) def write_enums(self, features): e = self._f_enums self.write_module(e, self.ENUMS) self.write_imports(e, [self.TYPES]) for v in self.TYPE_DICT['SpecialNumbers'][self.spec.NAME]: self.write_enum(e, *v) written = set() for feature in features: for enum in feature.enums: if enum.group == 'SpecialNumbers': written.add(enum) continue if not enum in written: self.write_enum(e, enum.name, enum.value) written.add(enum) def write_funcs(self, features): f = self._f_funcs self.write_module(f, self.FUNCS) self.write_imports(f, [self.TYPES]) if self.spec.NAME == 'gl': for feature in features: self.write_boolean(f, feature.name) if self.spec.NAME in ('egl', 'wgl'): self.write_extern(f) for feature in features: for func in feature.functions: self.write_function_def(f, func) self.write_extern_end(f) else: self.write_functions(f, set(), set(), features) def generate_extensions(self, extensions, enums, functions): f = self._f_exts self.write_module(f, self.EXT) self.write_imports(f, [self.TYPES, self.ENUMS, self.FUNCS]) write = set() written = set(enum.name for enum in enums) | \ set(function.proto.name for function in functions) for ext in extensions: if self.spec.NAME == 'gl' and not ext.name in written: self.write_boolean(f, ext.name) for enum in ext.enums: if not enum.name in written and not enum.group == 'SpecialNumbers': self.write_enum(self._f_enums, enum.name, enum.value) written.add(enum.name) written.add(ext.name) self.write_functions(f, write, written, extensions) def write_functions(self, f, write, written, extensions): self.write_prototype_pre(f) for ext in extensions: for func in ext.functions: if not func.proto.name in written: self.write_function_prototype(f, func) write.add(func) written.add(func.proto.name) self.write_prototype_post(f) self.write_function_pre(f) for func in write: self.write_function(f, func) self.write_function_post(f) def make_path(self, name): path = os.path.join(self.path, self.MODULE.split('.')[-1], self.spec.NAME, name.split('.')[-1] + self.FILE_EXTENSION) makefiledir(path) return path def write_imports(self, fobj, modules, private=True): raise NotImplementedError def write_selective_import(self, fobj, imports): raise NotImplementedError def write_module(self, fobj, name): raise NotImplementedError def write_prototype_pre(self, fobj): raise NotImplementedError def write_prototype_post(self, fobj): raise NotImplementedError def write_function_pre(self, fobj): raise NotImplementedError def write_function_post(self, fobj): raise NotImplementedError def write_extern(self, fobj): raise NotImplementedError def write_extern_end(self, fobj): raise NotImplementedError def write_shared(self, fobj): raise NotImplementedError def write_shared_end(self, fobj): raise NotImplementedError def write_function_def(self, fobj, func): raise NotImplementedError def write_function(self, fobj, func): raise NotImplementedError def write_function_prototype(self, fobj, func): raise NotImplementedError def write_boolean(self, fobj, name, value=False): raise NotImplementedError def write_enum(self, fobj, name, value, type='uint'): raise NotImplementedError def write_opaque_struct(self, fobj, name): raise NotImplementedError def write_alias(self, fobj, newn, decl): raise NotImplementedError class DGenerator(BaseDGenerator): MODULE = 'glad' LOADER = 'loader' ENUMS = 'enums' EXT = 'ext' FUNCS = 'funcs' TYPES = 'types' FILE_EXTENSION = '.d' TYPE_DICT = DTYPES LOAD_GL_PREFIX = 'glad' def write_imports(self, fobj, modules, private=True): for mod in modules: if private: fobj.write('private ') else: fobj.write('public ') fobj.write('import {}.{}.{};\n'.format(self.MODULE, self.spec.NAME, mod)) def write_selective_import(self, fobj, mod, imports): if len(imports) == 0: return fobj.write('public import {}.{}.{} :\n'.format(self.MODULE, self.spec.NAME, mod)) imports = set(imports) last = len(imports) for i, im in enumerate(imports, 1): fobj.write(im) if not i == last: fobj.write(', ') if (i % 5) == 0: fobj.write('\n') fobj.write(';\n\n') def write_module(self, fobj, name): fobj.write('module {}.{}.{};\n\n\n'.format(self.MODULE, self.spec.NAME, name)) def write_prototype_pre(self, fobj): fobj.write('nothrow @nogc ') self.write_extern(fobj) def write_prototype_post(self, fobj): self.write_extern_end(fobj) def write_function_pre(self, fobj): self.write_shared(fobj) def write_function_post(self, fobj): self.write_shared_end(fobj) def write_extern(self, fobj): fobj.write('extern(System) {\n') def write_extern_end(self, fobj): fobj.write('}\n') def write_shared(self, fobj): fobj.write('__gshared {\n') def write_shared_end(self, fobj): fobj.write('}\n') def write_function_def(self, fobj, func): fobj.write('{} {}('.format(func.proto.ret.to_d(), func.proto.name)) fobj.write(', '.join(param.type.to_d() for param in func.params)) fobj.write(');\n') def write_function(self, fobj, func): fobj.write('fp_{0} {0};\n'.format(func.proto.name)) def write_function_prototype(self, fobj, func): fobj.write('alias fp_{} = {} function(' .format(func.proto.name, func.proto.ret.to_d())) fobj.write(', '.join(param.type.to_d() for param in func.params)) fobj.write(');\n') def write_boolean(self, fobj, name, value=False): if value: fobj.write('bool {} = true;\n'.format(name)) else: fobj.write('bool {};\n'.format(name)) def write_enum(self, fobj, name, value, type='uint'): if isinstance(value, basestring) and '"' in value: type = 'const(char)*' fobj.write('enum {} {} = {};\n'.format(type, name, value)) def write_opaque_struct(self, fobj, name): fobj.write('struct _{name}; alias {name} = _{name}*;\n'.format(name=name)) def write_alias(self, fobj, newn, decl): fobj.write('alias {} = {};\n'.format(newn, decl)) glad-0.1.30/glad/lang/d/loader/000077500000000000000000000000001347444401100160255ustar00rootroot00000000000000glad-0.1.30/glad/lang/d/loader/__init__.py000066400000000000000000000045051347444401100201420ustar00rootroot00000000000000 LOAD_OPENGL_DLL = ''' version(Windows) { private import core.sys.windows.windows; } else { private import core.sys.posix.dlfcn; } version(Windows) { private __gshared HMODULE libGL; } else { private __gshared void* libGL; } extern(System) private @nogc alias gladGetProcAddressPtrType = void* function(const(char)*); private __gshared gladGetProcAddressPtrType gladGetProcAddressPtr; %(pre)s bool %(init)s() @nogc { version(Windows) { libGL = LoadLibraryA("opengl32.dll"); if(libGL !is null) { gladGetProcAddressPtr = cast(typeof(gladGetProcAddressPtr))GetProcAddress( libGL, "wglGetProcAddress"); return gladGetProcAddressPtr !is null; } return false; } else { version(OSX) { enum const(char)*[] NAMES = [ "../Frameworks/OpenGL.framework/OpenGL", "/Library/Frameworks/OpenGL.framework/OpenGL", "/System/Library/Frameworks/OpenGL.framework/OpenGL", "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL" ]; } else { enum const(char)*[] NAMES = ["libGL.so.1", "libGL.so"]; } foreach(name; NAMES) { libGL = dlopen(name, RTLD_NOW | RTLD_GLOBAL); if(libGL !is null) { version(OSX) { return true; } else { gladGetProcAddressPtr = cast(typeof(gladGetProcAddressPtr))dlsym(libGL, "glXGetProcAddressARB"); return gladGetProcAddressPtr !is null; } } } return false; } } %(pre)s void* %(proc)s(const(char)* namez) @nogc { if(libGL is null) return null; void* result; if(gladGetProcAddressPtr !is null) { result = gladGetProcAddressPtr(namez); } if(result is null) { version(Windows) { result = GetProcAddress(libGL, namez); } else { result = dlsym(libGL, namez); } } return result; } %(pre)s void %(terminate)s() @nogc { version(Windows) { if(libGL !is null) { FreeLibrary(libGL); libGL = null; } } else { if(libGL !is null) { dlclose(libGL); libGL = null; } } } '''glad-0.1.30/glad/lang/d/loader/egl.py000066400000000000000000000014111347444401100171430ustar00rootroot00000000000000from glad.lang.common.loader import BaseLoader _EGL_LOADER = ''' bool gladLoadEGL() { return gladLoadEGL(x => eglGetProcAddress(x)); } ''' _EGL_HAS_EXT = ''' private bool has_ext(const(char)* ext) @nogc { return true; } ''' class EGLDLoader(BaseLoader): def write_header_end(self, fobj): pass def write_header(self, fobj): pass def write(self, fobj): fobj.write('alias Loader = void* delegate(const(char)*);\n') if not self.disabled: fobj.write(_EGL_LOADER) def write_begin_load(self, fobj): pass def write_end_load(self, fobj): fobj.write('\treturn true;\n') def write_find_core(self, fobj): pass def write_has_ext(self, fobj): fobj.write(_EGL_HAS_EXT) glad-0.1.30/glad/lang/d/loader/gl.py000066400000000000000000000065021347444401100170040ustar00rootroot00000000000000from glad.lang.common.loader import BaseLoader from glad.lang.d.loader import LOAD_OPENGL_DLL _OPENGL_LOADER = \ LOAD_OPENGL_DLL % {'pre':'private', 'init':'open_gl', 'proc':'get_proc', 'terminate':'close_gl'} + ''' bool gladLoadGL() { bool status = false; if(open_gl()) { status = gladLoadGL(x => get_proc(x)); close_gl(); } return status; } ''' _OPENGL_HAS_EXT = ''' static struct GLVersion { static int major = 0; static int minor = 0; } private extern(C) char* strstr(const(char)*, const(char)*) @nogc; private extern(C) int strcmp(const(char)*, const(char)*) @nogc; private extern(C) int strncmp(const(char)*, const(char)*, size_t) @nogc; private extern(C) size_t strlen(const(char)*) @nogc; private bool has_ext(const(char)* ext) @nogc { if(GLVersion.major < 3) { const(char)* extensions = cast(const(char)*)glGetString(GL_EXTENSIONS); const(char)* loc; const(char)* terminator; if(extensions is null || ext is null) { return false; } while(1) { loc = strstr(extensions, ext); if(loc is null) { return false; } terminator = loc + strlen(ext); if((loc is extensions || *(loc - 1) == ' ') && (*terminator == ' ' || *terminator == '\\0')) { return true; } extensions = terminator; } } else { int num; glGetIntegerv(GL_NUM_EXTENSIONS, &num); for(uint i=0; i < cast(uint)num; i++) { if(strcmp(cast(const(char)*)glGetStringi(GL_EXTENSIONS, i), ext) == 0) { return true; } } } return false; } ''' _FIND_VERSION = ''' // Thank you @elmindreda // https://github.com/elmindreda/greg/blob/master/templates/greg.c.in#L176 // https://github.com/glfw/glfw/blob/master/src/context.c#L36 int i; const(char)* glversion; const(char)*[] prefixes = [ "OpenGL ES-CM ".ptr, "OpenGL ES-CL ".ptr, "OpenGL ES ".ptr, ]; glversion = cast(const(char)*)glGetString(GL_VERSION); if (glversion is null) return; foreach(prefix; prefixes) { size_t length = strlen(prefix); if (strncmp(glversion, prefix, length) == 0) { glversion += length; break; } } int major = glversion[0] - \'0\'; int minor = glversion[2] - \'0\'; GLVersion.major = major; GLVersion.minor = minor; ''' class OpenGLDLoader(BaseLoader): def write_header_end(self, fobj): pass def write_header(self, fobj): pass def write(self, fobj): fobj.write('alias Loader = void* delegate(const(char)*);\n') if not self.disabled and 'gl' in self.apis: fobj.write(_OPENGL_LOADER) def write_begin_load(self, fobj): fobj.write('\tglGetString = cast(typeof(glGetString))load("glGetString");\n') fobj.write('\tif(glGetString is null) { return false; }\n') fobj.write('\tif(glGetString(GL_VERSION) is null) { return false; }\n\n') def write_end_load(self, fobj): fobj.write('\treturn GLVersion.major != 0 || GLVersion.minor != 0;\n') def write_find_core(self, fobj): fobj.write(_FIND_VERSION) def write_has_ext(self, fobj): fobj.write(_OPENGL_HAS_EXT) glad-0.1.30/glad/lang/d/loader/glx.py000066400000000000000000000020221347444401100171650ustar00rootroot00000000000000from glad.lang.common.loader import BaseLoader from glad.lang.d.loader import LOAD_OPENGL_DLL _GLX_LOADER = \ LOAD_OPENGL_DLL % {'pre':'private', 'init':'open_gl', 'proc':'get_proc', 'terminate':'close_gl'} + ''' bool gladLoadGLX() { bool status = false; if(open_gl()) { status = gladLoadGLX(x => get_proc(x)); close_gl(); } return status; } ''' _GLX_HAS_EXT = ''' private bool has_ext(const(char)* name) @nogc { return true; } ''' class GLXDLoader(BaseLoader): def write_header_end(self, fobj): pass def write_header(self, fobj): pass def write(self, fobj): fobj.write('alias Loader = void* delegate(const(char)*);\n') if not self.disabled: fobj.write(_GLX_LOADER) def write_begin_load(self, fobj): pass def write_end_load(self, fobj): fobj.write('\treturn true;\n') def write_find_core(self, fobj): pass def write_has_ext(self, fobj): fobj.write(_GLX_HAS_EXT) glad-0.1.30/glad/lang/d/loader/wgl.py000066400000000000000000000014111347444401100171650ustar00rootroot00000000000000from glad.lang.common.loader import BaseLoader from glad.lang.d.loader.glx import _GLX_LOADER _WGL_LOADER = _GLX_LOADER.replace('GLX', 'WGL') _WGL_HAS_EXT = ''' private bool has_ext(const(char)* name) @nogc { return true; } ''' class WGLDLoader(BaseLoader): def write_header_end(self, fobj): pass def write_header(self, fobj): pass def write(self, fobj): fobj.write('alias Loader = void* delegate(const(char)*);\n') if not self.disabled: fobj.write(_WGL_LOADER) def write_begin_load(self, fobj): pass def write_end_load(self, fobj): fobj.write('\treturn true;\n') def write_find_core(self, fobj): pass def write_has_ext(self, fobj): fobj.write(_WGL_HAS_EXT) glad-0.1.30/glad/lang/nim/000077500000000000000000000000001347444401100151175ustar00rootroot00000000000000glad-0.1.30/glad/lang/nim/__init__.py000066400000000000000000000011211347444401100172230ustar00rootroot00000000000000from glad.lang.nim.loader.egl import EGLNimLoader from glad.lang.nim.loader.gl import OpenGLNimLoader from glad.lang.nim.loader.glx import GLXNimLoader from glad.lang.nim.loader.wgl import WGLNimLoader from glad.lang.nim.generator import NimGenerator # TODO finish converting the egl, glx & wgl loaders to Nim _specs = { # 'egl': EGLNimLoader, 'gl': OpenGLNimLoader # 'glx': GLXNimLoader, # 'wgl': WGLNimLoader } _generators = { 'nim': NimGenerator, } def get_generator(name, spec): gen = _generators.get(name) loader = _specs.get(spec) return gen, loader glad-0.1.30/glad/lang/nim/generator.py000066400000000000000000000422361347444401100174660ustar00rootroot00000000000000from itertools import chain import os.path import sys from glad.lang.common.generator import Generator from glad.lang.common.util import makefiledir if sys.version_info >= (3, 0): from io import StringIO basestring = str else: from StringIO import StringIO def _gl_types(gen, f): f.write(''' GLdebugProc* = proc ( source: GLenum, typ: GLenum, id: GLuint, severity: GLenum, length: GLsizei, message: ptr GLchar, userParam: pointer) {.stdcall.} GLdebugProcArb* = proc ( source: GLenum, typ: GLenum, id: GLuint, severity: GLenum, len: GLsizei, message: ptr GLchar, userParam: pointer) {.stdcall.} GLdebugProcAmd* = proc ( id: GLuint, category: GLenum, severity: GLenum, len: GLsizei, message: ptr GLchar, userParam: pointer) {.stdcall.} GLdebugProcKhr* = proc ( source, typ: GLenum, id: GLuint, severity: GLenum, length: GLsizei, message: ptr GLchar, userParam: pointer) {.stdcall.} ''') # TODO finish converting the egl, glx & wgl loaders to Nim # def _egl_types(gen, f): # def _glx_types(gen, f): # def _wgl_types(gen, f): NIMTYPES = { '__other': { 'gl': _gl_types # 'egl': _egl_types, # 'glx': _glx_types, # 'wgl': _wgl_types }, 'gl': { 'GLbitfield': 'uint32', 'GLboolean': 'bool', 'GLbyte': 'int8', 'GLchar': 'char', 'GLcharARB': 'byte', 'GLclampd': 'float64', 'GLclampf': 'float32', 'GLclampx': 'int32', 'GLdouble': 'float64', 'GLeglImageOES': 'distinct pointer', 'GLenum': 'uint32', 'GLfixed': 'int32', 'GLfloat': 'float32', 'GLhalf': 'uint16', 'GLhalfARB': 'uint16', 'GLhalfNV': 'uint16', 'GLhandleARB': 'uint32', 'GLint': 'int32', 'GLint64': 'int64', 'GLint64EXT': 'int64', 'GLintptr': 'int', 'GLintptrARB': 'int', 'GLshort': 'int16', 'GLsizei': 'int32', 'GLsizeiptr': 'int', 'GLsizeiptrARB': 'int', 'GLubyte': 'uint8', 'GLuint': 'uint32', 'GLuint64': 'uint64', 'GLuint64EXT': 'uint64', 'GLushort': 'uint16', 'GLvdpauSurfaceNV': 'int32', 'GLvoid': 'pointer', 'GLsync': 'distinct pointer', 'ClContext': 'distinct pointer', 'ClEvent': 'distinct pointer' }, 'egl': { 'EGLAttrib': 'int32', 'EGLAttribKHR': 'int32', 'EGLBoolean': 'bool', 'EGLClientBuffer': 'distinct pointer', 'EGLConfig': 'distinct pointer', 'EGLContext': 'distinct pointer', 'EGLDeviceEXT': 'distinct pointer', 'EGLDisplay': 'distinct pointer', 'EGLImage': 'distinct pointer', 'EGLImageKHR': 'distinct pointer', 'EGLNativeFileDescriptorKHR': 'int32', 'EGLOutputLayerEXT': 'distinct pointer', 'EGLOutputPortEXT': 'distinct pointer', 'EGLStreamKHR': 'distinct pointer', 'EGLSurface': 'distinct pointer', 'EGLSync': 'distinct pointer', 'EGLSyncKHR': 'distinct pointer', 'EGLSyncNV': 'distinct pointer', 'EGLTimeKHR': 'uint64', 'EGLTime': 'uint64', 'EGLTimeNV': 'uint64', 'EGLenum': 'uint32', 'EGLint': 'int32', 'EGLsizeiANDROID': 'distinct pointer', 'EGLuint64KHR': 'uint64', 'EGLuint64MESA': 'uint64', 'EGLuint64NV': 'uint64', # '__eglMustCastToProperFunctionPointerType': 'void function()' }, 'glx': { 'GLbitfield': 'uint32', 'GLboolean': 'uint8', 'GLenum': 'uint32', 'GLfloat': 'float32', 'GLint': 'int32', 'GLintptr': 'int32', 'GLsizei': 'int32', 'GLsizeiptr': 'int32', 'GLubyte': 'uint8', 'GLuint': 'uint32' }, 'wgl': { 'GLbitfield': 'uint32', 'GLboolean': 'uint8', 'GLenum': 'uint32', 'GLfloat': 'float32', 'GLint': 'int32', 'GLsizei': 'int32', 'GLuint': 'uint32', 'GLushort': 'uint16', 'INT32': 'int32', 'INT64': 'int64' }, 'SpecialNumbers': { 'gl': [ ('GL_FALSE', '0', None), ('GL_INVALID_INDEX', '0xFFFFFFFF', 'uint32'), ('GL_NONE', '0', None), ('GL_NONE_OES', '0', None), ('GL_NO_ERROR', '0', None), ('GL_ONE', '1', None), ('GL_TIMEOUT_IGNORED', '0xFFFFFFFFFFFFFFFF', 'uint64'), ('GL_TIMEOUT_IGNORED_APPLE', '0xFFFFFFFFFFFFFFFF', 'uint64'), ('GL_TRUE', '1', None), ('GL_VERSION_ES_CL_1_0', '1', None), ('GL_VERSION_ES_CL_1_1', '1', None), ('GL_VERSION_ES_CM_1_1', '1', None), ('GL_ZERO', '0', None), ], 'egl': [ # ('EGL_DONT_CARE', '-1', 'int'), ('EGL_UNKNOWN', '-1', 'int'), # ('EGL_NO_NATIVE_FENCE_FD_ANDROID', '-1', 'uint'), # ('EGL_DEPTH_ENCODING_NONE_NV', '0', 'uint'), # ('EGL_NO_CONTEXT', 'cast(EGLContext)0', 'EGLContext'), # ('EGL_NO_DEVICE_EXT', 'cast(EGLDeviceEXT)0', 'EGLDeviceEXT'), # ('EGL_NO_DISPLAY', 'cast(EGLDisplay)0', 'EGLDisplay'), # ('EGL_NO_IMAGE', 'cast(EGLImage)0', 'EGLImage'), # ('EGL_NO_IMAGE_KHR', 'cast(EGLImageKHR)0', 'EGLImageKHR'), # ('EGL_DEFAULT_DISPLAY', 'cast(EGLNativeDisplayType)0', 'EGLNativeDisplayType'), # ('EGL_NO_FILE_DESCRIPTOR_KHR', 'cast(EGLNativeFileDescriptorKHR)-1', 'EGLNativeFileDescriptorKHR'), # ('EGL_NO_OUTPUT_LAYER_EXT', 'cast(EGLOutputLayerEXT)0', 'EGLOutputLayerEXT'), # ('EGL_NO_OUTPUT_PORT_EXT', 'cast(EGLOutputPortEXT)0', 'EGLOutputPortEXT'), # ('EGL_NO_STREAM_KHR', 'cast(EGLStreamKHR)0', 'EGLStreamKHR'), # ('EGL_NO_SURFACE', 'cast(EGLSurface)0', 'EGLSurface'), # ('EGL_NO_SYNC', 'cast(EGLSync)0', 'EGLSync'), # ('EGL_NO_SYNC_KHR', 'cast(EGLSyncKHR)0', 'EGLSyncKHR'), # ('EGL_NO_SYNC_NV', 'cast(EGLSyncNV)0', 'EGLSyncNV'), # ('EGL_DISPLAY_SCALING', '10000', 'uint'), # ('EGL_FOREVER', '0xFFFFFFFFFFFFFFFF', 'ulong'), # ('EGL_FOREVER_KHR', '0xFFFFFFFFFFFFFFFF', 'ulong'), # ('EGL_FOREVER_NV', '0xFFFFFFFFFFFFFFFF', 'ulong') ], 'glx': [ # ('GLX_DONT_CARE', '0xFFFFFFFF', 'uint'), # ('GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB', '0', 'uint') ], 'wgl': [ # ('WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB', '0', 'uint'), # ('WGL_FONT_LINES', '0', 'uint'), # ('WGL_FONT_POLYGONS', 1, 'uint') ] }, 'SpecialEnumNames': { 'gl': { 'GL_BYTE': 'cGL_BYTE', 'GL_SHORT': 'cGL_SHORT', 'GL_INT': 'cGL_INT', 'GL_FLOAT': 'cGL_FLOAT', 'GL_DOUBLE': 'cGL_DOUBLE', 'GL_FIXED': 'cGL_FIXED' }, 'egl': {}, 'glx': {}, 'wgl': {} }, 'SpecialFuncNames': { 'gl': { 'glGetTransformFeedbacki_v': 'glGetTransformFeedbacki_v2' }, 'egl': {}, 'glx': {}, 'wgl': {} } } class NimGenerator(Generator): NAME = 'nim' NAME_LONG = 'Nim' MODULE = 'glad' FILE_EXTENSION = '.nim' TYPE_DICT = NIMTYPES LOAD_GL_PREFIX = 'glad' EXT_PREFIX = 'GLAD_' def open(self): self._f_gl = open(self.make_path(self.spec.NAME), 'w') def close(self): self._f_gl.close() def generate_header(self): self._f_gl.write('#[') self._f_gl.write(self.header) self._f_gl.write(']#\n\n') self._f_gl.write('import strutils\n\n') self._f_gl.write('var glVersionMajor, glVersionMinor: int\n\n') def generate_loader(self, features, extensions): f = self._f_gl rfeatures = features if self.spec.NAME in ('egl', 'wgl'): features = {'egl': [], 'wgl': []} self.loader.write(f) self.loader.write_has_ext(f) written = set() for api, version in self.api.items(): # core load procs for feature in features[api]: f.write('proc load_{}(load: proc) =\n' .format(feature.name)) if self.spec.NAME == 'gl': f.write(' if not {}{}: return\n\n'.format(self.EXT_PREFIX, feature.name)) for func in feature.functions: self.write_func_definition(f, func) f.write('\n\n') # extension load procs for ext in extensions[api]: if len(list(ext.functions)) == 0 or ext.name in written: continue f.write('proc load_{}(load: proc) =\n' .format(ext.name)) if self.spec.NAME == 'gl': f.write(' if not {}{}: return\n'.format(self.EXT_PREFIX, ext.name)) for func in ext.functions: # even if they were in written we need to load it self.write_func_definition(f, func) f.write('\n\n') written.add(ext.name) # findExtensions proc f.write('proc findExtensions{}() =\n'.format(api.upper())) if self.spec.NAME == 'gl': for ext in extensions[api]: f.write(' {0}{1} = hasExt("{1}")\n'.format(self.EXT_PREFIX, ext.name)) else: f.write(' discard\n') f.write('\n\n') # findCore proc f.write('proc findCore{}(glVersion: string) =\n'.format(api.upper())) self.loader.write_find_core(f) if self.spec.NAME == 'gl': for feature in features[api]: f.write(' {}{} = (major == {num[0]} and minor >= {num[1]}) or' ' major > {num[0]}\n'.format(self.EXT_PREFIX, feature.name, num=feature.number)) f.write('\n\n') # main loader proc loadername = 'Load' if self.LOAD_GL_PREFIX else 'load' f.write('proc {}{}{}*(load: proc): bool =\n' .format(self.LOAD_GL_PREFIX, loadername, api.upper())) self.loader.write_begin_load(f) f.write(' findCore{}($glVersion)\n\n'.format(api.upper())) for feature in features[api]: f.write(' load_{}(load)\n'.format(feature.name)) f.write('\n findExtensions{}()\n\n'.format(api.upper())) for ext in extensions[api]: if len(list(ext.functions)) == 0: continue f.write(' load_{}(load);\n'.format(ext.name)) self.loader.write_end_load(f) f.write('\n') def write_func_definition(self, fobj, func): func_name = self.map_func_name(func) fobj.write(' {} = cast['.format(func_name)) self.write_function_declaration(fobj, func) fobj.write('](load("{}"))\n'.format(func_name)) def map_func_name(self, func): name = func.proto.name m = self.TYPE_DICT['SpecialFuncNames'][self.spec.NAME] return m[name] if name in m else name def generate_types(self, types): f = self._f_gl f.write('# Types\ntype\n') for ogl, d in sorted(self.TYPE_DICT[self.spec.NAME].items()): f.write(' {}* = {}\n'.format(ogl, d)) self.TYPE_DICT['__other'][self.spec.NAME](self, f) f.write('\n') def generate_features(self, features): self.write_enums(features) self.write_funcs(features) def write_enums(self, features): f = self._f_gl f.write('\n# Enums\nconst\n') for v in sorted(self.TYPE_DICT['SpecialNumbers'][self.spec.NAME]): self.write_enum(f, *v) f.write('\n') written = set() for feature in features: for enum in feature.enums: if enum.group == 'SpecialNumbers': written.add(enum) continue if not enum in written: self.write_enum(f, enum.name, enum.value) written.add(enum) f.write('\n') def write_funcs(self, features): f = self._f_gl f.write('\n# Functions\nvar\n') if self.spec.NAME == 'gl': for feature in features: self.write_boolean(f, feature.name) f.write('\n') # TODO if self.spec.NAME in ('egl', 'wgl'): for feature in features: for func in feature.functions: self.write_function_def(f, func) # TODO f.write('\n') else: self.write_functions(f, set(), set(), features) f.write('\n\n') # TODO def write_function_def(self, fobj, func): fobj.write('{} {}('.format(func.proto.ret.to_nim(), self.map_func_name(func))) fobj.write(', '.join(param.type.to_nim() for param in func.params)) fobj.write(');\n') def generate_extensions(self, extensions, enums, functions): f = self._f_gl write = set() written = set(enum.name for enum in enums) | \ set(function.proto.name for function in functions) f.write('# Extensions\n') if extensions: f.write('var\n') for ext in extensions: if self.spec.NAME == 'gl' and not ext.name in written: self.write_boolean(f, ext.name) for enum in ext.enums: if not enum.name in written and not enum.group == 'SpecialNumbers': type = (None if enum.group == 'TransformFeedbackTokenNV' else 'GLenum') self.write_enum(f, enum.name, enum.value, type) written.add(enum.name) written.add(ext.name) f.write('\n') self.write_functions(f, write, written, extensions) f.write('\n\n') def write_functions(self, f, write, written, extensions): for ext in extensions: for func in ext.functions: if not func.proto.name in written: self.write_function_var(f, func) write.add(func) written.add(func.proto.name) def write_function_var(self, fobj, func): fobj.write(' {}*: '.format(self.map_func_name(func))) self.write_function_declaration(fobj, func) fobj.write('\n') def write_function_declaration(self, fobj, func): fobj.write('proc ('.format(self.map_func_name(func))) fobj.write(', '.join('{}: {}'.format(self.to_nim_param_name(param.name), param.type.to_nim()) for param in func.params)) fobj.write(')') ret = func.proto.ret.to_nim() if (ret != 'void'): fobj.write(': {}'.format(ret)) fobj.write(' {.cdecl.}') # TODO # def write_function_var(self, fobj, func): # fobj.write(' {} = cast[proc ('.format(func.proto.name)) # fobj.write(', '.join('{}: {}'.format(self.to_nim_param_name(param.name), # param.type.to_nim()) # for param in func.params)) # fobj.write(')') # # ret = func.proto.ret.to_nim() # if (ret != 'void'): # fobj.write(': {}'.format(ret)) # # fobj.write(' {.cdecl.}]') # fobj.write(' (getProcAddress("{}"))\n'.format(func.proto.name)) NIM_KEYWORDS = [ # as of Nim 0.13.0 'addr', 'and', 'as', 'asm', 'atomic', 'bind', 'block', 'break', 'case', 'cast', 'concept', 'const', 'continue', 'converter', 'defer', 'discard', 'distinct', 'div', 'do', 'elif', 'else', 'end', 'enum', 'except', 'export', 'finally', 'for', 'from', 'func', 'generic', 'if', 'import', 'in', 'include', 'interface', 'is', 'isnot', 'iterator', 'let', 'macro', 'method', 'mixin', 'mod', 'nil', 'not', 'notin', 'object', 'of', 'or', 'out', 'proc', 'ptr', 'raise', 'ref', 'return', 'shl', 'shr', 'static', 'template', 'try', 'tuple', 'type', 'using', 'var', 'when', 'while', 'with', 'without', 'xor', 'yield' ] def to_nim_param_name(self, name): return '`{}`'.format(name) if name in self.NIM_KEYWORDS else name def make_path(self, name): path = os.path.join(self.path, self.MODULE.split('.')[-1], name.split('.')[-1] + self.FILE_EXTENSION) makefiledir(path) return path def write_boolean(self, fobj, name): fobj.write(' {}{}*: bool\n'.format(self.EXT_PREFIX, name)) def write_enum(self, fobj, name, value, type='GLenum'): fobj.write(' {}*'.format(self.map_enum_name(name))) if type: fobj.write(': {0} = {0}({1})'.format(type, value)) else: fobj.write(' = {}'.format(value)) fobj.write('\n') def map_enum_name(self, name): m = self.TYPE_DICT['SpecialEnumNames'][self.spec.NAME] return m[name] if name in m else name glad-0.1.30/glad/lang/nim/loader/000077500000000000000000000000001347444401100163655ustar00rootroot00000000000000glad-0.1.30/glad/lang/nim/loader/__init__.py000066400000000000000000000045021347444401100204770ustar00rootroot00000000000000 LOAD_OPENGL_DLL = ''' version(Windows) { private import std.c.windows.windows; } else { private import core.sys.posix.dlfcn; } version(Windows) { private __gshared HMODULE libGL; } else { private __gshared void* libGL; } extern(System) private @nogc alias gladGetProcAddressPtrType = void* function(const(char)*); private __gshared gladGetProcAddressPtrType gladGetProcAddressPtr; %(pre)s bool %(init)s() @nogc { version(Windows) { libGL = LoadLibraryA("opengl32.dll"); if(libGL !is null) { gladGetProcAddressPtr = cast(typeof(gladGetProcAddressPtr))GetProcAddress( libGL, "wglGetProcAddress"); return gladGetProcAddressPtr !is null; } return false; } else { version(OSX) { enum const(char)*[] NAMES = [ "../Frameworks/OpenGL.framework/OpenGL", "/Library/Frameworks/OpenGL.framework/OpenGL", "/System/Library/Frameworks/OpenGL.framework/OpenGL", "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL" ]; } else { enum const(char)*[] NAMES = ["libGL.so.1", "libGL.so"]; } foreach(name; NAMES) { libGL = dlopen(name, RTLD_NOW | RTLD_GLOBAL); if(libGL !is null) { version(OSX) { return true; } else { gladGetProcAddressPtr = cast(typeof(gladGetProcAddressPtr))dlsym(libGL, "glXGetProcAddressARB"); return gladGetProcAddressPtr !is null; } } } return false; } } %(pre)s void* %(proc)s(const(char)* namez) @nogc { if(libGL is null) return null; void* result; if(gladGetProcAddressPtr !is null) { result = gladGetProcAddressPtr(namez); } if(result is null) { version(Windows) { result = GetProcAddress(libGL, namez); } else { result = dlsym(libGL, namez); } } return result; } %(pre)s void %(terminate)s() @nogc { version(Windows) { if(libGL !is null) { FreeLibrary(libGL); libGL = null; } } else { if(libGL !is null) { dlclose(libGL); libGL = null; } } } '''glad-0.1.30/glad/lang/nim/loader/egl.py000066400000000000000000000014031347444401100175040ustar00rootroot00000000000000from glad.lang.common.loader import BaseLoader # TODO this is just a quick initial conversion of the D loader _EGL_LOADER = ''' bool gladLoadEGL() { return gladLoadEGL(x => eglGetProcAddress(x)) } ''' _EGL_HAS_EXT = ''' private bool has_ext(const(char)* ext) @nogc { return true } ''' class EGLNimLoader(BaseLoader): def write_header_end(self, fobj): pass def write_header(self, fobj): pass def write(self, fobj): if not self.disabled: fobj.write(_EGL_LOADER) def write_begin_load(self, fobj): pass def write_end_load(self, fobj): fobj.write(' return true\n') def write_find_core(self, fobj): pass def write_has_ext(self, fobj): fobj.write(_EGL_HAS_EXT) glad-0.1.30/glad/lang/nim/loader/gl.py000066400000000000000000000066161347444401100173520ustar00rootroot00000000000000from glad.lang.common.loader import BaseLoader from glad.lang.nim.loader import LOAD_OPENGL_DLL _OPENGL_LOADER = \ LOAD_OPENGL_DLL % {'pre':'private', 'init':'open_gl', 'proc':'get_proc', 'terminate':'close_gl'} + ''' bool gladLoadGL() bool status = false if(open_gl()) status = gladLoadGL(x => get_proc(x)) close_gl() return status ''' _OPENGL_HAS_EXT_LT3 = '''proc hasExt(extname: string): bool = if extname == nil: return false var extensions = $cast[cstring](glGetString(GL_EXTENSIONS)) if extensions == nil: return false var loc, terminatorLoc: int terminator: char while true: loc = extensions.find(extname) if loc < 0: return false terminatorLoc = loc + extname.len terminator = extensions[terminatorLoc] if (loc == 0 or extensions[loc - 1] == ' ') and (terminator == ' ' or terminator == '\\0'): return true extensions = extensions[terminatorLoc..^1] ''' _OPENGL_HAS_EXT_GTE3 = '''proc hasExt(extname: string): bool = if extname == nil: return false if glVersionMajor < 3: var extensions = $cast[cstring](glGetString(GL_EXTENSIONS)) if extensions == nil: return false var loc, terminatorLoc: int terminator: char while true: loc = extensions.find(extname) if loc < 0: return false terminatorLoc = loc + extname.len terminator = extensions[terminatorLoc] if (loc == 0 or extensions[loc - 1] == ' ') and (terminator == ' ' or terminator == '\\0'): return true extensions = extensions[terminatorLoc..^1] else: var num: GLint s: cstring glGetIntegerv(GL_NUM_EXTENSIONS, num.addr) for i in 0..num-1: s = cast[cstring](glGetStringi(GL_EXTENSIONS, GLuint(i))) if s == extname: return true ''' _FIND_VERSION = ''' # Thank you @elmindreda # https://github.com/elmindreda/greg/blob/master/templates/greg.c.in#L176 # https://github.com/glfw/glfw/blob/master/src/context.c#L36 var prefixes = ["OpenGL ES-CM ", "OpenGL ES-CL ", "OpenGL ES "] var version = glVersion for p in prefixes: if version.startsWith(p): version = version.replace(p) break var major = ord(glVersion[0]) - ord('0') var minor = ord(glVersion[2]) - ord('0') glVersionMajor = major glVersionMinor = minor ''' _BEGIN_LOAD = ''' glGetString = cast[proc (name: GLenum): ptr GLubyte {.cdecl.}](load("glGetString")) if glGetString == nil: return false var glVersion = cast[cstring](glGetString(GL_VERSION)) if glVersion == nil: return false ''' class OpenGLNimLoader(BaseLoader): def write_header_end(self, fobj): pass def write_header(self, fobj): pass def write(self, fobj): pass # TODO # if not self.disabled and 'gl' in self.apis: # fobj.write(_OPENGL_LOADER) def write_begin_load(self, fobj): fobj.write(_BEGIN_LOAD) def write_end_load(self, fobj): fobj.write('\n return glVersionMajor != 0 or glVersionMinor != 0\n') def write_find_core(self, fobj): fobj.write(_FIND_VERSION) def write_has_ext(self, fobj): gl = self.apis.get('gl') if not gl or (gl.major == 1 and gl.minor == 0): return if gl.major < 3: fobj.write(_OPENGL_HAS_EXT_LT3) else: fobj.write(_OPENGL_HAS_EXT_GTE3) glad-0.1.30/glad/lang/nim/loader/glx.py000066400000000000000000000021171347444401100175320ustar00rootroot00000000000000from glad.lang.common.loader import BaseLoader from glad.lang.nim.loader import LOAD_OPENGL_DLL # TODO this is just a quick initial conversion of the D loader _GLX_LOADER = \ LOAD_OPENGL_DLL % {'pre':'private', 'init':'open_gl', 'proc':'get_proc', 'terminate':'close_gl'} + ''' bool gladLoadGLX() { bool status = false if(open_gl()) { status = gladLoadGLX(x => get_proc(x)) close_gl() } return status } ''' _GLX_HAS_EXT = ''' private bool has_ext(const(char)* name) @nogc { return true } ''' class GLXNimLoader(BaseLoader): def write_header_end(self, fobj): pass def write_header(self, fobj): pass def write(self, fobj): fobj.write('alias Loader = void* delegate(const(char)*)\n') if not self.disabled: fobj.write(_GLX_LOADER) def write_begin_load(self, fobj): pass def write_end_load(self, fobj): fobj.write(' return true\n') def write_find_core(self, fobj): pass def write_has_ext(self, fobj): fobj.write(_GLX_HAS_EXT) glad-0.1.30/glad/lang/nim/loader/wgl.py000066400000000000000000000015141347444401100175310ustar00rootroot00000000000000from glad.lang.common.loader import BaseLoader from glad.lang.nim.loader.glx import _GLX_LOADER # TODO this is just a quick initial conversion of the D loader _WGL_LOADER = _GLX_LOADER.replace('GLX', 'WGL') _WGL_HAS_EXT = ''' private bool has_ext(const(char)* name) @nogc { return true; } ''' class WGLNimLoader(BaseLoader): def write_header_end(self, fobj): pass def write_header(self, fobj): pass def write(self, fobj): fobj.write('alias Loader = void* delegate(const(char)*);\n') if not self.disabled: fobj.write(_WGL_LOADER) def write_begin_load(self, fobj): pass def write_end_load(self, fobj): fobj.write(' return true\n') def write_find_core(self, fobj): pass def write_has_ext(self, fobj): fobj.write(_WGL_HAS_EXT) glad-0.1.30/glad/lang/pascal/000077500000000000000000000000001347444401100155775ustar00rootroot00000000000000glad-0.1.30/glad/lang/pascal/__init__.py000066400000000000000000000005051347444401100177100ustar00rootroot00000000000000from glad.lang.pascal.loader.gl import OpenGLPascalLoader from glad.lang.pascal.generator import PascalGenerator _specs = { 'gl': OpenGLPascalLoader } _generators = { 'pascal': PascalGenerator, } def get_generator(name, spec): gen = _generators.get(name) loader = _specs.get(spec) return gen, loader glad-0.1.30/glad/lang/pascal/generator.py000066400000000000000000000333171347444401100201460ustar00rootroot00000000000000import os.path import sys from glad.lang.common.generator import Generator from glad.lang.common.util import makefiledir if sys.version_info >= (3, 0): basestring = str def _gl_types(gen, f): f.write(''' GLdebugProc = procedure ( source: GLenum; typ: GLenum; id: GLuint; severity: GLenum; length: GLsizei; message: PGLchar; userParam: pointer); stdcall; GLdebugProcArb = GLdebugProc; GLdebugProcKhr = GLdebugProc; GLdebugProcAmd = procedure ( id: GLuint; category: GLenum; severity: GLenum; len: GLsizei; message: PGLchar; userParam: pointer); stdcall; ''') # TODO egl, glx & wgl loaders # def _egl_types(gen, f): # def _glx_types(gen, f): # def _wgl_types(gen, f): PASCALTYPES = { '__other': { 'gl': _gl_types # 'egl': _egl_types, # 'glx': _glx_types, # 'wgl': _wgl_types }, 'gl': { 'GLbitfield': 'uint32', 'GLboolean': 'byte', 'GLbyte': 'int8', 'GLchar': 'char', 'GLcharARB': 'byte', 'GLclampd': 'double', 'GLclampf': 'single', 'GLclampx': 'int32', 'GLdouble': 'double', 'GLeglImageOES': 'pointer', 'GLenum': 'uint32', 'GLfixed': 'int32', 'GLfloat': 'single', 'GLhalf': 'uint16', 'GLhalfARB': 'uint16', 'GLhalfNV': 'uint16', 'GLhandleARB': 'uint32', 'GLint': 'int32', 'GLint64': 'int64', 'GLint64EXT': 'int64', 'GLintptr': 'int32', 'GLintptrARB': 'int32', 'GLshort': 'int16', 'GLsizei': 'int32', 'GLsizeiptr': 'int32', 'GLsizeiptrARB': 'int32', 'GLubyte': 'uint8', 'GLuint': 'uint32', 'GLuint64': 'uint64', 'GLuint64EXT': 'uint64', 'GLushort': 'uint16', 'GLvdpauSurfaceNV': 'int32', 'GLvoid': 'pointer', 'GLsync': 'pointer', 'GLeglClientBufferEXT': 'pointer', # GL_EXT_external_buffer 'GLVULKANPROCNV': 'pointer', # GL_NV_draw_vulkan_image '_cl_context': 'pointer', # GL_ARB_cl_event '_cl_event': 'pointer' }, 'egl': { 'EGLAttrib': 'int32', 'EGLAttribKHR': 'int32', 'EGLBoolean': 'dword', 'EGLClientBuffer': 'pointer', 'EGLConfig': 'pointer', 'EGLContext': 'pointer', 'EGLDeviceEXT': 'pointer', 'EGLDisplay': 'pointer', 'EGLImage': 'pointer', 'EGLImageKHR': 'pointer', 'EGLNativeFileDescriptorKHR': 'int32', 'EGLOutputLayerEXT': 'pointer', 'EGLOutputPortEXT': 'pointer', 'EGLStreamKHR': 'pointer', 'EGLSurface': 'pointer', 'EGLSync': 'pointer', 'EGLSyncKHR': 'pointer', 'EGLSyncNV': 'pointer', 'EGLTimeKHR': 'uint64', 'EGLTime': 'uint64', 'EGLTimeNV': 'uint64', 'EGLenum': 'uint32', 'EGLint': 'int32', 'EGLsizeiANDROID': 'pointer', 'EGLuint64KHR': 'uint64', 'EGLuint64MESA': 'uint64', 'EGLuint64NV': 'uint64', # '__eglMustCastToProperFunctionPointerType': 'void function()' }, 'glx': { 'GLbitfield': 'uint32', 'GLboolean': 'uint8', 'GLenum': 'uint32', 'GLfloat': 'float32', 'GLint': 'int32', 'GLintptr': 'int32', 'GLsizei': 'int32', 'GLsizeiptr': 'int32', 'GLubyte': 'uint8', 'GLuint': 'uint32' }, 'wgl': { 'GLbitfield': 'uint32', 'GLboolean': 'uint8', 'GLenum': 'uint32', 'GLfloat': 'float32', 'GLint': 'int32', 'GLsizei': 'int32', 'GLuint': 'uint32', 'GLushort': 'uint16', 'INT32': 'int32', 'INT64': 'int64' }, 'SpecialNumbers': { 'gl': [ ('GL_FALSE', '0', None), ('GL_INVALID_INDEX', '$FFFFFFFF', 'uint32'), ('GL_NONE', '0', None), ('GL_NONE_OES', '0', None), ('GL_NO_ERROR', '0', None), ('GL_ONE', '1', None), ('GL_TIMEOUT_IGNORED', '$FFFFFFFFFFFFFFFF', 'uint64'), ('GL_TIMEOUT_IGNORED_APPLE', '$FFFFFFFFFFFFFFFF', 'uint64'), ('GL_TRUE', '1', None), ('GL_VERSION_ES_CL_1_0', '1', None), ('GL_VERSION_ES_CL_1_1', '1', None), ('GL_VERSION_ES_CM_1_1', '1', None), ('GL_ZERO', '0', None), ], 'egl': [ ], 'glx': [ ], 'wgl': [ ] } } class PascalGenerator(Generator): NAME = 'pascal' NAME_LONG = 'Pascal' MODULE = 'glad' FILE_EXTENSION = '.pas' TYPE_DICT = PASCALTYPES LOAD_GL_PREFIX = 'glad' EXT_PREFIX = 'GLAD_' def open(self): self._f_gl = open(self.make_path('glad_' + self.spec.NAME), 'w') def close(self): self._f_gl.close() def generate_header(self): f = self._f_gl f.write('{\n') f.write(self.header) f.write('}\n') f.write('''{$MODE objfpc}{$H+} {$MACRO ON} {$IFDEF Windows} {$DEFINE extdecl := stdcall} {$ELSE} {$DEFINE extdecl := cdecl} {$ENDIF} ''') f.write('unit glad_gl;\n\n') f.write('interface\n\n') f.write('uses\n sysutils;\n\n') f.write('var\n glVersionMajor, glVersionMinor: integer;\n\n') def generate_loader(self, features, extensions): f = self._f_gl # finish interface f.write('type\n TLoadProc = function(proc: Pchar): Pointer;\n\n') loadername = 'Load' if self.LOAD_GL_PREFIX else 'load' loader_decl = 'function {}{}{}(load: TLoadProc): boolean;\n' for api, version in self.api.items(): decl = loader_decl.format(self.LOAD_GL_PREFIX, loadername, api.upper()) f.write(decl) f.write('\n\nimplementation\n\n') self.loader.write(f) self.loader.write_has_ext(f) written = set() for api, version in self.api.items(): # core load procs for feature in features[api]: f.write('procedure load_{}(load: TLoadProc);\nbegin\n'.format(feature.name)) if self.spec.NAME == 'gl': f.write(' if not {}{} then exit;\n'.format(self.EXT_PREFIX, feature.name)) for func in feature.functions: self.write_func_definition(f, func) f.write('end;\n\n') # extension load procs for ext in extensions[api]: if len(list(ext.functions)) == 0 or ext.name in written: continue f.write('procedure load_{}(load: TLoadProc);\nbegin\n'.format(ext.name)) if self.spec.NAME == 'gl': f.write(' if not {}{} then exit;\n'.format(self.EXT_PREFIX, ext.name)) for func in ext.functions: # even if they were in written we need to load it self.write_func_definition(f, func) f.write('end;\n\n') written.add(ext.name) # findExtensions proc f.write('procedure findExtensions{}();\nbegin\n'.format(api.upper())) if self.spec.NAME == 'gl': for ext in extensions[api]: f.write(' {0}{1} := hasExt(\'{1}\');\n'.format(self.EXT_PREFIX, ext.name)) f.write('end;\n\n') # findCore proc f.write('procedure findCore{}(glVersion: string);\n'.format(api.upper())) self.loader.write_find_core(f) if self.spec.NAME == 'gl': for feature in features[api]: f.write(' {}{} := ((major = {num[0]}) and (minor >= {num[1]})) or' ' (major > {num[0]});\n'.format(self.EXT_PREFIX, feature.name, num=feature.number)) f.write('end;\n\n') # main loader proc decl = loader_decl.format(self.LOAD_GL_PREFIX, loadername, api.upper()) f.write(decl) self.loader.write_begin_load(f) f.write(' findCore{}(glVersion);\n'.format(api.upper())) for feature in features[api]: f.write(' load_{}(load);\n'.format(feature.name)) f.write('\n findExtensions{}();\n'.format(api.upper())) for ext in extensions[api]: if len(list(ext.functions)) == 0: continue f.write(' load_{}(load);\n'.format(ext.name)) self.loader.write_end_load(f) f.write('\n') f.write('end.\n') def write_func_definition(self, fobj, func): func_name = self.map_func_name(func) fobj.write(' pointer( {0} ) := load(\'{0}\');\n'.format(func_name)) def map_func_name(self, func): name = func.proto.name return name def generate_types(self, types): f = self._f_gl f.write('(* Types *)\ntype\n') for ogl, pascal in sorted(self.TYPE_DICT[self.spec.NAME].items()): f.write(' {} = {};\n'.format(ogl, pascal)) f.write('\n') # pointer types for ogl, pascal in sorted(self.TYPE_DICT[self.spec.NAME].items()): f.write(' P{} = ^{};\n'.format(ogl, pascal)) f.write(' PPGLchar = ^PGLchar;\n') f.write(' PPGLcharARB = ^PGLcharARB;\n') # for GL_ARB_shader_objects f.write(' PPGLboolean = ^PGLboolean;\n') # for GL_IBM_vertex_array_lists self.TYPE_DICT['__other'][self.spec.NAME](self, f) f.write('\n') def generate_features(self, features): self.write_enums(features) self.write_funcs(features) def write_enums(self, features): f = self._f_gl f.write('\n(* Enums *)\nconst\n') for v in sorted(self.TYPE_DICT['SpecialNumbers'][self.spec.NAME]): self.write_enum(f, *v) f.write('\n') written = set() for feature in features: for enum in feature.enums: if enum.group == 'SpecialNumbers': written.add(enum) continue if not enum in written: self.write_enum(f, enum.name, enum.value) written.add(enum) f.write('\n') def write_funcs(self, features): f = self._f_gl f.write('(* Functions *)\nvar\n') if self.spec.NAME == 'gl': for feature in features: self.write_boolean(f, feature.name) f.write('\n') self.write_functions(f, set(), set(), features) # TODO other specs f.write('\n\n') def generate_extensions(self, extensions, enums, functions): if not extensions: return write = set() written = set(enum.name for enum in enums) | \ set(function.proto.name for function in functions) f = self._f_gl f.write('(* Extensions *)\n') for ext in extensions: if self.spec.NAME == 'gl' and ext.name not in written: f.write('var\n') self.write_boolean(f, ext.name) first = True for enum in ext.enums: if enum.name not in written and not enum.group == 'SpecialNumbers': # for NV_transform_feedback - these enums are negative, but GLenum is unsigned type = None if enum.group == 'TransformFeedbackTokenNV' else 'GLenum' if first: first = False f.write('const\n') self.write_enum(f, enum.name, enum.value, type) written.add(enum.name) written.add(ext.name) f.write('\n') self.write_functions(f, write, written, extensions) f.write('\n') def write_functions(self, f, write, written, extensions): first = True for ext in extensions: for func in ext.functions: if func.proto.name not in written: if first: first = False f.write('var\n') self.write_function_var(f, func) write.add(func) written.add(func.proto.name) def write_function_var(self, fobj, func): fobj.write(' {}: '.format(self.map_func_name(func))) self.write_function_declaration(fobj, func) fobj.write('\n') def write_function_declaration(self, fobj, func): ret = func.proto.ret.to_pascal() is_func = ret != 'void' if is_func: fobj.write('function (') else: fobj.write('procedure (') fobj.write('; '.join('{}: {}'.format(self.to_pascal_param_name(param.name), param.type.to_pascal()) for param in func.params)) fobj.write(')') if is_func: fobj.write(': {}'.format(ret)) fobj.write('; extdecl;') PASCAL_KEYWORDS = [ # conflicting keywords only 'array', 'end', 'in', 'label', 'object', 'out', 'packed', 'program', 'string', 'type', 'unit' ] def to_pascal_param_name(self, name): return '{}_'.format(name) if name in self.PASCAL_KEYWORDS else name def make_path(self, name): path = os.path.join(self.path, self.MODULE.split('.')[-1], name.split('.')[-1] + self.FILE_EXTENSION) makefiledir(path) return path def write_boolean(self, fobj, name): fobj.write(' {}{}: boolean;\n'.format(self.EXT_PREFIX, name)) def write_enum(self, fobj, name, value, type='GLenum'): fobj.write(' ' + name) if value[0:2] == '0x': value = '$' + value[2:] if type and type != 'GLenum': fobj.write(' = {}({});'.format(type, value)) else: fobj.write(' = {};'.format(value)) fobj.write('\n') glad-0.1.30/glad/lang/pascal/loader/000077500000000000000000000000001347444401100170455ustar00rootroot00000000000000glad-0.1.30/glad/lang/pascal/loader/__init__.py000066400000000000000000000000001347444401100211440ustar00rootroot00000000000000glad-0.1.30/glad/lang/pascal/loader/gl.py000066400000000000000000000051011347444401100200160ustar00rootroot00000000000000from glad.lang.common.loader import BaseLoader _OPENGL_HAS_EXT = '''function hasExt(const extname: string): Boolean; var extensions: PChar; loc, terminator: Pchar; {$IFDEF HAS_GL_NUM_EXTENSIONS} num_extensions, i: integer; ext: pchar; {$ENDIF} begin result := false; {$IFDEF HAS_GL_NUM_EXTENSIONS} if glVersionMajor >= 3 then begin glGetIntegerv(GL_NUM_EXTENSIONS, @num_extensions); for i := 0 to num_extensions - 1 do begin ext := PChar( glGetStringi(GL_EXTENSIONS, i) ); if strcomp(ext, PChar(extname)) = 0 then exit(true); end; exit; end; {$ENDIF} extensions := PChar( glGetString(GL_EXTENSIONS) ); while true do begin loc := strpos(extensions, PChar(extname)); if loc = nil then exit; terminator := loc + length(extname); if (loc = extensions) or (loc[-1] = ' ') then if (terminator[0] = ' ') or (terminator[0] = #0) then exit(true); extensions := terminator; end; end; ''' _FIND_VERSION = '''{ Thank you @elmindreda https://github.com/elmindreda/greg/blob/master/templates/greg.c.in//L176 https://github.com/glfw/glfw/blob/master/src/context.c//L36 } const prefixes: array[0..2] of string = ('OpenGL ES-CM ', 'OpenGL ES-CL ', 'OpenGL ES '); var version, p: string; major, minor: integer; begin version := glVersion; for p in prefixes do if LeftStr(version, length(p)) = p then begin version := StringReplace(version, p, '', [rfReplaceAll]); break; end; major := ord(version[1]) - ord('0'); minor := ord(version[3]) - ord('0'); glVersionMajor := major; glVersionMinor := minor; ''' _BEGIN_LOAD = '''var glVersion: pchar; begin pointer( glGetString ) := load('glGetString'); if glGetString = nil then exit(false); glVersion := PChar( glGetString(GL_VERSION) ); if glVersion = nil then exit(false); ''' class OpenGLPascalLoader(BaseLoader): def write_header_end(self, fobj): pass def write_header(self, fobj): pass def write(self, fobj): pass def write_begin_load(self, fobj): fobj.write(_BEGIN_LOAD) def write_end_load(self, fobj): fobj.write('\n result := (glVersionMajor <> 0) or (glVersionMinor <> 0);\nend;\n') def write_find_core(self, fobj): fobj.write(_FIND_VERSION) def write_has_ext(self, fobj): gl = self.apis.get('gl') if not gl or (gl.major == 1 and gl.minor == 0): return if gl.major >= 3: fobj.write('{$DEFINE HAS_GL_NUM_EXTENSIONS}') fobj.write(_OPENGL_HAS_EXT) glad-0.1.30/glad/lang/volt/000077500000000000000000000000001347444401100153205ustar00rootroot00000000000000glad-0.1.30/glad/lang/volt/__init__.py000066400000000000000000000010431347444401100174270ustar00rootroot00000000000000from glad.lang.volt.loader.egl import EGLVoltLoader from glad.lang.volt.loader.gl import OpenGLVoltLoader from glad.lang.volt.loader.glx import GLXVoltLoader from glad.lang.volt.loader.wgl import WGLVoltLoader from glad.lang.volt.generator import VoltGenerator _specs = { 'egl': EGLVoltLoader, 'gl': OpenGLVoltLoader, 'glx': GLXVoltLoader, 'wgl': WGLVoltLoader } _generators = { 'volt': VoltGenerator, } def get_generator(name, spec): gen = _generators.get(name) loader = _specs.get(spec) return gen, loader glad-0.1.30/glad/lang/volt/generator.py000066400000000000000000000042261347444401100176640ustar00rootroot00000000000000import sys from glad.lang.d.generator import DGenerator if sys.version_info >= (3, 0): basestring = str class VoltGenerator(DGenerator): NAME = 'volt' NAME_LONG = 'Volt' MODULE = 'amp' LOADER = 'loader' ENUMS = 'enums' EXT = 'ext' FUNCS = 'funcs' TYPES = 'types' FILE_EXTENSION = '.volt' API = '' LOAD_GL_NAME = 'load' @property def PACKAGE(self): return 'package' def write_module(self, fobj, name): if name == 'package': fobj.write('module {}.{};\n\n'.format(self.MODULE, self.spec.NAME)) else: DGenerator.write_module(self, fobj, name) def write_prototype_pre(self, fobj): fobj.write('extern(System) @loadDynamic {\n') def write_prototype_post(self, fobj): fobj.write('}\n') def write_function_pre(self, fobj): pass def write_function_post(self, fobj): pass def write_shared(self, fobj): fobj.write('global {\n') def write_shared_end(self, fobj): fobj.write('}\n') def write_function(self, fobj, func): pass def write_function_prototype(self, fobj, func): fobj.write('{} {}(' .format(func.proto.ret.to_volt(), func.proto.name)) fobj.write(', '.join(param.type.to_volt() for param in func.params)) fobj.write(');\n') def write_boolean(self, fobj, name, **kwargs): fobj.write('global bool {};\n'.format(name)) def write_enum(self, fobj, name, value, type_='uint'): if isinstance(value, basestring): if value.startswith('0x') and type_.startswith('u'): value += 'U' if len(value) > 12 and type_.startswith('u'): value += 'L' try: v = int(value) if v < 0: type_ = 'int' except ValueError: pass if isinstance(value, basestring) and '"' in value: type_ = 'const(char)*' fobj.write('enum {} {} = {};\n'.format(type_, name, value)) def write_opaque_struct(self, fobj, name): fobj.write('struct _{name} {{}}\nalias {name} = _{name}*;\n'.format(name=name)) glad-0.1.30/glad/lang/volt/loader/000077500000000000000000000000001347444401100165665ustar00rootroot00000000000000glad-0.1.30/glad/lang/volt/loader/__init__.py000066400000000000000000000030041347444401100206740ustar00rootroot00000000000000 LOAD_OPENGL_DLL = ''' private global Library libGL; extern(System) private alias gladGetProcAddressPtrType = void* function(const(char)*); private global gladGetProcAddressPtrType gladGetProcAddressPtr; %(pre)s bool %(init)s() { version(Windows) { libGL = Library.load("opengl32.dll"); } else version(OSX) { libGL = Library.loads([ "../Frameworks/OpenGL.framework/OpenGL", "/Library/Frameworks/OpenGL.framework/OpenGL", "/System/Library/Frameworks/OpenGL.framework/OpenGL", "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL" ]); } else { libGL = Library.loads(["libGL.so.1", "libGL.so"]); } if(libGL !is null) { version(Windows) { string sym = "wglGetProcAddress"; } else { string sym = "glXGetProcAddressARB"; } // returns null on OSX, but that's fine gladGetProcAddressPtr = cast(typeof(gladGetProcAddressPtr))libGL.symbol(sym); return true; } return false; } private struct StructToDg { void* instance; void* func; } %(pre)s void* %(proc)s(string name) { if(libGL is null) return null; void* result; if(gladGetProcAddressPtr !is null) { // TODO: name.ptr result = gladGetProcAddressPtr(name.ptr); } if(result is null) { result = libGL.symbol(name); } return result; } %(pre)s void %(terminate)s() { if(libGL !is null) { libGL.free(); } return; } '''glad-0.1.30/glad/lang/volt/loader/egl.py000066400000000000000000000017431347444401100177140ustar00rootroot00000000000000from glad.lang.common.loader import BaseLoader from glad.lang.d.loader.egl import _EGL_HAS_EXT as _D_EGL_HAS_EXT _EGL_LOADER = ''' private struct StructToDg { void* instance; void* func; } private void* get_proc(string name) { return eglGetProcAddress(arg.ptr); } bool gladLoadEGL() { StructToDg structToDg; structToDg.func = cast(void*)get_proc; auto dg = *cast(Loader*)&structToDg; return gladLoadEGL(dg); } ''' _EGL_HAS_EXT = _D_EGL_HAS_EXT class EGLVoltLoader(BaseLoader): def write_header_end(self, fobj): pass def write_header(self, fobj): pass def write(self, fobj): fobj.write('import watt.library;\n') if not self.disabled: fobj.write(_EGL_LOADER) def write_begin_load(self, fobj): pass def write_end_load(self, fobj): fobj.write('\treturn true;') def write_find_core(self, fobj): pass def write_has_ext(self, fobj): fobj.write(_EGL_HAS_EXT)glad-0.1.30/glad/lang/volt/loader/gl.py000066400000000000000000000035071347444401100175470ustar00rootroot00000000000000from glad.lang.common.loader import BaseLoader from glad.lang.volt.loader import LOAD_OPENGL_DLL from glad.lang.d.loader.gl import _OPENGL_HAS_EXT as _D_OPENGL_HAS_EXT _OPENGL_LOADER = \ LOAD_OPENGL_DLL % {'pre':'private', 'init':'open_gl', 'proc':'get_proc', 'terminate':'close_gl'} + ''' bool gladLoadGL() { StructToDg structToDg; structToDg.func = cast(void*)get_proc; auto dg = *cast(Loader*)&structToDg; bool status = false; if(open_gl()) { status = gladLoadGL(dg); close_gl(); } return status; } ''' _OPENGL_HAS_EXT = ( 'global int GL_MAJOR = 0;\nglobal int GL_MINOR = 0;' + '\n'.join(l for l in _D_OPENGL_HAS_EXT.replace('@nogc', '').splitlines() if 'struct' not in l) .replace('GLVersion.major', 'GL_MAJOR') + '\n\n' ) class OpenGLVoltLoader(BaseLoader): def write_header_end(self, fobj): pass def write_header(self, fobj): pass def write(self, fobj): fobj.write('import watt.library;\n') if not self.disabled and 'gl' in self.apis: fobj.write(_OPENGL_LOADER) def write_begin_load(self, fobj): fobj.write('\tglGetString = cast(typeof(glGetString))load("glGetString");\n') fobj.write('\tif(glGetString is null) { return false; }\n') fobj.write('\tif(glGetString(GL_VERSION) is null) { return false; }\n\n') def write_end_load(self, fobj): fobj.write('\treturn GL_MAJOR != 0 || GL_MINOR != 0;\n') def write_find_core(self, fobj): fobj.write('\tconst(char)* v = cast(const(char)*)glGetString(GL_VERSION);\n') fobj.write('\tint major = v[0] - \'0\';\n') fobj.write('\tint minor = v[2] - \'0\';\n') fobj.write('\tGL_MAJOR = major; GL_MINOR = minor;\n') def write_has_ext(self, fobj): fobj.write(_OPENGL_HAS_EXT)glad-0.1.30/glad/lang/volt/loader/glx.py000066400000000000000000000017671347444401100177450ustar00rootroot00000000000000from glad.lang.common.loader import BaseLoader from glad.lang.volt.loader import LOAD_OPENGL_DLL _GLX_LOADER = \ LOAD_OPENGL_DLL % {'pre':'private', 'init':'open_gl', 'proc':'get_proc', 'terminate':'close_gl'} + ''' bool gladLoadGLX() { StructToDg structToDg; structToDg.func = cast(void*)get_proc; auto dg = *cast(Loader*)&structToDg; bool status = false; if(open_gl()) { status = gladLoadGLX(dg); close_gl(); } return status; } ''' _GLX_HAS_EXT = ''' private bool has_ext(const(char)* name) { return true; } ''' class GLXVoltLoader(BaseLoader): def write(self, fobj): fobj.write('import watt.library;\n') if not self.disabled: fobj.write(_GLX_LOADER) def write_begin_load(self, fobj): pass def write_end_load(self, fobj): fobj.write('\treturn true;\n') def write_find_core(self, fobj): pass def write_has_ext(self, fobj): fobj.write(_GLX_HAS_EXT)glad-0.1.30/glad/lang/volt/loader/wgl.py000066400000000000000000000013571347444401100177370ustar00rootroot00000000000000from glad.lang.common.loader import BaseLoader from glad.lang.volt.loader.glx import _GLX_LOADER _WGL_LOADER = _GLX_LOADER.replace('GLX', 'WGL') _WGL_HAS_EXT = ''' private bool has_ext(const(char)* name) { return true; } ''' class WGLVoltLoader(BaseLoader): def write_header_end(self, fobj): pass def write_header(self, fobj): pass def write(self, fobj): fobj.write('import watt.library;\n') if not self.disabled: fobj.write(_WGL_LOADER) def write_begin_load(self, fobj): pass def write_end_load(self, fobj): fobj.write('\treturn true;\n') def write_find_core(self, fobj): pass def write_has_ext(self, fobj): fobj.write(_WGL_HAS_EXT)glad-0.1.30/glad/opener.py000066400000000000000000000062311347444401100152570ustar00rootroot00000000000000from contextlib import closing import logging import sys if sys.version_info >= (3, 0): _is_py3 = True from urllib.request import build_opener, ContentTooShortError else: _is_py3 = False from urllib2 import build_opener from urllib import FancyURLopener logger = logging.getLogger('glad.opener') def build_urllib_opener(user_agent, *args, **kwargs): if _is_py3: return None class UrllibURLOpener(FancyURLopener): version = user_agent return UrllibURLOpener(*args, **kwargs) def _urlretrieve_with_opener(opener, url, filename, data=None): if not _is_py3: raise SyntaxError('Only call this in Python 3 code.') # borrowed from the original implementation at urllib.request.urlretrieve. with closing(opener.open(url, data=data)) as src: headers = src.info() with open(filename, 'wb') as dest: result = filename, headers bs = 1024*8 size = -1 read = 0 blocknum = 0 if "content-length" in headers: size = int(headers["Content-Length"]) while True: block = src.read(bs) if not block: break read += len(block) dest.write(block) blocknum += 1 if size >= 0 and read < size: raise ContentTooShortError( 'retrieval incomplete: got only %i out of %i bytes' % (read, size), result) return result class URLOpener(object): """ Class to download/find Khronos related files, like the official specs and khrplatform.h. Can also be used to download files, exists mainly because of Python 2 and Python 3 incompatibilities. """ def __init__(self, user_agent='Mozilla/5.0'): # the urllib2/urllib.request opener self.opener = build_opener() self.opener.addheaders = [('User-agent', user_agent)] # the urllib opener (Python 2 only) self.opener2 = build_urllib_opener(user_agent) def urlopen(self, url, data=None, *args, **kwargs): """ Same as urllib2.urlopen or urllib.request.urlopen, the only difference is that it links to the internal opener. """ logger.info('opening: \'%s\'', url) if data is None: return self.opener.open(url) return self.opener.open(url, data) def urlretrieve(self, url, filename, data=None): """ Similar to urllib.urlretrieve or urllib.request.urlretrieve only that *filname* is required. :param url: URL to download. :param filename: Filename to save the content to. :param data: Valid URL-encoded data. :return: Tuple containing path and headers. """ logger.info('saving: \'%s\' to \'%s\'', url, filename) if _is_py3: return _urlretrieve_with_opener(self.opener, url, filename, data=data) return self.opener2.retrieve(url, filename, data=data) # just a singleton helper: _default = None @classmethod def default(cls): if cls._default is None: cls._default = cls() return cls._default glad-0.1.30/glad/parse.py000066400000000000000000000264771347444401100151170ustar00rootroot00000000000000try: from lxml import etree from lxml.etree import ETCompatXMLParser as parser def xml_fromstring(argument): return etree.fromstring(argument, parser=parser()) def xml_frompath(path): return etree.parse(path, parser=parser()).getroot() except ImportError: try: import xml.etree.cElementTree as etree except ImportError: import xml.etree.ElementTree as etree def xml_fromstring(argument): return etree.fromstring(argument) def xml_frompath(path): return etree.parse(path).getroot() from collections import defaultdict, OrderedDict from contextlib import closing from itertools import chain import re from glad.opener import URLOpener _ARRAY_RE = re.compile(r'\[\d*\]') class Spec(object): API = 'https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api/' NAME = '' def __init__(self, root): self.root = root self._types = None self._groups = None self._enums = None self._commands = None self._features = None self._extensions = None self._removes = dict() @classmethod def from_url(cls, url, opener=None): if opener is None: opener = URLOpener.default() with closing(opener.urlopen(url)) as f: raw = f.read() return cls(xml_fromstring(raw)) @classmethod def from_svn(cls, opener=None): """deprecated""" return cls.from_remote(opener=opener) @classmethod def from_remote(cls, opener=None): return cls.from_url(cls.API + cls.NAME + '.xml', opener=opener) @classmethod def fromstring(cls, string): return cls(xml_fromstring(string)) @classmethod def from_file(cls, path): return cls(xml_frompath(path)) @property def comment(self): return self.root.find('comment').text @property def types(self): if self._types is None: self._types = [Type(element) for element in self.root.find('types').iter('type')] return self._types @property def groups(self): if self._groups is None: self._groups = dict([(element.attrib['name'], Group(element)) for element in self.root.find('groups')]) return self._groups @property def commands(self): if self._commands is None: self._commands = dict([(element.find('proto').find('name').text, Command(element, self)) for element in self.root.find('commands')]) return self._commands @property def enums(self): if self._enums is not None: return self._enums self._enums = dict() for element in self.root.iter('enums'): namespace = element.attrib['namespace'] type_ = element.get('type') group = element.get('group') vendor = element.get('vendor') comment = element.get('comment', '') for enum in element: if enum.tag == 'unused': continue assert enum.tag == 'enum' name = enum.attrib['name'] self._enums[name] = Enum(name, enum.attrib['value'], namespace, type_, group, vendor, comment) return self._enums @property def features(self): if self._features is not None: return self._features self._features = defaultdict(OrderedDict) for element in self.root.iter('feature'): num = tuple(map(int, element.attrib['number'].split('.'))) self._features[element.attrib['api']][num] = Feature(element, self) return self._features @property def extensions(self): if self._extensions is not None: return self._extensions self._extensions = defaultdict(dict) for element in self.root.find('extensions'): for api in element.attrib['supported'].split('|'): self._extensions[api][element.attrib['name']] = Extension(element, self) return self._extensions def add_remove(self, api, number, symbol): if api not in self._removes: self._removes[api] = dict() if number not in self._removes[api]: self._removes[api][number] = set() self._removes[api][number].add(symbol) def get_removes(self, api, number): if api not in self._removes: return set() removes = set() for n, r in self._removes[api].items(): # a later specification removes the symbol if n >= number: removes = removes.union(r) return removes class Type(object): def __init__(self, element): apientry = element.find('apientry') if apientry is not None: apientry.text = 'APIENTRY' self.raw = ''.join(element.itertext()) self.api = element.get('api') self.name = element.get('name') or element.find('name').text @property def is_preprocessor(self): return '#' in self.raw class Group(object): def __init__(self, element): self.name = element.attrib['name'] self.enums = [enum.attrib['name'] for enum in element] class Enum(object): def __init__(self, name, value, namespace, type_=None, group=None, vendor=None, comment=''): self.name = name self.value = value self.namespace = namespace self.type = type_ self.group = group self.vendor = vendor self.comment = comment def __hash__(self): return hash(self.name) def __str__(self): return self.name __repr__ = __str__ class Command(object): def __init__(self, element, spec): self.proto = Proto(element.find('proto')) self.params = [Param(ele, spec) for ele in element.iter('param')] def __hash__(self): return hash(self.proto.name) def __str__(self): return '{self.proto.name}'.format(self=self) __repr__ = __str__ class Proto(object): def __init__(self, element): self.name = element.find('name').text self.ret = OGLType(element) def __str__(self): return '{self.ret} {self.name}'.format(self=self) class Param(object): def __init__(self, element, spec): self.group = element.get('group') self.type = OGLType(element) self.name = element.find('name').text.strip('*') def __str__(self): return '{0!r} {1}'.format(self.type, self.name) class OGLType(object): def __init__(self, element): self.element = element self.raw = ''.join(element.itertext()).strip() self.name = element.find('name').text self.type = (self.raw.replace('const', '').replace('unsigned', '') .replace('struct', '').strip().split(None, 1)[0] if element.find('ptype') is None else element.find('ptype').text) # 0 if no pointer, 1 if *, 2 if ** self.is_pointer = 0 if self.raw is None else self.raw.count('*') # it can be a pointer to an array, or just an array self.is_pointer += len(_ARRAY_RE.findall(self.raw)) self.is_const = False if self.raw is None else 'const' in self.raw self.is_unsigned = False if self.raw is None else 'unsigned' in self.raw if 'struct' in self.raw and 'struct' not in self.type: self.type = 'struct {}'.format(self.type) ptype = element.find('ptype') self.ptype = ptype.text if ptype is not None else None def to_d(self): if self.is_pointer > 1 and self.is_const: s = 'const({}{}*)'.format('u' if self.is_unsigned else '', self.type) s += '*' * (self.is_pointer - 1) else: t = '{}{}'.format('u' if self.is_unsigned else '', self.type) s = 'const({})'.format(t) if self.is_const else t s += '*' * self.is_pointer return s.replace('struct ', '') to_volt = to_d def to_c(self): result = '' for text in self.element.itertext(): if text == self.name: # yup * is sometimes part of the name result += '*' * text.count('*') else: result += text result = _ARRAY_RE.sub('*', result) return result.strip() NIM_POINTER_MAP = { 'void': 'pointer', 'GLchar': 'cstring', 'struct _cl_context': 'ClContext', 'struct _cl_event': 'ClEvent' } def to_nim(self): if self.is_pointer == 2: s = 'cstringArray' if self.type == 'GLchar' else 'ptr pointer' else: s = self.type if self.is_pointer == 1: default = 'ptr ' + s s = self.NIM_POINTER_MAP.get(s, default) return s def to_pascal(self): s = self.type if self.is_pointer == 2: s = 'PPointer' if s == 'void' else 'PP' + s elif self.is_pointer == 1: if s[0:6] == 'struct': s = s[7:] else: s = 'Pointer' if s == 'void' else 'P' + s return s __str__ = to_d __repr__ = __str__ class Extension(object): def __init__(self, element, spec): self.name = element.attrib['name'] self.require = [] for required in chain.from_iterable(element.findall('require')): if required.tag == 'type': continue data = {'enum': spec.enums, 'command': spec.commands}[required.tag] try: self.require.append(data[required.attrib['name']]) except KeyError: pass # TODO @property def enums(self): for r in self.require: if isinstance(r, Enum): yield r @property def functions(self): for r in self.require: if isinstance(r, Command): yield r def __hash__(self): return hash(self.name) def __str__(self): return self.name __repr__ = __str__ class Feature(Extension): def __init__(self, element, spec): Extension.__init__(self, element, spec) self.spec = spec self.number = tuple(map(int, element.attrib['number'].split('.'))) self.api = element.attrib['api'] # not every spec has a ._remove member, but there shouldn't be a remove # tag without that member, if there is, blame me! for removed in chain.from_iterable(element.findall('remove')): if removed.tag == 'type': continue data = {'enum': spec.enums, 'command': spec.commands}[removed.tag] try: spec.add_remove(self.api, self.number, data[removed.attrib['name']]) except KeyError: pass # TODO def __str__(self): return '{self.name}@{self.number!r}'.format(self=self) @property def enums(self): removed = self.spec.get_removes(self.api, self.number) for enum in Extension.enums.fget(self): if enum not in removed: yield enum @property def functions(self): removed = self.spec.get_removes(self.api, self.number) for func in Extension.functions.fget(self): if func not in removed: yield func __repr__ = __str__ glad-0.1.30/glad/spec.py000066400000000000000000000023741347444401100147250ustar00rootroot00000000000000from glad.parse import Spec class EGLSpec(Spec): API = 'https://raw.githubusercontent.com/KhronosGroup/EGL-Registry/master/api/' NAME = 'egl' class GLSpec(Spec): API = 'https://raw.githubusercontent.com/KhronosGroup/OpenGL-Registry/master/xml/' NAME = 'gl' def __init__(self, root): Spec.__init__(self, root) self._profile = 'compatibility' @property def profile(self): return self._profile @profile.setter def profile(self, value): if value not in ('core', 'compatibility'): raise ValueError('profile must either be core or compatibility') self._profile = value def get_removes(self, api, number): if self._profile == 'core': return Spec.get_removes(self, api, number) return set() class GLXSpec(Spec): API = 'https://raw.githubusercontent.com/KhronosGroup/OpenGL-Registry/master/xml/' NAME = 'glx' class WGLSpec(Spec): API = 'https://raw.githubusercontent.com/KhronosGroup/OpenGL-Registry/master/xml/' NAME = 'wgl' SPECS = dict() # reflection to fill SPECS import sys import inspect for name, cls in inspect.getmembers(sys.modules[__name__], inspect.isclass): if issubclass(cls, Spec): SPECS[cls.NAME] = cls glad-0.1.30/glad/util.py000066400000000000000000000005021347444401100147370ustar00rootroot00000000000000from collections import namedtuple Version = namedtuple('Version', ['major', 'minor']) _API_NAMES = { 'egl': 'EGL', 'gl': 'OpenGL', 'gles1': 'OpenGL ES', 'gles2': 'OpenGL ES', 'glx': 'GLX', 'wgl': 'WGL', } def api_name(api): api = api.lower() return _API_NAMES.get(api, api.upper()) glad-0.1.30/setup.py000066400000000000000000000044701347444401100142230ustar00rootroot00000000000000#!/usr/bin/env python """ Glad ---- Glad uses the official Khronos-XML specs to generate a GL/GLES/EGL/GLX/WGL Loader made for your needs. Checkout the GitHub repository: https://github.com/Dav1dde/glad """ from setuptools import setup, find_packages import ast import re # Thanks flask: https://github.com/mitsuhiko/flask/blob/master/setup.py _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('glad/__init__.py', 'rb') as f: version = str(ast.literal_eval(_version_re.search( f.read().decode('utf-8')).group(1))) if __name__ == '__main__': setup( name='glad', version=version, description='Multi-Language GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs.', long_description=__doc__, packages=find_packages(), include_package_data=True, install_requires=[], entry_points={ 'console_scripts': [ 'glad = glad.__main__:main' ] }, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: Education', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Topic :: Games/Entertainment', 'Topic :: Multimedia :: Graphics', 'Topic :: Multimedia :: Graphics :: 3D Rendering', 'Topic :: Software Development', 'Topic :: Software Development :: Build Tools', 'Topic :: Utilities' ], keywords='opengl glad generator gl wgl egl gles glx', author='David Herberth', author_email='glad@dav1d.de', url='https://github.com/Dav1dde/glad', license='MIT', platforms='any' ) glad-0.1.30/utility/000077500000000000000000000000001347444401100142075ustar00rootroot00000000000000glad-0.1.30/utility/bump_version.sh000077500000000000000000000016201347444401100172550ustar00rootroot00000000000000#!/bin/bash -e if [ -z "$1" ]; then echo "No version supplied" exit 1 fi VERSION="$1" VERSION_PYTHON="__version__ = '${VERSION}'" VERSION_CMAKE=$(echo $VERSION) OLD_VERSION=$(python -c "import glad; print(glad.__version__)") echo "Old Version: $OLD_VERSION" echo "New Version: $VERSION" echo if [ "$VERSION" == "$OLD_VERSION" ] then echo "Version equals the old version" exit 1 fi echo "Python: $VERSION_PYTHON" echo "CMake : $VERSION_CMAKE" read -p "Do you want to update to version $VERSION? [y/n]: " -n 1 -r echo if [[ ! $REPLY =~ ^[Yy]$ ]] then echo "Aborted" exit 1 fi echo -e "\n$VERSION_PYTHON\n" > glad/__init__.py sed -i -e "s/GLAD VERSION [[:digit:].]\+/GLAD VERSION $VERSION_CMAKE/" CMakeLists.txt git commit -am "setup: Bumped version: $VERSION." git tag "v$VERSION" rm -rf build/ rm -rf dist/ python setup.py sdist bdist_wheel twine upload dist/* glad-0.1.30/utility/compiletest.sh000077500000000000000000000112701347444401100170770ustar00rootroot00000000000000#!/bin/bash -xe if [ -z ${PYTHON+x} ]; then PYTHON="/usr/bin/env python" fi echo "Using python \"$PYTHON\"" if [ "$1" != "no-download" ]; then ./utility/download.sh fi GCC_FLAGS="-o build/tmp.o -O3 -Wall -Wextra -Wsign-conversion -Wcast-qual -Wstringop-overflow=3 -Wstrict-prototypes -Werror -ansi -c" GPP_FLAGS="-o build/tmp.o -O3 -Wall -Wextra -Wsign-conversion -Wcast-qual -Wstringop-overflow=3 -Werror -c" function glad { ${PYTHON} -m glad $@ } function mingwc_compile { i686-w64-mingw32-gcc $@ x86_64-w64-mingw32-gcc $@ } function c_compile { gcc $@ -ldl mingwc_compile $@ } function mingwcpp_compile { i686-w64-mingw32-g++ $@ x86_64-w64-mingw32-g++ $@ } function cpp_compile { g++ $@ -ldl mingwcpp_compile $@ } function download_if_required { if [ ! -f $1 ]; then mkdir -p $(dirname "${1}") filename=$(basename "${1}") if [ ! -f ${filename} ]; then wget -O ${filename} $2 fi cp ${filename} $1 fi } # C echo -e "====================== Generating and compiling C/C++: ======================" function c_egl { rm -rf build glad --spec=egl --out-path=build $@ download_if_required build/include/EGL/eglplatform.h "https://raw.githubusercontent.com/KhronosGroup/EGL-Registry/master/api/EGL/eglplatform.h" download_if_required build/include/KHR/khrplatform.h "https://raw.githubusercontent.com/KhronosGroup/EGL-Registry/master/api/KHR/khrplatform.h" c_compile -Ibuild/include build/src/glad_egl.c ${GCC_FLAGS} cpp_compile -Ibuild/include build/src/glad_egl.c ${GPP_FLAGS} } function c_gl { rm -rf build glad --spec=gl --out-path=build $@ c_compile -Ibuild/include build/src/glad.c ${GCC_FLAGS} cpp_compile -Ibuild/include build/src/glad.c ${GPP_FLAGS} } function c_glx { rm -rf build glad --spec=gl --out-path=build $@ glad --spec=glx --out-path=build $@ gcc -Ibuild/include build/src/glad_glx.c ${GCC_FLAGS} g++ -Ibuild/include build/src/glad_glx.c ${GPP_FLAGS} } function c_wgl { rm -rf build glad --spec=gl --out-path=build $1 glad --spec=wgl --out-path=build $@ mingwc_compile -Ibuild/include build/src/glad_wgl.c ${GCC_FLAGS} mingwcpp_compile -Ibuild/include build/src/glad_wgl.c ${GPP_FLAGS} } function c_example { glad --spec=gl --out-path=build $@ gcc example/c/simple.c -o build/simple -Ibuild/include build/src/glad.c -lglut -ldl #mingwc_compile example/c/simple.c -o build/simple -Ibuild/include build/src/glad.c -lfreeglut g++ example/c++/hellowindow2.cpp -o build/hellowindow2 -Ibuild/include build/src/glad.c -lglfw -ldl mingwcpp_compile example/c++/hellowindow2.cpp -o build/hellowindow2 -Ibuild/include build/src/glad.c -lglfw3 -luser32 -lgdi32 } c_egl --generator=c c_egl --generator=c --extensions= c_gl --generator=c c_gl --generator=c --api="gl=2.1" c_gl --generator=c --api="gl=,gles2=" c_gl --generator=c --extensions= c_glx --generator=c c_glx --generator=c --extensions= c_wgl --generator=c c_wgl --generator=c --extensions=WGL_ARB_extensions_string,WGL_EXT_extensions_string c_example --generator=c c_example --generator=c --extensions= # C-Debug echo -e "====================== Generating and compiling C/C++ Debug: ======================" c_egl --generator=c-debug c_egl --generator=c-debug --extensions= c_gl --generator=c-debug c_gl --generator=c-debug --api="gl=2.1" c_gl --generator=c-debug --api="gl=,gles2=" c_gl --generator=c-debug --extensions= c_glx --generator=c-debug c_glx --generator=c-debug --extensions= c_wgl --generator=c-debug c_wgl --generator=c-debug --extensions=WGL_ARB_extensions_string,WGL_EXT_extensions_string c_example --generator=c-debug c_example --generator=c-debug --extensions= # D echo -e "\n====================== Generating and compiling D: ======================" rm -rf build ${PYTHON} -m glad --generator=d --spec=egl --out-path=build dmd -o- build/glad/egl/*.d -c rm -rf build ${PYTHON} -m glad --generator=d --spec=gl --api="gl=,gles1=,gles2=" --out-path=build dmd -o- build/glad/gl/*.d -c rm -rf build ${PYTHON} -m glad --generator=d --spec=gl --out-path=build ${PYTHON} -m glad --generator=d --spec=glx --out-path=build dmd -o- build/glad/glx/*.d -c rm -rf build ${PYTHON} -m glad --generator=d --spec=gl --out-path=build ${PYTHON} -m glad --generator=d --spec=wgl --out-path=build dmd -o- build/glad/wgl/*.d -c # Volt TODO echo -e "\n====================== Generating Volt: ======================" rm -rf build ${PYTHON} -m glad --generator=volt --spec=egl --out-path=build ${PYTHON} -m glad --generator=volt --spec=gl --out-path=build ${PYTHON} -m glad --generator=volt --spec=glx --out-path=build ${PYTHON} -m glad --generator=volt --spec=wgl --out-path=build rm -rf build glad-0.1.30/utility/download.sh000077500000000000000000000012621347444401100163560ustar00rootroot00000000000000#!/usr/bin/env bash set -e TARGET=${TARGET:="."} rm -f egl.xml wget -O "${TARGET}/egl.xml" https://raw.githubusercontent.com/KhronosGroup/EGL-Registry/master/api/egl.xml rm -f gl.xml wget -O "${TARGET}/gl.xml" https://raw.githubusercontent.com/KhronosGroup/OpenGL-Registry/master/xml/gl.xml rm -f glx.xml wget -O "${TARGET}/glx.xml" https://raw.githubusercontent.com/KhronosGroup/OpenGL-Registry/master/xml/glx.xml rm -f wgl.xml wget -O "${TARGET}/wgl.xml" https://raw.githubusercontent.com/KhronosGroup/OpenGL-Registry/master/xml/wgl.xml rm -f khrplatform.h wget -O "${TARGET}/khrplatform.h" https://raw.githubusercontent.com/KhronosGroup/EGL-Registry/master/api/KHR/khrplatform.h glad-0.1.30/utility/generateall.sh000077500000000000000000000020341347444401100170300ustar00rootroot00000000000000#!/usr/bin/env bash set -e if [ -z ${PYTHON+x} ]; then PYTHON="/usr/bin/env python" fi echo "Using python \"$PYTHON\"" if [ "$1" != "no-download" ]; then ./utility/download.sh fi rm -rf build echo "Generating C" $PYTHON -m glad --out-path=build --spec=egl --generator=c $PYTHON -m glad --out-path=build --spec=gl --api="gl=,gles1=,gles2=" --generator=c $PYTHON -m glad --out-path=build --spec=glx --generator=c $PYTHON -m glad --out-path=build --spec=wgl --generator=c echo "Generating D" $PYTHON -m glad --out-path=build --spec=egl --generator=d $PYTHON -m glad --out-path=build --spec=gl --api="gl=,gles1=,gles2=" --generator=d $PYTHON -m glad --out-path=build --spec=glx --generator=d $PYTHON -m glad --out-path=build --spec=wgl --generator=d echo "Generating Volt" $PYTHON -m glad --out-path=build --spec=egl --generator=volt $PYTHON -m glad --out-path=build --spec=gl --api="gl=,gles1=,gles2=" --generator=volt $PYTHON -m glad --out-path=build --spec=glx --generator=volt $PYTHON -m glad --out-path=build --spec=wgl --generator=volt glad-0.1.30/utility/updatesub.sh000077500000000000000000000011421347444401100165400ustar00rootroot00000000000000#!/usr/bin/env bash set -e git checkout master ./utility/generateall.sh echo "Updating C" git checkout c git rm -rf include git rm -rf src mv build/include include/ mv build/src src/ git add --all include git add --all src git commit -am "automatically updated" git push origin c:c echo "Updating D" git checkout d git rm -rf glad mv build/glad glad/ git add --all glad git commit -am "automatically updated" git push origin d:d echo "Updating Volt" git checkout volt git rm -rf amp mv build/amp amp/ git add --all amp git commit -am "automatically updated" git push origin volt:volt git checkout master