2009-02-13 00:23:20 +00:00
|
|
|
/*===========================================
|
|
|
|
GRRLIB (GX version) 3.0.5 alpha
|
|
|
|
Code : NoNameNo
|
|
|
|
Additional Code : Crayon
|
|
|
|
GX hints : RedShade
|
|
|
|
|
|
|
|
Minimum Code To Use GRRLIB
|
|
|
|
============================================*/
|
2009-02-13 20:44:54 +00:00
|
|
|
#include "../../../GRRLIB/GRRLIB/GRRLIB.h"
|
2009-02-13 00:23:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <wiiuse/wpad.h>
|
|
|
|
|
|
|
|
|
|
|
|
Mtx GXmodelView2D;
|
|
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
u32 wpaddown;
|
|
|
|
|
|
|
|
GRRLIB_Init();
|
|
|
|
WPAD_Init();
|
|
|
|
|
|
|
|
while(1) {
|
|
|
|
WPAD_ScanPads();
|
|
|
|
wpaddown = WPAD_ButtonsDown(0);
|
|
|
|
|
|
|
|
GRRLIB_Render();
|
|
|
|
if(wpaddown & WPAD_BUTTON_HOME) {
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
GRRLIB_Exit(); // Be a good boy, clear the memory allocated by GRRLIB
|
|
|
|
return 0;
|
|
|
|
}
|