13.07.2015 Views

Mali GPU User Interface Engine Application Development Guide

Mali GPU User Interface Engine Application Development Guide

Mali GPU User Interface Engine Application Development Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Tutorial on Drawing 3D ShapesFigure 4-18 Environment bitmap 4.pngopp.pgn This is the image for the environment ceiling, see Figure 4-19:Figure 4-19 Environment bitmap opp.pngned.pgn This is the image for the environment floor, see Figure 4-20:Figure 4-20 Environment bitmap ned.png2. Previous examples specified the locations for each vertex in the shape. Example 4-41shows how to load an asset file that contains the information:Example 4-41 Load the assets for cube mapping...int main(int argc, char * argv[]){try{// InitializingManaged system = create_system_backend();Managed context = system->createContext(320, 240);#ifdef MDE_OS_PC_LINUXManaged keyboard = system->createKeyboard(context);#elseManaged keyboard = system->createKeyboard();ARM DUI 0527A-02a Copyright © 2010 ARM. All rights reserved. 4-34ID070710Non-Confidential - Draft - Beta

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!