Jump to content
  • Advertisement
Sign in to follow this  
hphuc

The red book

This topic is 5083 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

I have bought the red book. And I 've read Nehe Tutorial.In the red book, writer don't use Win32 API, but Nehe Tutorial use Win32 API. Can I use things in the red book into Win32?

Share this post


Link to post
Share on other sites
Advertisement
The Red Book talks only about OpenGL operations.The NeHe Tutorials are real applications,so the need to setup windows,rendering contexts,etc.,so they use Win32 for that.You can also use glut,or SDL,to make your application platform-indepedent.

Share this post


Link to post
Share on other sites
I'm not sure if I totally understand your question - but I'm assuming the red book examples use GLUT, whereas NeHe uses the wiggle (wgl) extensions to for setting up the GL environment. Most of the OpenGL code you will see is the same, it's mainly just the utility functions that differ. You can grab GLUT from here if you need it. I believe that most (if not all) of the NeHe tutorials have GLUT ports too, so it's really up to you how to go about things.

Share this post


Link to post
Share on other sites
Quote:
Original post by mikeman
The Red Book talks only about OpenGL operations.The NeHe Tutorials are real applications,so the need to setup windows,rendering contexts,etc.,so they use Win32 for that.You can also use glut,or SDL,to make your application platform-indepedent.


Does it mean that I can use what talked in The Red Book into my application (+ setup windows,....)?

Share this post


Link to post
Share on other sites
The Red Book focuses on the OpenGL API, you can use and function that begins with gl* in your application. Others, such as glu* need the glu libraries and headers and others such as glut* will require the GLUT libraries to function. If you see the wgl* prefix, you know you're dealing with Windows only extensions.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!