Advertisement

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

Started by January 26, 2001 01:42 PM
1 comment, last by Ronald Forbes 24 years ago
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?
C:DOSC:DOSRUNRUN DOSRUN
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?
Advertisement
Thanks for the reply. I guess that''s the only problem with learning OpenGL from the NeHe tutorials. Everything''s fine until u need to change something and you don''t know how.
C:DOSC:DOSRUNRUN DOSRUN

This topic is closed to new replies.

Advertisement