![]() |
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.h>#include "FetchDepth.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 | vertexShaderCubeFilename = "FetchDepth_cube.vert" |
| string | fragmentShaderCubeFilename = "FetchDepth_cube.frag" |
| string | vertexShaderGlassFilename = "FetchDepth_glass.vert" |
| string | fragmentShaderGlassFilename = "FetchDepth_glass.frag" |
| string | fragmentShaderGlassRttFilename = "FetchDepth_glass_rtt.frag" |
| GLuint | programCubeID |
| GLint | iLocCubePosition |
| GLint | iLocCubeColor |
| GLint | iLocCubeMVP |
| GLuint | programGlassID |
| GLint | iLocGlassPosition |
| GLint | iLocGlassColor |
| GLint | iLocGlassMVP |
| GLint | iLocNear |
| GLint | iLocFar |
| GLint | iLocGlassMaterial |
| int | windowWidth = -1 |
| int | windowHeight = -1 |
| bool | supportFramebufferFetch = false |
| GLuint | fbo = 0 |
| GLint | iLocViewportSize |
| GLint | iLocCubeDepthTexture |
| Text * | text |
A simple rotating cube.
| #define WINDOW_H 600 |
| #define WINDOW_W 800 |
| int main | ( | void | ) |
| void renderFrame | ( | void | ) |
| GLuint fbo = 0 |
| string fragmentShaderCubeFilename = "FetchDepth_cube.frag" |
| string fragmentShaderGlassFilename = "FetchDepth_glass.frag" |
| string fragmentShaderGlassRttFilename = "FetchDepth_glass_rtt.frag" |
| GLint iLocCubeColor |
| GLint iLocCubeDepthTexture |
| GLint iLocCubeMVP |
| GLint iLocCubePosition |
| GLint iLocFar |
| GLint iLocGlassColor |
| GLint iLocGlassMaterial |
| GLint iLocGlassMVP |
| GLint iLocGlassPosition |
| GLint iLocNear |
| GLint iLocViewportSize |
| GLuint programCubeID |
| GLuint programGlassID |
| string resourceDirectory = "assets/" |
| bool supportFramebufferFetch = false |
| Text* text |
| string vertexShaderCubeFilename = "FetchDepth_cube.vert" |
| string vertexShaderGlassFilename = "FetchDepth_glass.vert" |
| int windowHeight = -1 |
| int windowWidth = -1 |