libgoatvr

annotate src/mesh.h @ 14:604a9a0a8c37

fixed call to ovrHmd_ConfigureTracking to stop setting the ovrTrackingCap_Idle bit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 25 Sep 2014 07:52:49 +0300
parents
children
rev   line source
nuclear@8 1 #ifndef MESH_H_
nuclear@8 2 #define MESH_H_
nuclear@8 3
nuclear@8 4 struct vertex {
nuclear@8 5 float x, y, z;
nuclear@8 6 float tx, ty;
nuclear@8 7 };
nuclear@8 8
nuclear@8 9 struct mesh {
nuclear@8 10 int prim;
nuclear@8 11 struct vertex *varr;
nuclear@8 12 unsigned int *iarr;
nuclear@8 13 int num_verts, num_faces;
nuclear@8 14 unsigned int vbo, ibo;
nuclear@8 15 };
nuclear@8 16
nuclear@8 17 int vrimp_mesh_init(struct mesh *m);
nuclear@8 18 void vrimp_mesh_destroy(struct mesh *m);
nuclear@8 19
nuclear@8 20 void vrimp_mesh_draw(struct mesh *m);
nuclear@8 21
nuclear@8 22 int vrimp_mesh_barrel_distortion(struct mesh *m, int usub, int vsub, float aspect,
nuclear@8 23 float lens_center_offset, float scale, const float *dist_factors,
nuclear@8 24 float tex_scale_x, float tex_scale_y);
nuclear@8 25
nuclear@8 26
nuclear@8 27 #endif /* MESH_H_ */