Git Product home page Git Product logo

galogen's Introduction

Galogen

Galogen generates code to load OpenGL entry points for the exact API version, profile and extensions that you specify.

Please visit http://galogen.gpfault.net/ for more info.

Usage:

galogen <path to GL registry XML file> [options]

Options:

  • --api - should be "gl" for OpenGL, "gles1" for OpenGL ES 1, or "gles2" for OpenGL ES 2 or 3.
  • --ver - version of the API, e.g. 4.5 for OpenGL 4.5. Default is 4.0 for desktop OpenGL, 2.0 for OpenGL ES.
  • --profile - which API profile to use. Set to "core" for core profile, "compatibility" for compatibility profile. Default is "compatibility".
  • --exts - comma-separated list of extensions to add. Default is empty.
  • --filename - name for generated file(s). Default is "gl".

Example:

./galogen gl.xml --api gl --ver 4.5 --profile core --filename gl_core_45

Disclaimer

This is not an official Google product (experimental or otherwise), it is just code that happens to be owned by Google.

galogen's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

galogen's Issues

VS2017 compile error when looking up wglGetProcAddress

I'm getting a compile error in VS2017 where wglGetProcAddress is looked up from opengl32.dll:

1>gl.c
1>c:\projects\sokol-samples\sapp\gl.c(12): error C2220: warning treated as error - no 'object' file generated
1>c:\projects\sokol-samples\sapp\gl.c(12): warning C4113: 'FARPROC' differs in parameter lists from 'PROC (__cdecl *)(LPCSTR)'
1>c:\projects\sokol-samples\sapp\gl.c(12): warning C4047: '=': 'PROC (__cdecl *)(LPCSTR)' differs in levels of indirection from 'FARPROC'

Changing the (PROC) cast to the function signature fixes the problem:

    wgl_get_proc_address = (PROC(WINAPI*)(LPCSTR))GetProcAddress(opengl32module, "wglGetProcAddress");

After that fix, everything worked :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.