You are not logged in.
I'm a very new programmer. I've converted a jpeg to C array with GIMP, but I'm having trouble compiling..
#include "../../../GRRLIB/GRRLIB/GRRLIB.h" #include <stdlib.h> #include <math.h> #include <wiiuse/wpad.h> #include "gfx/StickFigga.h" Mtx GXmodelView2D; int main() { u32 wpaddown; GRRLIB_texImg tex_StickFigga = GRRLIB_LoadTexture(StickFigga); GRRLIB_Init(); WPAD_Init(); while(1) { WPAD_ScanPads(); wpaddown = WPAD_ButtonsDown(0); GRRLIB_FillScreen(0xFFFFFFFF); GRRLIB_DrawImg(0, 0, tex_StickFigga, 0, 1, 1, 0xFFFFFFFF); GRRLIB_Render(); if(wpaddown & WPAD_BUTTON_HOME) { exit(0); } } GRRLIB_Exit(); free(tex_StickFigga.data); return 0; }
this is the error:
c:/devkitPro/grrlib/examples/template/source/main.c: In function 'main':
c:/devkitPro/grrlib/examples/template/source/main.c:17: error: 'StickFigga' undeclared (first use in this function)
c:/devkitPro/grrlib/examples/template/source/main.c:17: error: (Each undeclared identifier is reported only once
c:/devkitPro/grrlib/examples/template/source/main.c:17: error: for each function it appears in.)
c:/devkitPro/grrlib/examples/template/source/main.c:56:2: warning: no newline at end of file
make[1]: *** [main.o] Error 1
"make": *** [build] Error 2
Offline
don't use gimp convertion, use you jpeg with the raw2c included in devkitpro.
Offline
Or use WiiBuilder if you are running Windows.
Offline
sorry Crayon, i'm so used to play with raw2c than i forgot sometime your marvellous tool !!! sorry
Offline