Porting your OpenGL ES code
In most cases, porting your code to BlackBerry 10 from other platforms that support OpenGL ES APIs (for example, iOS or Android) is a one-to-one mapping. Porting from Android SDK is quite straightforward, except that the OpenGL ES APIs are accessible using Java classes: GLES11 and GLES20. You need to create an instance of each class to access to the necessary methods. The Java methods in the GLES11 and GLES20 classes map closely to the native OpenGL ES APIs. Consider the following example:
Clearing the color buffer using the GLES11 class:
glClear(GL_COLOR_BUFFER_BIT);For more information on porting your code to BlackBerry 10, see Gaming and porting.
Last modified: 2013-12-21