OpenGL ES SDK for Android
ARM Developer Center
|
#include <android/log.h>
#include <GLES3/gl3.h>
Go to the source code of this file.
Macros | |
#define | LOG_TAG "libNative" |
#define | LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__) |
#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 | LOGF(...) __android_log_print(ANDROID_LOG_FATAL, LOG_TAG, __VA_ARGS__) |
#define | MALLOC_CHECK(ptr_type, ptr, size) |
#define | REALLOC_CHECK(ptr_type, ptr, size) |
#define | FREE_CHECK(ptr) |
#define | GL_CHECK(x) |
Functions | |
GLuint | load_shader (GLenum shader_type, const char *shader_source) |
Create shader object and compile its source code. More... | |
GLuint | create_program (const char *vertex_source, const char *fragment_source) |
Create program object, attach vertex and fragment shader to it. Link program object and check whether it has succeeded. More... | |
Variables | |
const char | skybox_vertex_shader_source [] |
const char | skybox_fragment_shader_source [] |
#define FREE_CHECK | ( | ptr | ) |
#define GL_CHECK | ( | x | ) |
#define LOGD | ( | ... | ) | __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__) |
#define LOGE | ( | ... | ) | __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) |
#define LOGF | ( | ... | ) | __android_log_print(ANDROID_LOG_FATAL, LOG_TAG, __VA_ARGS__) |
#define LOGI | ( | ... | ) | __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) |
#define MALLOC_CHECK | ( | ptr_type, | |
ptr, | |||
size | |||
) |
#define REALLOC_CHECK | ( | ptr_type, | |
ptr, | |||
size | |||
) |
GLuint create_program | ( | const char * | vertex_source, |
const char * | fragment_source | ||
) |
Create program object, attach vertex and fragment shader to it. Link program object and check whether it has succeeded.
Definition at line 229 of file AstcTextures.cpp.
Create shader object and compile its source code.
Definition at line 188 of file AstcTextures.cpp.
const char skybox_fragment_shader_source[] |
const char skybox_vertex_shader_source[] |