Personal tools
You are here: Home downloads Gem Documentation GemFAQ What are the default OpenGL states?
Document Actions

What are the default OpenGL states?

Up to Table of Contents

This FAQ applies to: Any version.

GemMan (and by association, gemwin) disables alpha testing, alpha blending, culling, and lighting. Lighting defaults to two sided, with GL_COLOR_MATERIAL enabled. The viewport is set to:

 float xDivy = (float)m_width / (float)m_height;



 glFrustum(-xDivy, xDivy, -1.0, 1.0, 1.0, 20.0);

 gluLookAt(0.0, 0.0, 4.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);


 glViewport(0, 0, m_width, m_height);

which gives a range of about -4 to 4 in X and Y at the origin. This is a small range, but changing it now would break a lot of patches.

The specific functions to look at are:




by IOhannes m zmoelnig last modified 2007-07-10 03:22 PM

Powered by IEM Powered by Plone Section 508 WCAG Valid XHTML Valid CSS Usable in any browser