|
#define | Meter(x) (x) |
|
#define | Centimeter(x) (Meter(x) / 100.0f) |
|
#define | Millimeter(x) (Meter(x) / 1000.0f) |
|
#define | Num_Eyes 2 |
|
#define | Num_Views Num_Eyes * 2 |
|
#define | Screen_Resolution_X 2560 |
|
#define | Screen_Resolution_Y 1440 |
|
#define | Screen_Size_X Meter(0.125f) |
|
#define | Screen_Size_Y Meter(0.072f) |
|
#define | Eye_Fb_Resolution_X 1280 |
|
#define | Eye_Fb_Resolution_Y 1440 |
|
#define | Multisample_Samples 4 |
|
#define | Eye_IPD Millimeter(61.0f) |
|
#define | Lens_IPD Millimeter(64.0f) |
|
#define | Eye_Display_Distance Centimeter(8.0f) |
|
#define | GL_TEXTURE_BORDER_COLOR_EXT 0x1004 |
|
#define | GL_CLAMP_TO_BORDER_EXT 0x812D |
|
#define | LOG_TAG "ARMVR" |
|
#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 | LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__) |
|
#define | GL_CHECK(x) |
|
#define | get_attrib_location(prog, name) |
|
#define | get_uniform_location(prog, name) |
|
#define | attribfv(prog, name, n, stride, offset) |
|
#define | attribiv(prog, name, n, stride, offset) |
|
#define | uniform1f(prog, name, value) GL_CHECK(glUniform1f(app->u_##prog##_##name, value)); |
|
#define | uniform2f(prog, name, x, y) GL_CHECK(glUniform2f(app->u_##prog##_##name, x, y)); |
|
#define | uniform2fv(prog, name, value) GL_CHECK(glUniform2fv(app->u_##prog##_##name, 1, &value[0])); |
|
#define | uniform3fv(prog, name, value) GL_CHECK(glUniform3fv(app->u_##prog##_##name, 1, &value[0])); |
|
#define | uniform1i(prog, name, value) GL_CHECK(glUniform1i(app->u_##prog##_##name, value)); |
|
#define | uniformm4(prog, name, value) GL_CHECK(glUniformMatrix4fv(app->u_##prog##_##name, 1, GL_FALSE, value.value_ptr())); |
|
#define | uniformm4array(prog, name, value, arraySize) GL_CHECK(glUniformMatrix4fv(app->u_##prog##_##name, arraySize, GL_FALSE, value.value_ptr())); |
|