dega512
10-23-2006, 04:15 PM
This is probably a very n00bish question but I can't figure it out. I am just starting out with the graphics API that comes with the PSP SDK and I am struggling with understanding what a few of the functions do (there is only so much the comments in the header files can tell you), in this case it's sceGuStart. Let me show the code before I ask my questions:
// headers
#define ALIGNED __attribute__((aligned(16)))
static unsigned int ALIGNED list[262144];
static bool running = true;
// all of my other global variables, callbacks, etc...
int main(int argc, char *argv[])
{
// variables, init code etc...
while (running)
{
sceGuStart(GU_DIRECT, list); // CONFUSING, ARRRGGGG
// actually do the rendering here
}
// all of my de-init code
return 0;
}
Ok, so my questions are:
What is sceGuStart for?
Why GU_DIRECT?
Why does sceGuStart need 'list' (and why is list the size it is)?
Am I making this way too complicated or is this similar to OpenGL display lists?
Thanks a ton :lol: !
- dega
// headers
#define ALIGNED __attribute__((aligned(16)))
static unsigned int ALIGNED list[262144];
static bool running = true;
// all of my other global variables, callbacks, etc...
int main(int argc, char *argv[])
{
// variables, init code etc...
while (running)
{
sceGuStart(GU_DIRECT, list); // CONFUSING, ARRRGGGG
// actually do the rendering here
}
// all of my de-init code
return 0;
}
Ok, so my questions are:
What is sceGuStart for?
Why GU_DIRECT?
Why does sceGuStart need 'list' (and why is list the size it is)?
Am I making this way too complicated or is this similar to OpenGL display lists?
Thanks a ton :lol: !
- dega