 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
LuMo
Joined: 21 Aug 2005 Posts: 410 Location: Austria
|
Posted: Tue Jan 03, 2006 6:38 am Post subject: Color in vertices |
|
|
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 |
|
 |
chp
Joined: 23 Jun 2004 Posts: 313
|
Posted: Tue Jan 03, 2006 7:15 am Post subject: |
|
|
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 |
|
 |
LuMo
Joined: 21 Aug 2005 Posts: 410 Location: Austria
|
Posted: Tue Jan 03, 2006 10:06 pm Post subject: |
|
|
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 |
|
 |
|
|
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
|