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 

Color in vertices

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



Joined: 21 Aug 2005
Posts: 410
Location: Austria

PostPosted: Tue Jan 03, 2006 6:38 am    Post subject: Color in vertices Reply with quote

u, v, color, x,y,z
where color = 0xAABBGGRR
thats what you are passing when you create a vertices eg:
Code:
   {0, 0, 0xffff0000, 0,-1, 0},

i was searching the code but i was not able to find the part for the struct...
(possibly its not pspsdk stuff?)
so could anyone tell me what type it is?
is it "unsigned long" cause that would be 32-bit...?

thanks in advance
greets
lumo
_________________
"Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com
Back to top
View user's profile Send private message Visit poster's website
chp



Joined: 23 Jun 2004
Posts: 313

PostPosted: Tue Jan 03, 2006 7:15 am    Post subject: Reply with quote

Some of the samples have been changed to use the declarations in samples/gu/common/geometry.h to remove things that are really redundant for those samples, but the simple ones like cube still have the declaration inlined in the source-file. However, those structures are HIGHLY dependant on which vertexformat you pass to the render-functions, so I recommend you read the available documentation (generate using doxygen) on the subject.
_________________
GE Dominator
Back to top
View user's profile Send private message
LuMo



Joined: 21 Aug 2005
Posts: 410
Location: Austria

PostPosted: Tue Jan 03, 2006 10:06 pm    Post subject: Reply with quote

bugga... seems my sdk is out of time...
i do not have any geometry.h files...
going to update it now

its done...
Code:
u32* col = (u32*)(((unsigned char*)vertices));

so thats my color var... interesting... never saw u32 before (i am new to c)


back later
greets
lumo
_________________
"Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com
Back to top
View user's profile Send private message Visit poster's website
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