#18 getVertices(float *buffer, int ofs, int pitch) et al

closed
cal3d (16)
5
2004-12-30
2004-11-23
igmon
No

It would be nice to have an option to give an offset
where each item of the buffer start. As well as the
pitch to get to the next item.

Ex: getVertices(float *pVertexBuffer, int ofs, int pitch);

struct Vtx {
float pos[3];
float nrm[3];
float tex[2];
float tangent[3];
};

Vtx buffer[1000];

getVertices(buffer, 0, 8); or
getVerticesNormalsAndTexCoords(buffer, 3);

getTangentSpaces(mapID, buffer, 8, 0);

that way I don't have to have a separate buffer for
other data such as the tangent space.

Discussion

    • labels: --> cal3d
    • assigned_to: nobody --> maxun
     
    • status: open --> closed