Go to file
Crayon 413394095b
Add syntax highlighting to readme file
Add syntax highlighting to readme file
2018-03-01 19:57:34 -05:00
libs First commit, have fun! 2017-10-29 10:28:14 +01:00
source Removed some hardcoded frm the GuiParticleImage 2017-11-11 13:38:50 +01:00
.gitattributes 🎪 Added .gitattributes & .gitignore files 2017-10-29 10:26:56 +01:00
.gitignore First commit, have fun! 2017-10-29 10:28:14 +01:00
.travis.yml Using github instead of sourceforge 2018-02-25 13:53:29 +01:00
Makefile Disable Logging 2017-11-11 16:10:02 +01:00
README.md Add syntax highlighting to readme file 2018-03-01 19:57:34 -05:00

libgui

Build Status

Usage

Following steps are required for initialization:

InitOSFunctionPointers();   // Load OS functions
InitPadScoreFunctionPointers();
InitVPadFunctionPointers(); // Input functions for GUI control
InitFSFunctionPointers();   // To load file from the SD Card
InitGX2FunctionPointers();  // For rendering
InitAXFunctionPointers();   // For sound

mount_sd_fat("sd");			// Mounting the SD Card
memoryInitialize();			// Initialize memory management

//DO GUI STUFF HERE!

memoryRelease();
unmount_sd_fat("sd");

Link the application with:

-lgui -lutils -ldynamiclibs -lfreetype -lgd -lpng -ljpeg -lz  -lmad -lvorbisidec

You also need to add the include path to your Makefile. Example:

export INCLUDE	:= [...] -I$(PORTLIBS)/include/freetype2 \
						 -I$(PORTLIBS)/include/libgui \
						 -I$(PORTLIBS)/include

TODO: provide more information

Dependencies

To be able to use libgui, you need to install the following dependencies:

And other portable libraries that can be found in the "libs" folder of this repository. Extract the "portlibs.zip" into your devkitPro directory. This package includes:

  • freetype2
  • libgd
  • libpng
  • libjpeg
  • libz
  • libmad
  • vorbisidec

Credits