OpenGL Extensions

Advanced game related topics
Moonshine
Enthusiast
Enthusiast
Posts: 263
Joined: Tue May 25, 2004 12:13 am
Location: UK

OpenGL Extensions

Post by Moonshine »

I want to play with OpenGL in PB but Im stumped on what I can find. I already have the tutorials etc from DarkDragon's site and Ive converted the available headers on SGI's site, but I want to use more recent techniques by implementing extensions. Problem is I cant find anything documenting anything anywhere.

The headers are cryptic and unformatted, nobody seems to have up to date help files or anything... I dont want to be stuck in 1996, can anybody point me in the right direction?

Also, is it possible to use the OpenGL commands without using the WinAPI like in PB, ie with a _ after the commands. I just prefer to write stuff myself is all.
Mark my words, when you least expect it, your uppance will come...
Raven
User
User
Posts: 45
Joined: Tue Jul 15, 2003 4:03 pm
Location: England

Post by Raven »

OpenGL is extremely to impliment in any language, mainly because it is always active on any system using an OpenGL Display driver.

Although you could run the functions directly using _ trailing them, you can simply declare them in your program and use them directly.
I would advice creating a specific .pb and declare any functions, structures and constants your going to need in it.

The example in the Advance - Sources does a good job of showing a general setup. It only uncovers the OpenGL 1.1 functionality but if you read up on the specification functions on OpenGL.org should give you a better idea.
Escobar
User
User
Posts: 17
Joined: Tue Aug 05, 2003 5:54 pm

Moving Beyond OpenGL 1.1 for Windows

Post by Escobar »

Hi,

I just want to point you to this article:

http://www.gamedev.net/reference/articl ... le1929.asp

I was looking for the same kind of info when I found this 'paper' at

www.gamedev.net.

I hope you will find it useful...
Moonshine
Enthusiast
Enthusiast
Posts: 263
Joined: Tue May 25, 2004 12:13 am
Location: UK

Post by Moonshine »

Thanks for the reply - I've already taken a look at that article. I think the problem lies in converting the header files - most programming communities (delphi, C++ etc) maintain their own headers that incorporate the newest features of each version (such as OGL 1.5). Since I have little C++ experience this is awkward - I did find Delphi headers which are much much clearer in terms of readability, but I dont know delphi :?

So for the time being Ive switched to DX9 which seems to be easier to work with in PB.
Mark my words, when you least expect it, your uppance will come...
Post Reply