Sign in to follow this  

A bit help with glut, easy question

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

This topic is 2128 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this