Jump to content
  • Advertisement

Archived

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

Ronald Forbes

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

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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!