PDA

View Full Version : WholeGL



Julien Cayzac
03-11-2002, 01:15 AM
Some people talked here about extensions loading and didn't like the way it works.

For them, and for anybody interested, I've written a small glue called WholeGL. It can be found here (http://www.brainlex.com/3d/) .

With only one call, GLInitialize(driverName, caps*), you can load any OpenGL driver and all the extensions. The functions are then ready to use.

It has only been tested on Linux so far, so please tell me if it works on Win32!

Julien.

[This message has been edited by deepmind (edited 03-11-2002).]

T2k
03-11-2002, 01:24 AM
but i think these people dont like glu too ?!?

richardve
03-11-2002, 04:58 AM
I would suggest to call it glInitalize() instead of GLIntialize() because the uppercase GL is meant for the GL types.

Also, I wouldn't recommend to use gl or GL as a prefix because it could be that the function will be 'overwritten' (ie. making your own function invalid because of the name clash) in a newer version of OpenGL.
(well, it's not really likely to happen.. but still.. it's no good practice)

And I can't test it for you under Windows because I can't visit your page (error)

Carmacksutra
03-11-2002, 11:03 AM
Here is another one http://www.opengl.org/discussion_boards/ubb/biggrin.gif

https://sourceforge.net/projects/glex/

Any volunteer to implement glx part ?

Julien Cayzac
03-12-2002, 04:31 AM
Originally posted by richardve:
I would suggest to call it glInitalize() instead of GLIntialize() because the uppercase GL is meant for the GL types.

Also, I wouldn't recommend to use gl or GL as a prefix because it could be that the function will be 'overwritten' (ie. making your own function invalid because of the name clash) in a newer version of OpenGL.
(well, it's not really likely to happen.. but still.. it's no good practice)


The other alternative would have been "wgl" like "WholeGL", but it does already exist (WTF didn't they choose glW, as for glX) ?
I don't think I'll ever write a function called GLfloat(), so there shouldn't be any name conflict http://www.opengl.org/discussion_boards/ubb/smile.gif

The 0.3 release is out:
- GLInitialize() declaration was changed.
- GLCheckCapabilities() has been introduced.
- GLcaps structure now correctly filled.
- Feature aliasing now works.
Supported extensions are listed in the GL.c source file.

It has been tested on Linux and Windows 98.

Julien.

zeckensack
03-12-2002, 04:53 AM
You could rename it to ezgl or something similarily flashy ...
May seem insignificant, but I think it isn't. You should definitely do something about it and not start your function names with gl or wgl.

I can already see the questions:
Hello ... ? I've snagged a peice ofs ome suroce coude and I ca'nt compile it coz it sais som like 'linker stuff error w glInitialize'. Have I wrong version of OpenGL? Where get new?

martin_marinov
03-12-2002, 10:05 AM
Hi
I tried WholeGL and and I like your solution, but what about GLU support? Also what about licence (GPL, LGPL, etc...). Also a suggestion for the prefix - in my OpenGL support library I prefix my own classes and functions related to OpenGL with Ogl...
however, keep the good work http://www.opengl.org/discussion_boards/ubb/smile.gif)
Regards
Martin

Julien Cayzac
03-13-2002, 02:57 AM
XGL (formerly WholeGL) v0.4 is out and fixes these issues, among other more annoying ones: Get it here (http://www.brainlex.com/3d/) .

When I have ten minutes to waste, I'll certainly create a project on SourceForge, as there seems to be routing problems between many people and my domain http://www.opengl.org/discussion_boards/ubb/frown.gif .

Julien.