libwiisprite won't load images (FIXED) October 27, 2009 12:49AM | Registered: 14 years ago Posts: 4 |
if(image.LoadImage("/apps/XsTests/cursor.png") != IMG_LOAD_ERROR_NONE) { } else { imgloaded = true; }to load an image. I've tried many other path formats and I got it to work before, but I don't remember how exactly. I know it has something to do with the path. I have initialized fatlib and libwiisprite correctly, it just won't load the images.
Re: libwiisprite won't load images October 27, 2009 01:20AM | Registered: 15 years ago Posts: 70 |
Re: libwiisprite won't load images October 27, 2009 02:30AM | Admin Registered: 15 years ago Posts: 5,132 |
Re: libwiisprite won't load images October 27, 2009 11:11PM | Registered: 14 years ago Posts: 4 |
Re: libwiisprite won't load images October 28, 2009 01:26AM | Registered: 15 years ago Posts: 70 |
Re: libwiisprite won't load images October 28, 2009 01:50AM | Registered: 14 years ago Posts: 4 |
// Create the game window and initalise the VIDEO subsystem GameWindow gwd; gwd.InitVideo(); gwd.SetBackground((GXColor){ 255, 255, 255, 255 }); Sprite sprite; Image image; bool imgloaded = false; if(image.LoadImage("sd:/apps/XsTests/cursor.png") != IMG_LOAD_ERROR_NONE) { } else { imgloaded = true; } if (imgloaded == true) { gwd.SetBackground((GXColor){ 0, 241, 0, 255 }); } else { gwd.SetBackground((GXColor){ 241, 0, 0, 255 }); } sprite.SetImage(&image); //^ That says & image //The code tag made it look funny
Re: libwiisprite won't load images October 28, 2009 09:32PM | Admin Registered: 15 years ago Posts: 5,132 |
Re: libwiisprite won't load images October 28, 2009 11:09PM | Registered: 15 years ago Posts: 70 |
// Create the game window and initialize the VIDEO subsystem GameWindow gwd; gwd.InitVideo(); gwd.SetBackground((GXColor){ 255, 255, 255, 255 }); Sprite sprite; Image image; bool imgloaded; if(image.LoadImage("sd:/apps/XsTests/cursor.png") != IMG_LOAD_ERROR_NONE) { imgloaded = false; } else { imgloaded = true; } if (imgloaded == true) { gwd.SetBackground((GXColor){ 0, 241, 0, 255 }); } else { gwd.SetBackground((GXColor){ 241, 0, 0, 255 }); } sprite.SetImage(&image); //^ That says & image //The code tag made it look funny
Re: libwiisprite won't load images October 29, 2009 12:23AM | Registered: 14 years ago Posts: 4 |