mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-22 23:12:21 +00:00
Update README.md
Update to new source layout
This commit is contained in:
parent
f2afa677f2
commit
57261a2a5a
1 changed files with 10 additions and 15 deletions
25
README.md
25
README.md
|
@ -40,11 +40,10 @@ to allow real-time loading and saving of graphical data, and thus requires
|
||||||
'libfreetype' is also required.
|
'libfreetype' is also required.
|
||||||
|
|
||||||
```text
|
```text
|
||||||
libgrrlib <- 2D/3D graphics library
|
libgrr <- 2D/3D graphics library
|
||||||
├── libfat <- File I/O
|
├── libfat <- File I/O
|
||||||
├── libjpeg <- JPEG image processor
|
├── libjpeg <- JPEG image processor
|
||||||
├── libpngu <- Wii wrapper for libpng
|
├── libpng <- PNG image processor
|
||||||
│ └── libpng <- PNG image processor
|
|
||||||
└── libfreetype <- TrueType font processor
|
└── libfreetype <- TrueType font processor
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -72,8 +71,7 @@ version" to a directory called C:\grr
|
||||||
This guide is for Windows. If you are using Linux, I am going to presume you
|
This guide is for Windows. If you are using Linux, I am going to presume you
|
||||||
are smart enough to convert these instructions.
|
are smart enough to convert these instructions.
|
||||||
```text
|
```text
|
||||||
GRRLIB is supplied as source code
|
GRRLIB is supplied as source code (libpngu is now included)
|
||||||
libpngu is supplied as source code
|
|
||||||
libpng is supplied via devkitPro pacman (ppc-libpng)
|
libpng is supplied via devkitPro pacman (ppc-libpng)
|
||||||
libfreetype is supplied via devkitPro pacman (ppc-freetype)
|
libfreetype is supplied via devkitPro pacman (ppc-freetype)
|
||||||
libjpeg is supplied via devkitPro pacman (ppc-libjpeg-turbo)
|
libjpeg is supplied via devkitPro pacman (ppc-libjpeg-turbo)
|
||||||
|
@ -102,14 +100,7 @@ libfreetype and libjpeg with there dependencies in a single command:
|
||||||
|
|
||||||
Each library could also be installed individually:
|
Each library could also be installed individually:
|
||||||
|
|
||||||
To install libpngu
|
To install libgrr:
|
||||||
```bash
|
|
||||||
c:
|
|
||||||
cd \grr\GRRLIB\lib\pngu
|
|
||||||
make clean all install
|
|
||||||
```
|
|
||||||
|
|
||||||
To install libgrrlib:
|
|
||||||
```bash
|
```bash
|
||||||
c:
|
c:
|
||||||
cd \grr\GRRLIB\GRRLIB
|
cd \grr\GRRLIB\GRRLIB
|
||||||
|
@ -126,7 +117,11 @@ at the top of your .c/.cpp file and use the functions as required
|
||||||
|
|
||||||
You will need to add
|
You will need to add
|
||||||
```make
|
```make
|
||||||
-lgrrlib -lfreetype -lbz2 -lfat -ljpeg -lpngu -lpng -lz
|
`freetype-config --cflags`
|
||||||
|
```
|
||||||
|
to the CFLAGS line in your makefile and
|
||||||
|
```make
|
||||||
|
-lgrr `freetype-config --libs` -lbz2 -lfat -ljpeg -lpng -lz
|
||||||
```
|
```
|
||||||
to the libs line in your makefile
|
to the libs line in your makefile
|
||||||
|
|
||||||
|
@ -172,7 +167,7 @@ so lbz2 needs to be added after lfreetype in your makefile.
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
```make
|
```make
|
||||||
LIBS := -lgrrlib -lfreetype -lbz2 -lpngu -lpng -ljpeg -lz -lfat
|
LIBS := -lgrrlib `freetype-config --libs` -lbz2 -lpng -ljpeg -lz -lfat
|
||||||
```
|
```
|
||||||
|
|
||||||
Since GRRLIB and libpngu are now installed into the porlibs folder, make sure you don't have any leftovers from previous installations.
|
Since GRRLIB and libpngu are now installed into the porlibs folder, make sure you don't have any leftovers from previous installations.
|
||||||
|
|
Loading…
Reference in a new issue