GRRPRINTF weird issue. June 24, 2009 01:43AM | Registered: 14 years ago Posts: 552 |
#include "../../../GRRLIB/GRRLIB/GRRLIB.h" #include#include #include "gfx/font3.h" Mtx GXmodelView2D; int x=0; int main() { u32 wpaddown; // Load the image file and initilise the tiles GRRLIB_texImg tex_font3 = GRRLIB_LoadTexture(font3); GRRLIB_InitTileSet(&tex_font3, 32, 32, 32); GRRLIB_Init(); WPAD_Init(); while(1) { WPAD_ScanPads(); wpaddown = WPAD_ButtonsDown(0); if(wpaddown & WPAD_BUTTON_A) { GRRLIB_FillScreen(0x000000FF); GRRLIB_Printf(20, 150, tex_font3, 0xFFFFFFFF, 1, "%i", x); x++; GRRLIB_Render(); } if(wpaddown & WPAD_BUTTON_HOME) { exit(0); } } // Be a good boy, clear the memory allocated by GRRLIB GRRLIB_Exit(); free(tex_font3.data); return 0; }
Re: GRRPRINTF weird issue. June 24, 2009 01:52AM | Registered: 14 years ago Posts: 552 |
if(wpaddown & WPAD_BUTTON_A) { x++; }