(mostrato con l'aiuto di Coding Labs)
typedef struct{
float*vert;
float*tex;
int tris;
}quickMESH;
typedef struct tagcoord3D{
vector3 pos;
vector3 rot;
float scale;
}coord3D;
int quickmesh_draw(quickMESH*mesh,Texture*textID,coord3D*obj);
int quickmesh_readMD2(quickMESH*mesh,const char*s,Texture*textID)
MD2 is a model format used by id Software's id Tech 2 engine and is thus used by
Quake II as well as many other games
(http://en.wikipedia.org/wiki/MD2_(file_format))
Reading code derived from http://svn.assembla.com/svn/raytracer-cc52b/trunk/El-Zahir/Zahir/Models/Cargadores/MD2/md2_utils.hpp
by David Henry, http://tfc.duke.free.fr/
void gfx_LookAt(float eyex, float eyey, float eyez,
float centerx, float centery, float centerz,
float upx, float upy, GLfloat upz);
void camera3D_new(camera3D*th);
void camera3D_setPOSITION(camera3D*th,
float positionX, float positionY, float positionZ,
float viewX, float viewY, float viewZ,
float upVectorX, float upVectorY, float upVectorZ);
void camera3D_lookAT(camera3D*th);
typedef struct{
float xm,ym,zm;
float xM,yM,zM;
}AABB;
void quickmesh_getAABB(quickMESH*mesh,AABB*aabb);