OpenGL ES SDK for Android
ARM Developer Center
|
#include <jni.h>
#include <android/log.h>
#include <GLES3/gl3.h>
#include <EGL/egl.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <cstring>
#include "Matrix.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 | GL_CHECK(x) |
Typedefs | |
typedef void(* | PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVR )(GLenum, GLenum, GLuint, GLint, GLint, GLsizei) |
Functions | |
GLuint | loadShader (GLenum shaderType, const char *shaderSource) |
GLuint | createProgram (const char *vertexSource, const char *fragmentSource) |
bool | setupFBO (int width, int height) |
bool | setupGraphics (int width, int height) |
void | renderToFBO (int width, int height) |
void | renderFrame () |
JNIEXPORT void JNICALL | Java_com_arm_malideveloper_openglessdk_multiview_NativeLibrary_init (JNIEnv *env, jobject obj, jint width, jint height) |
JNIEXPORT void JNICALL | Java_com_arm_malideveloper_openglessdk_multiview_NativeLibrary_step (JNIEnv *env, jobject obj) |
#define GL_CHECK | ( | x | ) |
#define LOG_TAG "libNative" |
Definition at line 34 of file Native.cpp.
#define LOGE | ( | ... | ) | __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) |
Definition at line 36 of file Native.cpp.
#define LOGI | ( | ... | ) | __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) |
Definition at line 35 of file Native.cpp.
Definition at line 78 of file Native.cpp.
GLuint createProgram | ( | const char * | vertexSource, |
const char * | fragmentSource | ||
) |
Definition at line 342 of file Native.cpp.
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_multiview_NativeLibrary_init | ( | JNIEnv * | env, |
jobject | obj, | ||
jint | width, | ||
jint | height | ||
) |
Definition at line 650 of file Native.cpp.
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_multiview_NativeLibrary_step | ( | JNIEnv * | env, |
jobject | obj | ||
) |
Definition at line 656 of file Native.cpp.
Definition at line 307 of file Native.cpp.
Definition at line 592 of file Native.cpp.
Definition at line 529 of file Native.cpp.
Definition at line 388 of file Native.cpp.
Definition at line 428 of file Native.cpp.
float angle = 0 |
Definition at line 76 of file Native.cpp.
GLuint fboHeight = 720 |
Definition at line 51 of file Native.cpp.
GLuint fboWidth = 1280 |
Definition at line 50 of file Native.cpp.
GLuint frameBufferDepthTextureId |
Definition at line 55 of file Native.cpp.
GLuint frameBufferObjectId |
Definition at line 56 of file Native.cpp.
GLuint frameBufferTextureId |
Definition at line 54 of file Native.cpp.
PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVR glFramebufferTextureMultiviewOVR |
Definition at line 79 of file Native.cpp.
Matrix modelMatrix |
Definition at line 75 of file Native.cpp.
Matrix modelViewProjectionMatrix[4] |
Definition at line 74 of file Native.cpp.
|
static |
Definition at line 101 of file Native.cpp.
GLushort multiviewIndices[] |
Definition at line 244 of file Native.cpp.
GLuint multiviewModelLocation |
Definition at line 62 of file Native.cpp.
GLuint multiviewModelViewProjectionLocation |
Definition at line 61 of file Native.cpp.
GLfloat multiviewNormals[] |
Definition at line 204 of file Native.cpp.
GLuint multiviewProgram |
Definition at line 58 of file Native.cpp.
GLuint multiviewVertexLocation |
Definition at line 59 of file Native.cpp.
GLuint multiviewVertexNormalLocation |
Definition at line 60 of file Native.cpp.
|
static |
Definition at line 82 of file Native.cpp.
GLfloat multiviewVertices[] |
Definition at line 165 of file Native.cpp.
Matrix projectionMatrix[4] |
Definition at line 71 of file Native.cpp.
GLuint screenHeight |
Definition at line 53 of file Native.cpp.
GLuint screenWidth |
Definition at line 52 of file Native.cpp.
float texturedQuadCoordinates[] |
Definition at line 272 of file Native.cpp.
|
static |
Definition at line 141 of file Native.cpp.
float texturedQuadHighResTexCoordinates[] |
Definition at line 296 of file Native.cpp.
GLuint texturedQuadHighResTexCoordLocation |
Definition at line 67 of file Native.cpp.
GLuint texturedQuadLayerIndexLocation |
Definition at line 69 of file Native.cpp.
float texturedQuadLowResTexCoordinates[] |
Definition at line 284 of file Native.cpp.
GLuint texturedQuadLowResTexCoordLocation |
Definition at line 66 of file Native.cpp.
GLuint texturedQuadProgram |
Definition at line 64 of file Native.cpp.
GLuint texturedQuadSamplerLocation |
Definition at line 68 of file Native.cpp.
GLuint texturedQuadVertexLocation |
Definition at line 65 of file Native.cpp.
|
static |
Definition at line 126 of file Native.cpp.
Matrix viewMatrix[4] |
Definition at line 72 of file Native.cpp.
Matrix viewProjectionMatrix[4] |
Definition at line 73 of file Native.cpp.