Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Bruno

OpenGL new in opengl

This topic is 6933 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi I''m tryng to learn programming in opengl, but i''m unable to compile any programs that use the gl.h... I get a bunch of errors, 102 when i compile.., any ideias? I''m using opengl95.exe drivers , is this the correct one? thanks Bruno

Share this post


Link to post
Share on other sites
Advertisement
Go here for compiler setup for opengl :

http://nehe.gamedev.net/opengl.asp

He also has some nice tutorials on there! Hope that helps.

Justin Eslinger
http://members.xoom.com/Blackscar

Share this post


Link to post
Share on other sites
Under Windows you generally have to include before the OpenGL headers. This is pretty stupid (blame Microsoft) but alas.

Share this post


Link to post
Share on other sites
Tss, GMCBay, if you think including is stupid, what language are you using??


#pragma DWIM // Do What I Mean!
~ Mad Keith ~
**I use Software Mode**

Share this post


Link to post
Share on other sites
I generally use C/C++.

My post doesn't make as much sense as I intended because the forum software ate up my references to <windows.h> because I didn't escape the <> symbols, doh!

What I meant to say is that its stupid that you have to include <windows.h> before <gl/gl.h>.
since <gl/gl.h> uses Windows-specific datatypes and OpenGL is not Windows-specific.

Not doing so complicates crossplatform OpenGL code. Of course, the complication is very slightly, but its still there and was easy enough for Microsoft to have avoided that its annoying.





Edited by - gmcbay on 4/26/00 12:39:17 PM

Share this post


Link to post
Share on other sites
Hmm yeah that''s a point.
The same goes for stdafx.h sometimes - it Undefines all of your macros for some weird reason, can lead to highly unpleasant and hard to find errors.


#pragma DWIM // Do What I Mean!
~ Mad Keith ~
**I use Software Mode**

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!