OpenGL ES SDK for Android
ARM Developer Center
|
#include "Texture.h"
#include <GLES2/gl2ext.h>
#include <cstdio>
#include <cstdlib>
#include <android/log.h>
Go to the source code of this file.
Macros | |
#define | LOG_TAG "libNative" |
#define | LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) |
#define | LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) |
#define | TEXTURE_WIDTH 256 |
#define | TEXTURE_HEIGHT 256 |
#define | CHANNELS_PER_PIXEL 3 |
Functions | |
GLuint | loadTexture () |
Loads a 256 x 256 texture from the Android filesystem. More... | |
Variables | |
GLubyte * | theTexture |
#define CHANNELS_PER_PIXEL 3 |
Definition at line 34 of file Texture.cpp.
#define LOG_TAG "libNative" |
Definition at line 28 of file Texture.cpp.
#define LOGE | ( | ... | ) | __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) |
Definition at line 30 of file Texture.cpp.
#define LOGI | ( | ... | ) | __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) |
Definition at line 29 of file Texture.cpp.
#define TEXTURE_HEIGHT 256 |
Definition at line 33 of file Texture.cpp.
#define TEXTURE_WIDTH 256 |
Definition at line 32 of file Texture.cpp.
GLuint loadTexture | ( | ) |
Loads a 256 x 256 texture from the Android filesystem.
Definition at line 39 of file Texture.cpp.
GLubyte* theTexture |
Definition at line 36 of file Texture.cpp.