#################################################
#                                               #
#  libwiisprite - v0.1.8b                       #
#                                               #
#################################################
#  Written by Chaosteil and Feesh!              #
#################################################

~~What is libwiisprite?~~

libwiisprite is a C++ sprite library written for the Wii which utilises
GX for all it's graphical operations, meaning the GPU is used to accelerate
graphics.

libwiisprite aims to make developing Wii homebrew simple and fun with
better graphical results than currently existing libraries.

~~Installation Instructions~~

First of all change directory into the extracted libwiisprite directory.

To install libwiisprite:

	Copy ./lib/libwiisprite.a to lib/wii/ in your DevkitPPC folder
	(This could also be in the libogc folder. Check if it has libogc.a and other files in it)
	Copy ./libwiisprite/include/*.h to include/ in your DevkitPPC folder
	(This could also be in the libogc folder. Check if it has ogcsys.h and other files in it)


You will also need to install libpng (if you haven't already done so).

To install libpng:

	Copy ./libpng/lib/libpng.a to lib/wii/ in your DevkitPPC folder
	(This could also be the libogc folder. Check if it has libogc.a and other files in it)
	Copy ./libpng/include/*.h to include/ in your DevkitPPC folder
	(This could also be in the libogc folder. Check if it has ogcsys.h and other files in it)


~~How To Use libwiisprite In Your Project~~

When using libwiisprite, you need to alter the Makefile for your project.

Open up the Makefile, then to the LIBS variable, add -lwiisprite -lpng.
(You may need to change the order of your libs to make this work correctly)

~~Sample Application~~

Here is a quick example usage of libwiisprite:

#include <wiisprite.h>
#include <wiiuse/wpad.h>

// libwiisprite uses wsp as it's namespace
using namespace wsp;

int main(int argc, char **argv)
{
	// Create the game window and initalise the VIDEO subsystem
	GameWindow gwd;
	gwd.InitVideo();
	
	gwd.SetBackground((GXColor){ 255, 255, 255, 255 });

	// Initialise Wiimote
	WPAD_Init();

	for(;;)
	{
		WPAD_ScanPads();
		if(WPAD_ButtonsDown(WPAD_CHAN0)&WPAD_BUTTON_HOME)
			break;
		gwd.Flush();
	}
	return 0;
}

The end result of this program is a white screen. You can push the "Home"
button to exit the program.

~~Getting Support~~

The library comes with documentation, but tutorials may be created. If have made
a tutorial, please contact Chaosteil or feesh at <chaosteil@gmail.com> or <gummybassist@gmail.com>.
We will try and link to your tutorial in later releases of the library.
