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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Tutorial on the Lotion <strong>User</strong> <strong>Interface</strong> Classesvoid traverseTransform(MDE::Tree* node,MDE::mat4 parentTransform, float time);void applyMaterial(MDE::MaterialAsset* m, MDE::Context* context);void traverseDraw(MDE::Tree* node,MDE::Context* context);float fract(float v);MDE::vec2 angles_for_light(MDE::vec2 cyl_pos,float cyl_radius, MDE::vec2 light_position);MDE::vec3 calculate_cyl_info(MDE::vec2 cyl_pos, float cyl_radius,MDE::vec2 light_position, float light_radius);float time;// new app must use widgets and radio buttonsWidgetGroup* wg;Widget* exitButton;Widgets::Panel* panel;RadioButtonGroup* glVersion;Widgets::CustomLabel* settingsGlLbl;Widgets::RadioButton* gl11Chk;Widgets::RadioButton* gl20Chk;RadioButtonGroup* renderMode;Widgets::CustomLabel* renderLbl;Widgets::RadioButton* solidChk;Widgets::RadioButton* wireframeChk;public:// code related to widget creation and associated iconsvirtual String getName() {return "LightShow Demo";}virtual String getDescription() {return "Light Show Applet.";};virtual String getIconThumbDesc() {return "applets/icons/lightshow_small.png";}virtual String getIconFullDesc() {return "applets/icons/lightshow_correct.png";}// initialize the lightshow proxy, context, and assetsvirtual void onCreate(Widget* w);// respond to changed drawing optionsvirtual void onValueChanged(Widget* w);}}};virtual void draw();#endifARM DUI 0527A-02a Copyright © 2010 ARM. All rights reserved. 5-25ID070710Non-Confidential - Draft - Beta

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

Saved successfully!

Ooh no, something went wrong!