libgui/README.md

46 lines
1.1 KiB
Markdown
Raw Normal View History

2017-10-29 10:28:14 +01:00
# libgui
2018-06-21 20:44:58 +02:00
[![Build Status](https://travis-ci.org/Maschell/libgui.svg?branch=wut)](https://travis-ci.org/Maschell/libgui/tree/wut)
2017-10-29 10:28:14 +01:00
2020-06-27 12:43:08 +02:00
# build
```
pacman -Syu ppc-portlibs
pacman -Syu ppc-glm ppc-libmad
```
2017-10-29 10:28:14 +01:00
## Usage
Following steps are required for initialization:
```C
2017-10-29 10:28:14 +01:00
memoryInitialize(); // Initialize memory management
//DO GUI STUFF HERE!
memoryRelease();
```
Link the application with:
```Makefile
-lgui -lfreetype -lgd -lpng -ljpeg -lz -lmad -lvorbisidec -logg -lbz2
2017-10-29 10:28:14 +01:00
```
You also need to add the freetype2 nclude path to your Makefile. Example:
2017-11-11 16:18:13 +01:00
```Makefile
-I$(PORTLIBS_PATH)/ppc/include/freetype2
2017-11-11 16:18:13 +01:00
```
2017-10-29 10:28:14 +01:00
TODO: provide more information
## Dependencies
To be able to use libgui, you need to install the following dependencies:
- [wut](https://github.com/devkitPro/wut/)
2019-05-14 22:26:53 +02:00
- Install the required portlibs via `(dkp-)pacman -Syu ppc-zlib ppc-libmad ppc-libogg ppc-libgd ppc-freetype ppc-libjpeg-turbo ppc-libpng ppc-libvorbisidec ppc-glm ppc-bzip2`
2017-10-29 10:28:14 +01:00
# Credits
- Orignally based on https://github.com/dborth/libwiigui
- Wii U port / modification / new functions / sound / much more by dimok.
- Minor changes by Maschell