I've written a function that reads out the vertices and indices of an object from a 3DS file.
My question is, I want to be able to return this data from a function, and display the data on the screen (in glorious 3D).
What would be the best way to return this data?
I've checked through the documentation and my best bet looks to be sceGumDrawArray. I'm not really sure I understand the function parameters fully though, since doxygen didn't produce much documentation for this function.
My array format so far is like this:
Code: Select all
struct stVect
{
float x, y, z;
};
struct stVect vertices[numberOfVertices];
My array of indices (index numbers referring to the vertice array) is similarly defined as:
Code: Select all
struct stFace
{
unsigned short p1, p2, p3;
};
struct stFace faces[numberOfFaces];
so I'd be very grateful if someone could explain the parameters better to me:
sceGumDrawArray (int prim, int vtype, int count, const void *indices, const void *vertices)
P.S. Should I be using SceGu or SceGum?