zoret
Joined: 19 Mar 2006 Posts: 22
|
Posted: Wed Apr 05, 2006 7:39 am Post subject: |
|
|
ok i think i've find my answer ! ;)
in the signals sample, the cube is displayed with a pregenerated command-list
is that the best way to display stuff ??
where is stored the display list ? (ram, vram ?)
can i delete the memeory allocated for the geometry when the display list is created ?
for example in the signals sample :
// generate callable command-list for cube rendering
{
sceGuStart(GU_CALL, smallList2);
// draw cube
sceGuDrawArray(GU_TRIANGLES,GU_TEXTURE_32BITF|GU_COLOR_8888|GU_VERTEX_32BITF|GU_TRANSFORM_3D,12*3,0,cubeVertices);
sceGuFinish();
sceGuSync(0,0);
}
free(cubevertices);
can i call a free on cubevertices after the creation of my display list ?
( ok i know, i cant' in that case cause cubevertices is static but this is just an example ! ;) |
|