/*=========================================== NoNameNo Simple 3D object rotating ;) object have to be triangulated to be used with this source. ============================================*/ #include #include #include #include #include #include "gfx/logo.h" int main() { int i=0; float a=0; u32 col; GRRLIB_Init(); WPAD_Init(); GRRLIB_Settings.antialias = true; GRRLIB_setBackgroundColour(0x00, 0x00, 0x00, 0xFF); GRRLIB_camera3dSettings(0.0f,0.0f,13.0f, 0,1,0, 0,0,0); while(1) { GRRLIB_2dMode(); WPAD_ScanPads(); if(WPAD_ButtonsDown(0) & WPAD_BUTTON_HOME) exit(0); GRRLIB_3dMode(0.1,1000,45,0); GRRLIB_objectView(0,0,-30, a,a*2,a*3); GX_Begin(GX_TRIANGLES, GX_VTXFMT0, logoNbFace * 3); for(i=0; i