Hi,

I'm using GLES2, and I'd like to know how adjust aspect-ratio to match new window dimension.
usually, I'd write something like that in the 'surfaceChange' function:
glViewport(0, 0, width, height); //Reset The Current Viewport
glMatrixMode(GL_PROJECTION); //Select The Projection Matrix
glLoadIdentity();
//Calculate The Aspect Ratio Of The Window
gluPerspective(gl, 45.0f, (float)width / (float)height, 0.1f, 1000.0f);
glMatrixMode(GL_MODELVIEW); //Select The Modelview Matrix
glLoadIdentity();

But it seems like most of this code is not supported in GLES2 (I get many compilation error on missing declaration).
Am I missing some 'include' files? or maybe there's a different way for setting the aspect-ratio in GLES2?

Thanks.