![]() |
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 sample to show how to use the various mipmap options in OpenGL ES 2.0. More...
#include <GLES2/gl2.h>#include <GLES2/gl2ext.h>#include <EGL/egl.h>#include <string>#include "ETCMipmap.h"#include "Shader.h"#include "Text.h"#include "Texture.h"#include "ETCHeader.h"#include "Platform.h"#include "EGLRuntime.h"Macros | |
| #define | LOAD_MIPMAPS |
| #define | WINDOW_W 640 |
| #define | WINDOW_H 480 |
Functions | |
| bool | setupGraphics (int w, int h) |
| void | renderFrame (void) |
| int | main (void) |
Variables | |
| string | resourceDirectory = "assets/" |
| string | textureFilename = "good_mip_" |
| string | imageExtension = ".pkm" |
| string | vertexShaderFilename = "ETCMipmap_texture.vert" |
| string | fragmentShaderFilename = "ETCMipmap_texture.frag" |
| GLuint | textureID = 0 |
| GLuint | vertexShaderID = 0 |
| GLuint | fragmentShaderID = 0 |
| GLuint | programID = 0 |
| GLint | iLocPosition = -1 |
| GLint | iLocTexCoord = -1 |
| GLint | iLocSampler = -1 |
| Text * | text |
A sample to show how to use the various mipmap options in OpenGL ES 2.0.
The sample demonstrates three techniques controlled by the LOAD_MIPMAPS and DISABLE_MIPMAPS defines:
| #define LOAD_MIPMAPS |
| #define WINDOW_H 480 |
| #define WINDOW_W 640 |
| int main | ( | void | ) |
| void renderFrame | ( | void | ) |
| string fragmentShaderFilename = "ETCMipmap_texture.frag" |
| GLuint fragmentShaderID = 0 |
| GLint iLocPosition = -1 |
| GLint iLocSampler = -1 |
| GLint iLocTexCoord = -1 |
| string imageExtension = ".pkm" |
| GLuint programID = 0 |
| string resourceDirectory = "assets/" |
| Text* text |
| string textureFilename = "good_mip_" |
| GLuint textureID = 0 |
| string vertexShaderFilename = "ETCMipmap_texture.vert" |
| GLuint vertexShaderID = 0 |