![]() |
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 <GLES2/gl2.h>#include <GLES2/gl2ext.h>#include <EGL/egl.h>#include <cstdio>#include <cstdlib>#include <cmath>#include <string>#include "RotoZoom.h"#include "Timer.h"#include "Text.h"#include "Texture.h"#include "Shader.h"#include "Matrix.h"#include "Platform.h"#include "Mathematics.h"#include "EGLRuntime.h"Macros | |
| #define | WINDOW_W 480 |
| #define | WINDOW_H 800 |
Functions | |
| bool | setupGraphics (int width, int height) |
| void | renderFrame (void) |
| int | main (void) |
Variables | |
| string | resourceDirectory = "assets/" |
| string | textureFilename = "RotoZoom.raw" |
| string | vertexShaderFilename = "RotoZoom_cube.vert" |
| string | fragmentShaderFilename = "RotoZoom_cube.frag" |
| GLuint | textureID = 0 |
| GLuint | programID = 0 |
| GLint | iLocTextureMatrix = -1 |
| GLint | iLocPosition = -1 |
| GLint | iLocTextureMix = -1 |
| GLint | iLocTexture = -1 |
| GLint | iLocTexCoord = -1 |
| Matrix | translation |
| Matrix | scale |
| Matrix | negativeTranslation |
| int | windowWidth = -1 |
| int | windowHeight = -1 |
| Text * | text |
| #define WINDOW_H 800 |
| #define WINDOW_W 480 |
| int main | ( | void | ) |
| void renderFrame | ( | void | ) |
| string fragmentShaderFilename = "RotoZoom_cube.frag" |
| GLint iLocPosition = -1 |
| GLint iLocTexCoord = -1 |
| GLint iLocTexture = -1 |
| GLint iLocTextureMatrix = -1 |
| GLint iLocTextureMix = -1 |
| Matrix negativeTranslation |
| GLuint programID = 0 |
| string resourceDirectory = "assets/" |
| Matrix scale |
| Text* text |
| string textureFilename = "RotoZoom.raw" |
| GLuint textureID = 0 |
| Matrix translation |
| string vertexShaderFilename = "RotoZoom_cube.vert" |
| int windowHeight = -1 |
| int windowWidth = -1 |