Anteru's blog
  • Consulting
  • Research
    • Assisted environment probe placement
    • Assisted texture assignment
    • Edge-Friend: Fast and Deterministic Catmull-Clark Subdivision Surfaces
    • Error Metrics for Smart Image Refinement
    • High-Quality Shadows for Streaming Terrain Rendering
    • Hybrid Sample-based Surface Rendering
    • Interactive rendering of Giga-Particle Fluid Simulations
    • Quantitative Analysis of Voxel Raytracing Acceleration Structures
    • Real-time Hybrid Hair Rendering
    • Real-Time Procedural Generation with GPU Work Graphs
    • Scalable rendering for very large meshes
    • Spatiotemporal Variance-Guided Filtering for Motion Blur
    • Subpixel Reconstruction Antialiasing
    • Tiled light trees
    • Towards Practical Meshlet Compression
  • About
  • Archive

GLExt2 goes OpenSource

October 27, 2005
  • Graphics
  • Opengl
  • Programming
  • Python
approximately 1 minutes to read

After a long, long time I finally found some time to release GLExt2. GLExt2 is an utility that simplifies the use of OpenGL extensions. It basically takes an extension registry in text form (at the moment, I use the registry created by GLEW) and parses it into a XML file. This XML file is then further processed using a set of templates to generate a C++ class.

Requirements

GLExt2 depends only on Python 2.4.x and wxPython 2.6.x. There are no other dependencies I’m aware of.

How to use GLExt2

First of all, you need to download (650kb ZIP) it. You might also want to get a more recent version of GLEW (you only need the GLEW source code, I bundled the extension files from GLEW 1.3). Put all GLEX extension files under /extensions. Now you’re ready to run GLExt2. GLExt2 can run in either GUI or text mode, the file you need to start is the same in both cases: glext2_app.py (don’t start the glext2_gui.py, it will exit immediately).

If you don’t specify any command line option you’ll start in full-blown GUI mode where you can click buttons and see a progress bar etc. :) Nice, but not really useful. Most people will like to use the command-line interface, which is also easier to integrate into your build process. Simply pass --gui=0 on the command line to surpress the GUI. You need also to define what will be build, use -x/--xml to generate the XML and -c/--class-header for the class headers. If you run with -c -x then GLExt2 will create the XML file first and the class second. Have fun and feel free to comment if you find it useful.

Notes

Support for GLX and GLU is not implemented. WGL support is working and tested. The class header can be built successfully with VC++ 7.1 without any special compiler switches.

Previous post
Next post

Recent posts

  • Data formats: Why CSV and JSON aren't the best
    Posted on 2024-12-29
  • Replacing cron with systemd-timers
    Posted on 2024-04-21
  • Open Source Maintenance
    Posted on 2024-04-02
  • Angular, Caddy, Gunicorn and Django
    Posted on 2023-10-21
  • Effective meetings
    Posted on 2022-09-12
  • Older posts

Find me on the web

  • GitHub
  • GPU database
  • Projects

Follow me

Anteru NIV_Anteru
Contents © 2005-2025
Anteru
Imprint/Impressum
Privacy policy/Datenschutz
Made with Liara
Last updated August 10, 2019