View Full Version : glOrtho is missing?

05-10-2010, 02:39 PM
Hi, developed some opengl applications for PC platform and i want to try write something for my HD2.
I would like to ask, glOrtho func is missing in opengl es 2.0? if it's true, is there another one method, how to switch into orthographics projection?
I want to start with something simple, i don't need 3d projection for this time.
Can you give me some advices how can i do that?

Thanks, MB :-)

05-17-2010, 04:21 AM
OpenGL ES 2.0 does not have fixed function vertex processing, which means it also doesn't have a projection matrix stack. You can do vertex transformations in the vertex shader in whichever way you like. If your vertex shader uses a projection matrix uniform, you simply set it to the desired ortho projection matrix.

09-14-2010, 10:12 PM
See my matrix.h and matrix.c in my engine for matrix making help. viewtopic.php?f=9&t=3140 (http://www.khronos.org/message_boards/viewtopic.php?f=9&t=3140)

09-01-2011, 05:56 AM
Thank you for the link
all the problems are solved now :wink:

10-18-2011, 07:17 AM
Thank you, you've just solved my problem too. Cheers.

10-27-2011, 06:17 AM
Hi, guys, registered to thank you for the great solution provided in here. You've saved tones of my nerves and time