You are not logged in.
HI,
why thi does't works ?
The second GRRLIB_DrawImg doesn't draw any.
...
u8 *cartellaTexture;
int main(){
cartellaTexture = GRRLIB_LoadTexture(cartella);
VIDEO_Init();
WPAD_Init();
GRRLIB_InitVideo();
GRRLIB_Start();
GRRLIB_FillScreen(0xFF000000);
GRRLIB_DrawImg(96, 96, 256, 160, cartellaTexture, 0, 1, 1, 255);
GRRLIB_DrawImg(96, 196, 256, 160, cartellaTexture, 0, 1, 1, 255);
GRRLIB_Render();
u32 wpaddown;
while(1){
WPAD_ScanPads();
wpaddown = WPAD_ButtonsDown(0);
if (wpaddown & WPAD_BUTTON_A) break;
}
if(cartellaTexture) free(cartellaTexture);
exit(0);
}
In other cases, when I try to draw multiple textures the viewport seems shifted left !!!
What's the problem?
THNS
Offline
Hi I don't know if it is your problem but normally you are suppose to put your drawing function in a loop, check the sample code: http://grrlib.santo.fr/wiki/wikka.php?wakka=Sample2
Offline