Ok, I've been looking at the PvrMark.c code included in the DevIso and think (hopefully) if I use these methods I shouldn't get the problems I was getting before.
(If anyone for any reason ever googles this, pvrmark.c in the examples/pvr is where all the juicy 2D stuff is).
So, new question:
Assuming this is the correct code to display a quad (and I just did this this morning, I'm sort of in a rush to post this before I go to work because I'd love an answer):
vert.flags = PVR_CMD_VERTEX;
vert.x = x - width;
vert.y = y + height;
vert.z = z;
vert.u = vert.v = 0.0f;
//vert.argb = col | (col << 8) | (col << 16) | 0xff000000;
vert.argb = argb;
vert.oargb = 0;
pvr_prim(&vert, sizeof(vert));
vert.y = y - height;
pvr_prim(&vert, sizeof(vert));
vert.y = y + height;
vert.x = x + width;
pvr_prim(&vert, sizeof(vert));
vert.flags = PVR_CMD_VERTEX_EOL;
// vert.x = x + width;
vert.y = y - height;
pvr_prim(&vert, sizeof(vert));
What is the code to give pvr_prim the texel information? Any links to some source of documentation would be great, although in general my question is now less pressing.
Bookmarks