2. The method of claim 1 wherein substituting comprises transforming complex primitive quads and polygons in OpenGL into smaller pieces of triangles for drawing in OpenGL|ES.
1. A translation method, comprising: wrapping, during runtime, an OpenGL application with a configurable layer positioned for execution between the OpenGL application and an OpenGL|ES rendering engine, wherein the configurable layer performs an application independent translation of OpenGL APIs and extensions so as to be supported by the OpenGL|ES rendering engine; wherein wrapping comprises storing global GL states which might be changed by any OpenGL|ES functions used during the application independent translation and then restoring the global GL states following OpenGL|ES rendering so as to conform with continued execution of the OpenGL application; wherein the wrapping, with respect to the application independent translation, further comprises substituting OpenGL|ES commands for OpenGL commands and passing OpenGL|ES APIs for OpenGL|ES implementation; and wherein substituting comprises, with respect to an automatic Texture-Coordinate Generation operation using a glTexGen command in OpenGL, performing the following process for each vertex: calculating vertex coordinates in an eye system using a modelview matrix; computing spherical texture coordinates (s, t); activating a texture coordinates array; and sending a pointer array to OpenGL.