Game Development Community

OpenGL, glPushMatrix, etc.

by Demolishun · in Torque Game Engine · 10/22/2004 (7:50 pm) · 0 replies

I have a few questions about OpenGL and what I need to watch out for when drawing with it.

How does using OpenGL functions affect portability of the game? I realize that OpenGL is the only real standard in computer graphics on all platforms. However, I am wondering how this affects MS Windows machines. I noticed a lot of widgets use OpenGL calls. I assume these somehow work on machines that use Direct X? I heard there is a translator somewhere, but I am not sure how it works in side the engine.

Second question is specific to OpenGL and what I can do without screwing up the rendering contexts for other GUI widgets. Should I be using to glPush/PopMatrix to "protect" other widgets? Can I do 3D rendering without messing up the 2D context setup for the GUI elements or vice versa?

Thanks,
Frank

About the author

I love programming, I love programming things that go click, whirr, boom. For organized T3D Links visit: http://demolishun.com/?page_id=67