I'm pretty new to all this so please forgive me is this is a stupid question...
I have some GL code which I want to convert to Gum.
glPushMatrix();
glRotatef( Angle, 0.0f, 0.0f, 1.0f );
So far I have got this far:
sceGumPushMatrix();
but I can see no equivalent for glRotatef.
As I said, I'm pretty new to all this but I want to give programming the PSP a go, just for the fun without using OPEN GL. Thanks for any help :)
The equivalent to glRotatef or how to convert to Gum.
Take a look at the sdk GU samples.
sdkdir/psp/sdk/samples/gu/...
You can best start with the cube sample since thiis is the simplest.
you will see sometging like this:
That is a bit how you do it with the GU. (I don't know how it is done with OpenGL)
sdkdir/psp/sdk/samples/gu/...
You can best start with the cube sample since thiis is the simplest.
you will see sometging like this:
Code: Select all
sceGumMatrixMode(GU_MODEL);
sceGumLoadIdentity();
{
ScePspFVector3 pos = { 0, 0, -2.5f };
ScePspFVector3 rot = { 2, 2, 2};
sceGumTranslate(&pos);
sceGumRotateXYZ(&rot);
}
Code: Select all
int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
}
Thanks :) I'll take a look at the examples. I'll refrain from posting until I really get stuck.jojojoris wrote:Take a look at the sdk GU samples.
sdkdir/psp/sdk/samples/gu/...
You can best start with the cube sample since thiis is the simplest.
you will see sometging like this:
That is a bit how you do it with the GU. (I don't know how it is done with OpenGL)Code: Select all
sceGumMatrixMode(GU_MODEL); sceGumLoadIdentity(); { ScePspFVector3 pos = { 0, 0, -2.5f }; ScePspFVector3 rot = { 2, 2, 2}; sceGumTranslate(&pos); sceGumRotateXYZ(&rot); }