![]() |
Mali OpenGL ES SDK v2.4.4
Mali Developer Center
Use of the code snippets present within these pages are subject to these EULA terms
|
#include "mCommon.h"#include "MAnimation.h"#include "MGeometrySphere.h"#include "MImageTGA.h"#include "MDRRenderer.h"#include "MRendererPrimitive.h"#include "MRendererProgram.h"#include "MDRRendererTexture.h"#include "MTransformation.h"#include "MPathsManager.h"#include "MTime.h"#include "MVector2.h"#include "MVector3.h"Macros | |
| #define | SAMPLE_TITLE "Fur" |
| #define | WINDOW_W 800 |
| #define | WINDOW_H 600 |
| #define | VERTEX_SHADER_FILE "Fur_fur.vert" |
| #define | FRAGMENT_SHADER_FILE "Fur_fur.frag" |
| #define | IMAGE_FILE_FUR "Grain.tga" |
| #define | IMAGE_FILE_LOGO "Logo.tga" |
| #define | TYPE_GYROSCOPE 0x00000004 |
Functions | |
| bool | setupGraphics (int w, int h) |
| void | terminateGraphics () |
| void | renderFrame (void) |
| void | sensorChanged (int aType, float aValue1, float aValue2, float aValue3) |
| void | touchStart (int x, int y) |
| void | touchMove (int x, int y) |
| void | touchEnd (int x, int y) |
| int | main (int argc, char **argv) |
Variables | |
| MDRRendererTexture * | theTexture = NULL |
| MRendererProgram * | theProgram = NULL |
| MDRRenderer * | theRenderer = NULL |
| MTransformation * | theTransformation = NULL |
| MGeometrySphere * | theGeometrySphere = NULL |
| MVector3f | theSensorPosModifier (0.0f, 0.0f, 0.0f) |
| MVector3f | theSensorRotModifier (0.0f, 0.0f, 0.0f) |
| MTime | theTime |
| MAnimation1f | theAnimX |
| MAnimation1f | theAnimY |
| float | theSpeedModifier = 0.0f |
| float | theAngle = 0.0f |
| const unsigned int | theFurLength = 20 |
| Text * | text = NULL |
| MVector2i * | theStartPnt = NULL |
| #define FRAGMENT_SHADER_FILE "Fur_fur.frag" |
| #define IMAGE_FILE_FUR "Grain.tga" |
| #define IMAGE_FILE_LOGO "Logo.tga" |
| #define SAMPLE_TITLE "Fur" |
| #define TYPE_GYROSCOPE 0x00000004 |
| #define VERTEX_SHADER_FILE "Fur_fur.vert" |
| #define WINDOW_H 600 |
| #define WINDOW_W 800 |
| void renderFrame | ( | void | ) |
| void terminateGraphics | ( | ) |
| Text* text = NULL |
| float theAngle = 0.0f |
| MAnimation1f theAnimX |
| MAnimation1f theAnimY |
| const unsigned int theFurLength = 20 |
| MGeometrySphere* theGeometrySphere = NULL |
| MRendererProgram* theProgram = NULL |
| MDRRenderer* theRenderer = NULL |
| MVector3f theSensorPosModifier(0.0f, 0.0f, 0.0f) |
| MVector3f theSensorRotModifier(0.0f, 0.0f, 0.0f) |
| float theSpeedModifier = 0.0f |
| MVector2i* theStartPnt = NULL |
| MDRRendererTexture* theTexture = NULL |
| MTime theTime |
| MTransformation* theTransformation = NULL |