SetOrthographicProjection Advanced function
Sets the orthographic projection as the active OpenGL projection mode. Ortographic projection is used by default. If you've selected a different projection mode in your OpenGL code you may wish to revert to ortographic projection by calling this function. The old projection mode is stored in the matrix stack and can be restored by calling RestoreOldProjection(). Note that you can choose the actual width and height of the screen. If the size of the program window is different from the given width and height the contents of the screen are stretched to fill the program window. Note: There's an evil typo in the function name in the earlier versions of OpenLayer, where it's called SetOrtographicProjection. Examples // Reverts back to the orthographic projection mode if you've changed //
// the projection mode somewhere // Settings::SetOrthographicProjection(); // If your program is supposed to run with 800 x 600 resolution but the actual resolution // // is something else you can do this to make everything appear in the screen as if the // // resolution was 800 x 600 // Settings::SetOrthographicProjection( 800, 600 ); Other functions of the class Settings
Questions about SetOrthographicProjection? Click here. |