libgoatvr
annotate src/mesh.h @ 11:34d4643d61f9
remove _opt suffix from vr_get_opt/vr_set_opt, and _OPT_from the predefined names
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 24 Sep 2014 10:18:42 +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_ */ |