1. A translation process between OpenGL and OpenGL|ES, comprising: storing global GL states which might be changed by an OpenGL|ES function used during translation; translating to obtain OpenGL APIs by substituting OpenGL|ES commands for OpenGL commands; passing the OpenGL|ES APIs for OpenGL|ES implementation; and restoring the global GL states which were previously stored.