pspgl VertexPointer issue

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
webjeff
Posts: 66
Joined: Thu May 05, 2005 2:51 am

pspgl VertexPointer issue

Post by webjeff »

Can someone please verify that VertexPointer works in pspgl?

If I call:

InterleavedArrays(GL_T2F_C4UB_V3F, 0, (void *) vertices);
glDrawArrays(GL_TRIANGLES, 0, 6);

It works fine, I see 2 triangles (a face) :)... but if I call:

glEnableClientState(GL_VERTEX_ARRAY);
glVertexPointer(3, GL_FLOAT, 0, &verts[0]);
glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_SHORT, &ind[0]);

I dont see anything.

Note:
Both calls have the same verts and indicies, just send over to the Graphics card differently. Let me know if anyone has gotten this to work.

Jeff.
holger
Posts: 204
Joined: Thu Aug 18, 2005 10:57 am

Post by holger »

somebody else reported problems with index pointers, too. Did not had the time yet to investigate this, let me know if you can find something out.
Post Reply