You are not logged in.
I have a blank sqaure of white 16x16 and i draw it as i do everything else, yet only this graphic is messing up (not appearing properly). I cannot work out why could anyone help?
Offline
Could you paste some code please...
Offline
#include "gfx/FQ_whitesquare.h" #include "C:\devkitPro\GRR\GRRLIB\GRRLIB.h" GRRLIB_texImg WHITEBLOCK; int main(void) { GRRLIB_Init(); WHITEBLOCK = GRRLIB_LoadTexture(FQ_whitesquare); while(1) { GRRLIB_FillScreen(0x00000000); GRRLIB_DrawImg(0, 0, WHITEBLOCK, 0, 1, 1, 0xFFFFFFFF); GRRLIB_Render(); } return 0; }
That draws a messed up image, not a 64 by 64 white square. whitesquare.png is a 64x64 png entirely white, nothing else. i converted it using raw2c.
Offline
fatquack wrote:
That draws a messed up image, not a 64 by 64 white square. whitesquare.png is a 64x64 png entirely white, nothing else. i converted it using raw2c.
Could you try to convert it with WiiBuilder to see if you get any warnings: http://wiibrew.org/wiki/WiiBuilder
Offline
Yes there was a warning, ' only 24bit and 32bit PNGs are allowed' I assume then, that it will work if i change it to a 24/32 bit PNG (it is currently 8 bit). Thanks for the help.
Offline
No problem
Offline