PDA

View Full Version : GL, GLU, GLUT, GLEW Function List in one file



SpaXe
05-01-2010, 09:59 PM
Hello everyone,

I've been lurking around the boards, and I'd like to share with you something I spent some effort extracting using Python and regular expressions.

In MS Visual Studio, I always wanted syntax highlighting for OGL-related functions and constants. People suggested putting them into a file called UserType.dat, and save it where devenv.exe (VS executable) lives. Well, I've done a lot of work putting them into this one file!

Right now, it totals to about 7200 lines worth of functions and constants, and you can have them highlighted in visual studio (and I'd imagine other IDEs as well).

Get it here >>> http://xavierho.com/temp/sorted_keywords.txt

I'm wondering how useful this file can be to people, and I need reviews to see if anything is missing - I won't know until this file is widely used. Please give me some feedback and any comments you have about this file.

Basic usage:
1. Save it to where devenv.exe lives (usually C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\).
2. Rename it to UserType.dat.
3. Reopen VS, and open up options. Go to Fonts and Colors, and look for User Keywords. Change the colour to anything you like.

That's it. Please give me feedback for improvement!

Cheers,
Xav

raztek
06-11-2012, 09:59 AM
Thanks for the list, .. good job.

Alfonse Reinheart
06-11-2012, 12:43 PM
In MS Visual Studio, I always wanted syntax highlighting for OGL-related functions and constants.

Visual Studio does that automatically these days. Though GLEW's #defines play havok with its deduction of OpenGL functions, it still generally works.

nigels
08-02-2012, 12:09 AM
In MS Visual Studio, I always wanted syntax highlighting for OGL-related functions and constants.

A similar list could be extracted from the Regal API databases, and constantly refreshed in github as new extensions, etc appear.

https://github.com/p3/regal

- Nigel