VR SDK for Android 0.1.1 ARM Developer Center
armvr.cpp File Reference
#include "armvr.h"

Go to the source code of this file.

Macros

#define View_Resolution_X   (Screen_Resolution_X / 2)
 
#define View_Resolution_Y   Screen_Resolution_Y
 
#define View_Aspect_Ratio   ((float)View_Resolution_X / (float)View_Resolution_Y)
 
#define Eye_Fb_Aspect_Ratio   ((float)Eye_Fb_Resolution_X / (float)Eye_Fb_Resolution_Y)
 
#define Z_Near   (Eye_Display_Distance)
 
#define Z_Far   Meter(12.0f)
 
#define Warp_Mesh_Resolution_X   64
 
#define Warp_Mesh_Resolution_Y   64
 

Typedefs

typedef void(GL_APIENTRY * PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVR) (GLenum, GLenum, GLuint, GLint, GLint, GLsizei)
 

Functions

typedef void (GL_APIENTRY *PFNGLFRAMEBUFFERTEXTUREMULTISAMPLEMULTIVIEWOVR)(GLenum
 
Framebuffer make_eye_framebuffer (int width, int height, int num_views)
 
GLuint make_cube ()
 
vec2 compute_distortion (float x, float y, vec2 distort_centre, DistortionCoefficients coefficients, float tex_coord_factor)
 
GLuint make_warp_mesh (LensConfig config)
 
mat4 make_frustum (float left_fov, float right_fov, float bottom_fov, float top_fov, float z_near, float z_far)
 
mat4 make_frustum_screen_viewer (float eye_display_distance, float left, float right, float bottom, float top, float z_near, float z_far)
 
void app_initialize (App *app)
 
void draw_scene (App *app)
 
void app_update_and_render (App *app)
 

Variables

typedef GLenum
 
typedef GLuint
 
typedef GLint
 
typedef GLsizei
 

Macro Definition Documentation

#define Eye_Fb_Aspect_Ratio   ((float)Eye_Fb_Resolution_X / (float)Eye_Fb_Resolution_Y)

Definition at line 34 of file armvr.cpp.

#define View_Aspect_Ratio   ((float)View_Resolution_X / (float)View_Resolution_Y)

Definition at line 33 of file armvr.cpp.

#define View_Resolution_X   (Screen_Resolution_X / 2)

Definition at line 25 of file armvr.cpp.

#define View_Resolution_Y   Screen_Resolution_Y

Definition at line 26 of file armvr.cpp.

#define Warp_Mesh_Resolution_X   64

Definition at line 49 of file armvr.cpp.

#define Warp_Mesh_Resolution_Y   64

Definition at line 50 of file armvr.cpp.

#define Z_Far   Meter(12.0f)

Definition at line 41 of file armvr.cpp.

#define Z_Near   (Eye_Display_Distance)

Definition at line 40 of file armvr.cpp.

Typedef Documentation

typedef void(GL_APIENTRY* PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVR) (GLenum, GLenum, GLuint, GLint, GLint, GLsizei)

Definition at line 52 of file armvr.cpp.

Function Documentation

void app_initialize ( App app)

Definition at line 294 of file armvr.cpp.

void app_update_and_render ( App app)

Definition at line 424 of file armvr.cpp.

vec2 compute_distortion ( float  x,
float  y,
vec2  distort_centre,
DistortionCoefficients  coefficients,
float  tex_coord_factor 
)

Definition at line 164 of file armvr.cpp.

void draw_scene ( App app)

Definition at line 401 of file armvr.cpp.

GLuint make_cube ( )

Definition at line 110 of file armvr.cpp.

Framebuffer make_eye_framebuffer ( int  width,
int  height,
int  num_views 
)

Definition at line 54 of file armvr.cpp.

mat4 make_frustum ( float  left_fov,
float  right_fov,
float  bottom_fov,
float  top_fov,
float  z_near,
float  z_far 
)

Definition at line 251 of file armvr.cpp.

mat4 make_frustum_screen_viewer ( float  eye_display_distance,
float  left,
float  right,
float  bottom,
float  top,
float  z_near,
float  z_far 
)

Definition at line 276 of file armvr.cpp.

GLuint make_warp_mesh ( LensConfig  config)

Definition at line 192 of file armvr.cpp.

typedef void ( GL_APIENTRY *  PFNGLFRAMEBUFFERTEXTUREMULTISAMPLEMULTIVIEWOVR)

Variable Documentation

typedef GLenum

Definition at line 53 of file armvr.cpp.

typedef GLint

Definition at line 53 of file armvr.cpp.

typedef GLsizei

Definition at line 53 of file armvr.cpp.

typedef GLuint

Definition at line 53 of file armvr.cpp.