Jump to content
OpenGL API Specifications
Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
Posted 31 January 2012 - 12:32 PM
Posted 31 January 2012 - 12:56 PM
glMatrixMode(GL_PROJECTION); glLoadIdentity(); glViewport(0,0, Resolution.x, Resolution.y); gluPerspective(90, (Resolution.x / Resolution.y), 1.0f, 5000.0f); glMatrixMode(GL_MODELVIEW);
Posted 31 January 2012 - 01:27 PM
It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.
Posted 31 January 2012 - 02:50 PM
Sometimes I just do not understand how I don't notice that kind of simple problems....
Are resolution.x and resolution.y ints? If so you'll always* get an aspect of 1 when you divide them. Cast them to floats instead.
*: Unless height is greater than width, of course.
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.