View unanswered posts | View active topics It is currently Mon Apr 21, 2014 4:20 pm



Reply to topic  [ 4 posts ] 
 Problem with loading image using libwiisprite library !! 
Author Message

Joined: Fri Aug 19, 2011 8:17 am
Posts: 12
hello
it's been almost 4 hours trying to load image to wii using Libwiisprite library but nothing happened . so please I need some extra help here
this is my code and when I compiling it using wiiload everything goes well , but when I run it , a black screen comes and then the program close by it self and return to the homebrew channel :

Code:
#include <stdio.h>
#include <stdlib.h>
#include <gccore.h>
#include <wiiuse/wpad.h>
#include <fat.h>
 
#include <wiisprite.h>
using namespace wsp;
 
GameWindow gwd; // Initializes and renders our scene.
Sprite sprite; // The drawable object we can modify.
Image image; // Holds our image/texture from the SD Card.
 
int main(int argc, char **argv) {
   // Initialize filesystem to load from SD Card
   fatInitDefault();
 
   gwd.InitVideo();
 
   LayerManager manager(1);
 
   if(image.LoadImage("I don't know how to put the path using wiiload, though I tried everything but nothing worked??") != IMG_LOAD_ERROR_NONE)exit(0);
   sprite.SetImage(&image);
   sprite.SetPosition(0, 0);
 
   manager.Append(&sprite); // Gets drawn the closest.
 
   WPAD_Init();
   WPAD_SetDataFormat(WPAD_CHAN_0, WPAD_FMT_BTNS_ACC_IR);
 
   while(1) {
 
      WPAD_ScanPads();
      if(WPAD_ButtonsDown(WPAD_CHAN_0)&WPAD_BUTTON_HOME)
         break;
      // Draw everything what's in the manager.
      manager.Draw(0, 0);
      gwd.Flush();
   }
 
   manager.Draw(0, 0);
   gwd.Flush();
 
   return 0;
}



also this is the files with the source and everything :

http://www.mediafire.com/?y6wg0gpg7a5e5kv

pleeeeeeeeeeease help !!!


Wed Aug 31, 2011 12:52 pm
Profile
Site Admin

Joined: Tue Aug 09, 2005 3:21 am
Posts: 1124
Location: UK
Sorry, we don't support libwiisprite, whatever that might be.

As I've suggested elsewhere, it's probably best if you stick with SDL, at least that will teach you something useful that can be used on a PC as well as a Wii.

_________________
devkitPro IRC support
Personal Blog


Wed Aug 31, 2011 4:00 pm
Profile ICQ WWW

Joined: Fri Aug 19, 2011 8:17 am
Posts: 12
then what are the libraries that you support ??

I don't think SDL is a good library to use on wii programming because they say that it's not complete yet .. do you agree ??
and also i'm not sure if it uses the full power of wii graphics unlike GRRLIB and other specific libraries .


Wed Aug 31, 2011 5:28 pm
Profile
Site Admin

Joined: Tue Aug 09, 2005 3:21 am
Posts: 1124
Location: UK
We support the libraries distributed by devkitPro, we don't support anything released by anyone else but we can possibly offer advice on portable libraries that are in widespread use elsewhere.

The SDL port is complete as far as I'm aware.

You're not currently in a position to make use of "the full power of wii graphics", when you are, you will regret using badly designed wrappers like GRRLIB. First you need programming experience - SDL is more than adequate for starting out.

_________________
devkitPro IRC support
Personal Blog


Wed Aug 31, 2011 9:02 pm
Profile ICQ WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
  Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.
Get devkitPro at SourceForge.net. Fast, secure and Free Open Source software downloads