Weird GU behavior

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

Moderators: cheriff, TyRaNiD

Post Reply
sturatt
Posts: 46
Joined: Thu Jul 13, 2006 4:21 pm

Weird GU behavior

Post by sturatt »

I've edited the post because the question was answered, i needed to use sceGumDrawArray instead of sceGuDrawArray, but can anyone tell me why? what is the difference between the two?
Last edited by sturatt on Mon Mar 19, 2007 2:33 pm, edited 1 time in total.
sturatt
Posts: 46
Joined: Thu Jul 13, 2006 4:21 pm

Post by sturatt »

The problem was fixed ^^ but i dont know how to delete posts.
Last edited by sturatt on Mon Mar 19, 2007 2:35 pm, edited 1 time in total.
ufoz
Posts: 86
Joined: Thu Nov 10, 2005 2:36 am
Location: Tokyo
Contact:

Post by ufoz »

Try changing

Code: Select all

   sceGuDrawArray( GU_TRIANGLES, type, 12, 0, &vertices );
to

Code: Select all

   sceGumDrawArray( GU_TRIANGLES, type, 12, 0, &vertices );
in Pyramid.render to use the gum matrix stack?
sturatt
Posts: 46
Joined: Thu Jul 13, 2006 4:21 pm

Post by sturatt »

i dont know how to delete this post, but my new question in the first post stands.
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

sceGumDrawArray is matrix aware, sceGuDrawArray isn't.

The internal code of sceGumDrawArray is something like:

Code: Select all

sceGumUpdateMatrix();
sceGuDrawArray(...);
Tinnus
Posts: 67
Joined: Sat Jul 29, 2006 1:12 am

Post by Tinnus »

The idea of a forum is to keep your questions and answers intact, so people with the same problems will know the solution without having to ask again :)
Let's see what the PSP reserves... well, I'd say anything is better than Palm OS.
sturatt
Posts: 46
Joined: Thu Jul 13, 2006 4:21 pm

Post by sturatt »

i realize that, but the problem that i originally asked was because i mistyped and forgot to put an m in my code. I thought it might be better (especially for me) to ask about why i needed the m in sceGumDrawArray, and what the difference was withoutout it, rather than to have a huge question asking why my code didnt work (because i didnt have the m in one of my calls).
Post Reply