2.3.1. Building the OpenGL ES 2.0 Cube example

The cube example code for OpenGL ES 2.0 is included in the following directory:

C:\Program Files\ARM\Mali Developer Tools\OpenGL ES Emulator vm.n.o\examples\OpenGLES_20\cube\src

To build and run this example:

  1. Ensure the OpenGL ES Emulator is installed.

  2. Ensure that locations of the DLLs for OpenGL ES Emulator are added to the system environment variable Path. This is described in Using the OpenGL ES Emulator.

  3. The next steps use Microsoft Visual Studio 2005 to build and run the application:

    1. Start → All Programs → Microsoft Visual Studio 2005 → Visual Studio Tools → Visual Studio 2005 Command Prompt

    2. Change directory to the following directory that contains the example:

      C:\Program Files\ARM\Mali Developer Tools\OpenGL ES Emulator vm.n.o\examples\OpenGLES_20\cube
      
    3. To build the example application, type the following command at the command prompt:

      nmake

    4. To run the example application, type the following command at the command prompt:

      cube.exe

    5. An additional window with a spinning, colored cube appears when the example application is running. Figure 2.2 shows an image.

      Figure 2.2. Cube example

      Cube example

    6. To end the program, close this window.

Copyright © 2009-2012 ARM. All rights reserved.ARM DUI 0511F
Non-ConfidentialID052512