You are not logged in.

#1 2009-04-21 23:31:04

crazygoth
Member

[RESOLVED] display two images/afficher deux images

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?

Code:

 
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

 

#2 2009-04-23 23:25:16

mnta
Member

Re: [RESOLVED] display two images/afficher deux images

Could you elaborate/explain the bug?

Offline

 

#3 2009-04-23 23:52:40

crazygoth
Member

Re: [RESOLVED] display two images/afficher deux images

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

 

#4 2009-04-23 23:57:06

Crayon
Bad Mother Fucker

Re: [RESOLVED] display two images/afficher deux images

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

 

#5 2009-04-24 00:06:54

crazygoth
Member

Re: [RESOLVED] display two images/afficher deux images

i have already try inverse order code
and this not resolved the problem

Offline

 

#6 2009-05-04 19:18:09

celinedules
Member

Re: [RESOLVED] display two images/afficher deux images

I am trying to load a png from the sd card but where are you getting the function

Code:

GRRLIB_LoadFileTextureFromFile

from?

Offline

 

#7 2009-05-04 23:34:02

Crayon
Bad Mother Fucker

Re: [RESOLVED] display two images/afficher deux images

celinedules wrote:

I am trying to load a png from the sd card but where are you getting the function

Code:

GRRLIB_LoadFileTextureFromFile

from?

An answer was given in this post: http://grrlib.santo.fr/forum/viewtopic.php?id=139

Offline

 

#8 2009-05-07 20:00:32

crazygoth
Member

Re: [RESOLVED] display two images/afficher deux images

i use the last svn version with GRRRLIB_addon

and works and i can see all image on my screen smile

thanks you very much

Offline

 

Board footer

Powered by FluxBB