| |||
| Home > Building the User Interface Engine > 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
| Contents | Directory |
|---|---|
| Example Applications | example_applications\ |
| Mali UI Engine Tutorial Examples | tutorial_examples\ |
| OpenGL ES 2.0 shader examples | shader_library\ |
| Mali UI Engine Unit tests | unit_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.
To add the DLLs to the system path:
Display the Control Panel by selecting the following application from the start menu.
Start → Control Panel → System → Advanced → Environmental Variables
From the Environmental Variables dialog box select Edit.
Add the locations of the two DLLs to the Path variable.
To run a UI Engine example:
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.
To run a project, select the required project file to highlight it. In this example select 03 - Texturing from the shader examples.
Select Set as Startup Project from the Project menu.
Select Start without Debugging from the Debug menu.
Figure 3.2 shows the generated texturing example.