![]() |
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
|
A simple rotating cube. More...
#include <GLES2/gl2.h>#include <GLES2/gl2ext.h>#include <EGL/egl.h>#include <string>#include "Cube.h"#include "Text.h"#include "Shader.h"#include "Texture.h"#include "Matrix.h"#include "Timer.h"#include "Platform.h"#include "EGLRuntime.h"Macros | |
| #define | WINDOW_W 800 |
| #define | WINDOW_H 600 |
Functions | |
| bool | setupGraphics (int width, int height) |
| void | renderFrame (void) |
| int | main (void) |
Variables | |
| string | resourceDirectory = "assets/" |
| string | vertexShaderFilename = "Cube_cube.vert" |
| string | fragmentShaderFilename = "Cube_cube.frag" |
| GLuint | programID |
| GLint | iLocPosition |
| GLint | iLocColor |
| GLint | iLocMVP |
| int | windowWidth = -1 |
| int | windowHeight = -1 |
| Text * | text |
A simple rotating cube.
| #define WINDOW_H 600 |
| #define WINDOW_W 800 |
| int main | ( | void | ) |
| void renderFrame | ( | void | ) |
| string fragmentShaderFilename = "Cube_cube.frag" |
| GLint iLocColor |
| GLint iLocMVP |
| GLint iLocPosition |
| GLuint programID |
| string resourceDirectory = "assets/" |
| Text* text |
| string vertexShaderFilename = "Cube_cube.vert" |
| int windowHeight = -1 |
| int windowWidth = -1 |