Color in vertices

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

Moderators: cheriff, TyRaNiD

Post Reply
LuMo
Posts: 410
Joined: Sun Aug 21, 2005 2:45 am
Location: Austria
Contact:

Color in vertices

Post by LuMo »

u, v, color, x,y,z
where color = 0xAABBGGRR
thats what you are passing when you create a vertices eg:

Code: Select all

	{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
chp
Posts: 313
Joined: Wed Jun 23, 2004 7:16 am

Post by chp »

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
LuMo
Posts: 410
Joined: Sun Aug 21, 2005 2:45 am
Location: Austria
Contact:

Post by LuMo »

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

its done...

Code: Select all

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
Post Reply