Porting from opengl to opengles

Started by
0 comments, last by V-man 15 years, 1 month ago
Hi, Some one help me to port skyfly demo application from opengl to opengles. Please share the code if anyone is having the opengles ported code. What are the things i have to take care while porting from opengl to opengles? Thanks, Raj
Advertisement
I recommend visiting khronos.org and checking out what source code, SDK, and documents you can download.
GL and GL ES are not much different, except they eliminate the old stuff like glBegin.

The big difference is how to create a context and destroy.
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

This topic is closed to new replies.

Advertisement