Jump to content
  • Advertisement
Sign in to follow this  
adritill

A bit help with glut, easy question

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

Well i am learning a bit of graphic programming with glut in c++, i want to render a simple 3d environment, just a ground with some walls in the sides, nothing in the middle. Does coordinates begin from top right window size?
I think that it should be something with GL_POLYGON like:

// Ground
glBegin(GL_POLYGON);
glVertex3f(0,0,0);
glVertex3f(max_x,0,0);
glVertex3f(0,0,max_z);
glVertex3f(max_x,0,max_z);
glEnd();

Then put walls? if it is bad could anyone just let me know how to set a ground properly ?
thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
Hi ,
you look totally lost, :)
I think you should read some basic tutorials
here you are a good one !
http://nehe.gamedev.net/tutorial/lessons_01__05/22004/
Those are a little old but still good. Do each example. do not forget anyone.


keep in mind that glbegin and glend are oldfashioned for fixp ipeline
learn vertex arrays instead

also buy some books
good look

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!