Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of alternatives for functions missing in OpenGLES

There are number of functions that exist in OpenGL but not in OpenGLES 1.1 (for iPhone).

Is there a list or resource that lists some alternative functions that can be used in OpenGLES 1.1?

For example:

  • gluOrtho2D
  • glPolygonMode
  • glVertex3f
  • etc
like image 852
cbrulak Avatar asked Feb 11 '09 21:02

cbrulak


2 Answers

The "OpenGL ES 1.1.12 Difference Specification" (http://www.khronos.org/registry/gles/specs/1.1/es_cm_spec_1.1.12.pdf) lists the differences between OpenGL ES 1.X and OpenGL 1.5.

The iPhone uses OpenGL ES 1.1

I would also recommend you make a list of the OpenGL functions you call and check the ES documentation to see if they are wholly/partially supported.

like image 157
Andrew Grant Avatar answered Sep 28 '22 10:09

Andrew Grant


from the man page for gluOrtho2D

DESCRIPTION

gluOrtho2D sets up a two-dimensional orthographic viewing
region. This is equivalent to calling glOrtho with near=-1
and far=1.

Instead of using glVertex3f you must use Vertex Arrays see link

like image 39
epatel Avatar answered Sep 28 '22 08:09

epatel