libgui/README.md
2018-06-21 20:44:58 +02:00

52 lines
1.4 KiB
Markdown

# libgui
[![Build Status](https://travis-ci.org/Maschell/libgui.svg?branch=wut)](https://travis-ci.org/Maschell/libgui/tree/wut)
## Usage
Following steps are required for initialization:
```C
memoryInitialize(); // Initialize memory management
//DO GUI STUFF HERE!
memoryRelease();
```
Link the application with:
```Makefile
-lgui -lutilswut -lfreetype -lgd -lpng -ljpeg -lz -lmad -lvorbisidec
```
You also need to add the include path to your Makefile. Example:
```Makefile
export INCLUDE := [...] -I$(PORTLIBS)/include/freetype2 \
-I$(WUT_ROOT)/include/libgui \
-I$(PORTLIBS)/include
```
TODO: provide more information
## Dependencies
To be able to use libgui, you need to install the following dependencies:
- Application needs to be loaded from the [homebrew_launcher](https://github.com/dimok789/homebrew_launcher)
- [libutils](https://github.com/Maschell/libutils/tree/wut) (WUT branch) for common functions.
- [wut](https://github.com/decaf-emu/wut)
And other portable libraries that can be found in the "libs" folder of this repository. Extract the "portlibs.zip" into your devkitPro directory.
`7z x -y ./libs/portlibs.zip -o${DEVKITPRO}`
This package includes:
- freetype2
- libgd
- libpng
- libjpeg
- libz
- libmad
- vorbisidec
# Credits
- Orignally based on https://github.com/dborth/libwiigui
- Wii U port / modification / new functions / sound / much more by dimok.
- Minor changes by Maschell