Archived

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

Ronald Forbes

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

Recommended Posts

Ronald Forbes    122
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   
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