Archived

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

OpenGL Question: Changing Min/Max X/Y/Z

This topic is 6164 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 making a tetris clone with OpenGL. I''m using the code from NeHe Tutorial #1. Where in the code do I specify the minimum and maximum X, Y, and Z dimensions? I think the min & max X is 5 and I''m not sure what it is for Y and Z, but I''d like them to be minX=about -100 and maxX=about +100, etc. So what should i do?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You set them with a call to gluPerspective. You give an angle and not min/max values for x. This is the standard for 3D but perhaps are you working on a 2D app?

Share this post


Link to post
Share on other sites