You are not logged in.
hello
i have a little problem i want display two images
if i display only "wa" or "grrlib" texture this is ok but two images i have a bug
anyone can help me?
In french:
bonjour
j'ai un problème quand j'affiche deux images
si j'affiche seulement la texture "wa" ou "grrlib" cela fonctionne mais si j'affiche les deux il m'affiche n'importe quoi
quelqu'un peut m'aider?
void intro() { // Load the image file to a texture structure GRRLIB_texImg grrlib=GRRLIB_LoadFileTextureFromFile("sd:/apps/plusoumoins/image/grrlib.png"); GRRLIB_texImg wa=GRRLIB_LoadFileTextureFromFile("sd:/apps/plusoumoins/image/wa.png"); GRRLIB_texImg tex_font4 = GRRLIB_LoadFileTextureFromFile("sd:/apps/plusoumoins/image/font1.png"); GRRLIB_InitTileSet(&tex_font4, 32, 33, 32); GRRLIB_FillScreen(0x336699FF); GRRLIB_Printf(50, 350, tex_font4 ,0xFFFFFFFF,0.6,"MYCOOLBUTTON.COM"); GRRLIB_DrawImg(20, 200, wa, 0, 1, 1,0xFFFFFFFF); GRRLIB_DrawImg(120, 100, grrlib, 0, 1, 1,0x336699FF); GRRLIB_Render(); sleep(3); free(grrlib.data); free(tex_font4.data); free(wa.data); }
Offline
Could you elaborate/explain the bug?
Offline
i have not error when i compiled
but when i running my homebrew on wii
if i show only wa = ok
if i show only grrlib = ok
if i show "wa" and "grrlib" = i can't see "wa" and "grrlib" on the screen
sorry for my english
Last edited by crazygoth (2009-04-23 23:53:09)
Offline
crazygoth wrote:
if i show "wa" and "grrlib" = i can't see "wa" and "grrlib" on the screen
Which one do you see, the first one or the second one or none of them. Did you tried to inverse the order to see if it's related to the order in the code?
Offline
i have already try inverse order code
and this not resolved the problem
Offline
I am trying to load a png from the sd card but where are you getting the function
GRRLIB_LoadFileTextureFromFile
from?
Offline
celinedules wrote:
I am trying to load a png from the sd card but where are you getting the function
Code:
GRRLIB_LoadFileTextureFromFilefrom?
An answer was given in this post: http://grrlib.santo.fr/forum/viewtopic.php?id=139
Offline
i use the last svn version with GRRRLIB_addon
and works and i can see all image on my screen
thanks you very much
Offline