Go to file
GaryOderNichts 62e2655b72
GuiSwitch: Do not draw onImg and offImg when not visible (#11)
Co-authored-by: Maschell <Maschell@gmx.de>
2022-02-05 14:50:09 +01:00
.github/workflows Format the code via clang-format 2022-02-05 14:31:43 +01:00
include/gui GuiImageData: Add option to load directly from a file (#19) 2022-02-05 14:47:17 +01:00
source GuiSwitch: Do not draw onImg and offImg when not visible (#11) 2022-02-05 14:50:09 +01:00
.clang-format Format the code via clang-format 2022-02-05 14:31:43 +01:00
.gitattributes 🎪 Added .gitattributes & .gitignore files 2017-10-29 10:26:56 +01:00
.gitignore Formatting 2020-08-13 12:38:07 +02:00
Dockerfile Update Dockerfile, use github actions 2022-01-09 13:45:55 +01:00
Dockerfile.buildlocal Format the code via clang-format 2022-02-05 14:31:43 +01:00
Makefile - Move lib from $(DESTDIR)$(DEVKITPRO)/wut/ to $(DESTDIR)$(DEVKITPRO)/wut/usr 2020-02-22 23:24:10 +01:00
README.md Format the code via clang-format 2022-02-05 14:31:43 +01:00

Publish Docker Image

libgui

Build Status

Usage

Following steps are required for initialization:

libgui_memoryInitialize();			// Initialize memory management

//DO GUI STUFF HERE!

libgui_memoryRelease();

Link the application with:

-lgui -lfreetype -lgd -lpng -ljpeg -lz -lmad -lvorbisidec -logg -lbz2

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

-I$(PORTLIBS_PATH)/ppc/include/freetype2

TODO: provide more information

Dependencies

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

  • wut
  • 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

Use this lib in Dockerfiles.

A prebuilt version of this lib can found on dockerhub. To use it for your projects, add this to your Dockerfile.

[...]
COPY --from=wiiuenv/libgui:[tag] /artifacts $DEVKITPRO
[...]

Replace [tag] with a tag you want to use, a list of tags can be found here. It's highly recommended to pin the version to the latest date instead of using latest.

Format the code via docker

docker run --rm -v ${PWD}:/src wiiuenv/clang-format:13.0.0-2 -r ./source ./include -i

Credits