forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pspgl VertexPointer issue

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
webjeff



Joined: 05 May 2005
Posts: 66

PostPosted: Tue Aug 30, 2005 7:27 am    Post subject: pspgl VertexPointer issue Reply with quote

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.
Back to top
View user's profile Send private message
holger



Joined: 18 Aug 2005
Posts: 204

PostPosted: Tue Aug 30, 2005 5:49 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group