Hello everyone on this forum.
I'm new to android development. I used to be a psp homebrew developer and 3D game programmer for PC games. I have quite some experience with a lot of programming languages and especially C/C++.
Now my question.
Te definition of glOrtho is:
void glOrthof(GLfloat left,
GLfloat right,
GLfloat bottom,
GLfloat top,
GLfloat near,
GLfloat far)
Most tutorials i find on the internet use it like this:
glOrthof(0.0f,width,height,0.0f,-100.0f,100.0f)
Unfortunately when i use this nothing is drawn in the screen.
But when i swap the 3rd and 4th argument like this:
glOrthof(0.0f,width,0.0f,height,-100.0f,100.0f)
My rectangle is drawn.
Can someone explain why the first is used in most tutorial (like the opengl tutorials from nehe) while the second one is actually working?
PS.
Does someone knows a good explanation of glFrustum? I can use gluPespective but i prefer understanding what i am doing/using.



