![]() |
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 "Texts.h"#include "mCommon.h"#include "MDRFontAtlas.h"#include "MDRFontAtlasFactory.h"#include "MImageTGA.h"#include "MMatrix.h"#include "MPathsManager.h"#include "MDRRenderer.h"#include "MDRRendererPrimitive.h"#include "MDRRendererProgram.h"#include "MDRRendererText.h"#include "MDRRendererTexture.h"Macros | |
| #define | VERTEX_SHADER_FILE "Texts_text.vert" |
| #define | FRAGMENT_SHADER_FILE "Texts_text.frag" |
| #define | TEXTURE_FILE "Atlas.tga" |
| #define | FONT_INI_FILE "Atlas.ini" |
| #define | WINDOW_W 800 |
| #define | WINDOW_H 600 |
Functions | |
| bool | setupGraphics (int w, int h) |
| void | terminateGraphics () |
| void | renderFrame (void) |
| int | main (int argc, char **argv) |
Variables | |
| MDRRenderer * | renderer = NULL |
| MDRRendererProgram * | program = NULL |
| MDRRendererText * | text = NULL |
| MDRRendererText * | text2 = NULL |
| MDRRendererTexture * | texture = NULL |
| MDRFontAtlas * | fontAtlas = NULL |
| char | theTmpStr [1024] = {0} |
| float | theAnimRotValue = 0.0f |
| float | theAnimValue = -2.0f |
| float | theAnimValueStep = 0.03f |
| const float | theAnimValueMin = -8.0f |
| const float | theAnimValueMax = -0.8f |
| Text * | textTitle = NULL |
| #define FONT_INI_FILE "Atlas.ini" |
| #define FRAGMENT_SHADER_FILE "Texts_text.frag" |
| #define TEXTURE_FILE "Atlas.tga" |
| #define VERTEX_SHADER_FILE "Texts_text.vert" |
| #define WINDOW_H 600 |
| #define WINDOW_W 800 |
| void renderFrame | ( | void | ) |
| void terminateGraphics | ( | ) |
| MDRFontAtlas* fontAtlas = NULL |
| MDRRendererProgram* program = NULL |
| MDRRenderer* renderer = NULL |
| MDRRendererText* text = NULL |
| MDRRendererText* text2 = NULL |
| Text* textTitle = NULL |
| MDRRendererTexture* texture = NULL |
| float theAnimRotValue = 0.0f |
| float theAnimValue = -2.0f |
| const float theAnimValueMax = -0.8f |
| const float theAnimValueMin = -8.0f |
| float theAnimValueStep = 0.03f |
| char theTmpStr[1024] = {0} |