3.2. Running examples on Windows

There are various examples and unit tests that are provided with UI Engine, Table 3.1 shows the directories where these are stored. These folders also contain the MSVC project files used to build the corresponding examples.

Table 3.1. Example directories

ContentsDirectory
Example Applicationsexample_applications\
Mali UI Engine Tutorial Examples tutorial_examples\
OpenGL ES 2.0 shader examplesshader_library\
Mali UI Engine Unit testsunit_tests\

To run the examples, first ensure the libGLESv2.dll and libEGL.dll DLLs are either in the current executable directory or on the system path.

OpenGL 2.0 or above compliant drivers for your graphics card must be installed to run UI Engine examples on a computer running Microsoft Windows.

Note

To add the DLLs to the system path:

  1. Display the Control Panel by selecting the following application from the start menu.

    Start → Control Panel → System → Advanced → Environmental Variables

  2. From the Environmental Variables dialog box select Edit.

  3. Add the locations of the two DLLs to the Path variable.

To run a UI Engine example:

  1. To start an example, or the test suite, double-click on the mali_ui_engine.sln solution file. Microsoft Visual Studio starts up.

    A screen similar to that shown in Figure 3.1 is shown. In this example the 03-Texturing project from the shader examples is already highlighted.

    Figure 3.1. Test suite

    Test suite

  2. To run a project, select the required project file to highlight it. In this example select 03 - Texturing from the shader examples.

  3. Select Set as Startup Project from the Project menu.

  4. Select Start without Debugging from the Debug menu.

    Figure 3.2 shows the generated texturing example.

    Figure 3.2. Texturing example

    Texturing example

Copyright © 2009-2010 ARM. All rights reserved.ARM DUI 0505B
Non-Confidential