You copied the Doc URL to your clipboard.

3.3. Writing an Android SDK sample

You can use the Mali SDK Template sample as a base for writing your own OpenGL ES 2.0 applications.

This section describes using OpenGL ES 2.0 directly from Java.

To add code to Mali SDK Template sample:

  1. Open in the src folder

  2. Add setup code which will be run once at the start in the onSurfaceCreated() method. This performs startup action such as, for example, loading shaders, enabling OpenGL ES states, and loading textures.

  3. Place the code which will draw each frame in the onDrawFrame() method

Was this page helpful? Yes No