Jump to content
  • Advertisement

Archived

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

alex_r

Engine

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

Advertisement
quote:
Original post by alex_r
Hello again...

I making a OpenGL engine, what is the best use only OpenGL or GLUT???

THX!!!





what kinda question was that ? if u r making an opengl engine u must use opengl.. glut wont do all the gl graphical part.. glut help witht he windowing... cuts alot of win api.. but i prefer win api with opengl..

Metal Typhoon

Share this post


Link to post
Share on other sites
The question is, I like to make a engine for Windows, Linux, MacOS.

For this engine I use OpenGL like the samples from Nehe(Windows.h) or I use the Glut???

thx...


Share this post


Link to post
Share on other sites
Option one: you use GLUT to make your life easier. GLUT covers functions that are (potentially?) platform-specific, in order to make the early learning curve easier before you get the details down.

OpenGL is used at all times. GLUT and GLU will call it whenever you want to do something. Commands such as glBegin, glFlush, and gl*Array are what you use to get pixels on the screen.

Option two: creatively use #define and #if/#elif/#else/#endif in order to partition off sections of code for differant OSes, compilers, etc, while just using GL and GLUT routines.

Use GLUT to get it started, then switch commands over when you''re out of good ideas of how to add functionality.

Anyway labeling preprocessor commands as "C Legacy Topics" deserves to get thwacked.

-Sta7ic

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.

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!