considering sceGuStart(GU_DIRECT, disp_list); what is a display list?
________________________________________________________
finally, i have one more question...
Im very new to psp development, so ive never used these two macros that are used everywhere in the examples. Im assuming that they're pretty important, but im not sure why?
typedef struct
{
float x,y,z;
float u, v;
unsigned int color;
} Vertex;
So what makes this
Vertex __attribute__((aligned(16))) aligned_vtx;
different from this
Vertex vertice;
________________________________________________________
as a quick study, i did a sizeof comparison, ( wasnt sure of the sizeof's in a psp environment ).
sizeof( float ) = 4 bytes
sizeof( unsigned int ) = 4 bytes
sizeof( Vertex ) = 24 bytes
sizeof( aligned_vtx) = 24 bytes;
thx again,
sorry for the noobish questions, but we all gotta start somewhere :/
what is a display list?
what is a display list?
Last edited by Stellar on Sun Jan 08, 2006 10:36 am, edited 2 times in total.
__attribute__((aligned(16))) is used to, surprisingly enough, cause variables to be aligned on at least a certain boundry. In other words, that particular piece of code is making sure it's aligned to at least a 16byte boundry.
Why? Well, the hardware needs certain things to be aligned by certain amounts.
Why? Well, the hardware needs certain things to be aligned by certain amounts.
Shoot Pixels Not People!
Makeshift Development
Makeshift Development