mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-22 15:02:20 +00:00
Updated *most* examples to compile with grrlib 4.1.0
This commit is contained in:
parent
25900af95f
commit
c493224a34
13 changed files with 842 additions and 853 deletions
|
@ -10,4 +10,4 @@ clean:
|
||||||
@for i in $(SUBDIRS); do if test -e $$i/Makefile ; then $(MAKE) -C $$i clean || { exit 1;} fi; done;
|
@for i in $(SUBDIRS); do if test -e $$i/Makefile ; then $(MAKE) -C $$i clean || { exit 1;} fi; done;
|
||||||
|
|
||||||
dist: clean
|
dist: clean
|
||||||
@tar --exclude=*CVS* -cvjf wii-examples-$(DATESTRING).tar.bz2 *
|
@tar --exclude=.svn -cvjf wii-examples-$(DATESTRING).tar.bz2 *
|
||||||
|
|
|
@ -15,10 +15,9 @@ include $(DEVKITPPC)/wii_rules
|
||||||
# SOURCES is a list of directories containing source code
|
# SOURCES is a list of directories containing source code
|
||||||
# INCLUDES is a list of directories containing extra header files
|
# INCLUDES is a list of directories containing extra header files
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
GRRLIB := ../../GRRLIB
|
|
||||||
TARGET := $(notdir $(CURDIR))
|
TARGET := $(notdir $(CURDIR))
|
||||||
BUILD := build
|
BUILD := build
|
||||||
SOURCES := source source/gfx $(GRRLIB)/GRRLIB $(GRRLIB)/lib/libpng/pngu
|
SOURCES := source source/gfx
|
||||||
DATA := data
|
DATA := data
|
||||||
INCLUDES :=
|
INCLUDES :=
|
||||||
|
|
||||||
|
@ -34,7 +33,7 @@ LDFLAGS = -g $(MACHDEP) -mrvl -Wl,-Map,$(notdir $@).map
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# any extra libraries we wish to link with the project
|
# any extra libraries we wish to link with the project
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
LIBS := -lpng -ljpeg -lz -lfat -lwiiuse -lbte -logc -lm
|
LIBS := -lgrrlib -lpngu -lpng -ljpeg -lz -lfat -lwiiuse -lbte -logc -lm
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# list of directories containing libraries, this must be the top level containing
|
# list of directories containing libraries, this must be the top level containing
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
How To use Bitmap FX
|
How To use Bitmap FX
|
||||||
============================================*/
|
============================================*/
|
||||||
#include "../../../GRRLIB/GRRLIB/GRRLIB.h"
|
#include <grrlib.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <wiiuse/wpad.h>
|
#include <wiiuse/wpad.h>
|
||||||
|
|
|
@ -15,10 +15,9 @@ include $(DEVKITPPC)/wii_rules
|
||||||
# SOURCES is a list of directories containing source code
|
# SOURCES is a list of directories containing source code
|
||||||
# INCLUDES is a list of directories containing extra header files
|
# INCLUDES is a list of directories containing extra header files
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
GRRLIB := ../../GRRLIB
|
|
||||||
TARGET := $(notdir $(CURDIR))
|
TARGET := $(notdir $(CURDIR))
|
||||||
BUILD := build
|
BUILD := build
|
||||||
SOURCES := source source/gfx $(GRRLIB)/GRRLIB $(GRRLIB)/lib/libpng/pngu
|
SOURCES := source source/gfx
|
||||||
DATA := data
|
DATA := data
|
||||||
INCLUDES :=
|
INCLUDES :=
|
||||||
|
|
||||||
|
@ -34,7 +33,7 @@ LDFLAGS = -g $(MACHDEP) -mrvl -Wl,-Map,$(notdir $@).map
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# any extra libraries we wish to link with the project
|
# any extra libraries we wish to link with the project
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
LIBS := -lpng -ljpeg -lz -lfat -lwiiuse -lbte -logc -lm
|
LIBS := -lgrrlib -lpngu -lpng -ljpeg -lz -lfat -lwiiuse -lbte -logc -lm
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# list of directories containing libraries, this must be the top level containing
|
# list of directories containing libraries, this must be the top level containing
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
This code shows how to draw
|
This code shows how to draw
|
||||||
vectors using GRRLIB_DrawImgQuad.
|
vectors using GRRLIB_DrawImgQuad.
|
||||||
============================================*/
|
============================================*/
|
||||||
#include "../../../GRRLIB/GRRLIB/GRRLIB.h"
|
#include <grrlib.h>
|
||||||
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
|
@ -15,10 +15,9 @@ include $(DEVKITPPC)/wii_rules
|
||||||
# SOURCES is a list of directories containing source code
|
# SOURCES is a list of directories containing source code
|
||||||
# INCLUDES is a list of directories containing extra header files
|
# INCLUDES is a list of directories containing extra header files
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
GRRLIB := ../../GRRLIB
|
|
||||||
TARGET := $(notdir $(CURDIR))
|
TARGET := $(notdir $(CURDIR))
|
||||||
BUILD := build
|
BUILD := build
|
||||||
SOURCES := source source/gfx $(GRRLIB)/GRRLIB $(GRRLIB)/lib/libpng/pngu
|
SOURCES := source source/gfx
|
||||||
DATA := data
|
DATA := data
|
||||||
INCLUDES :=
|
INCLUDES :=
|
||||||
|
|
||||||
|
@ -34,7 +33,7 @@ LDFLAGS = -g $(MACHDEP) -mrvl -Wl,-Map,$(notdir $@).map
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# any extra libraries we wish to link with the project
|
# any extra libraries we wish to link with the project
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
LIBS := -lpng -ljpeg -lz -lfat -lwiiuse -lbte -logc -lm
|
LIBS := -lgrrlib -lpngu -lpng -ljpeg -lz -lfat -lwiiuse -lbte -logc -lm
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# list of directories containing libraries, this must be the top level containing
|
# list of directories containing libraries, this must be the top level containing
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
Bugged since Screen2texture conversion
|
Bugged since Screen2texture conversion
|
||||||
loose color precision.
|
loose color precision.
|
||||||
============================================*/
|
============================================*/
|
||||||
#include "../../../GRRLIB/GRRLIB/GRRLIB.h"
|
#include <grrlib.h>
|
||||||
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
|
@ -15,10 +15,9 @@ include $(DEVKITPPC)/wii_rules
|
||||||
# SOURCES is a list of directories containing source code
|
# SOURCES is a list of directories containing source code
|
||||||
# INCLUDES is a list of directories containing extra header files
|
# INCLUDES is a list of directories containing extra header files
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
GRRLIB := ../../GRRLIB
|
|
||||||
TARGET := $(notdir $(CURDIR))
|
TARGET := $(notdir $(CURDIR))
|
||||||
BUILD := build
|
BUILD := build
|
||||||
SOURCES := source source/gfx $(GRRLIB)/GRRLIB $(GRRLIB)/lib/libpng/pngu
|
SOURCES := source source/gfx
|
||||||
DATA := data
|
DATA := data
|
||||||
INCLUDES :=
|
INCLUDES :=
|
||||||
|
|
||||||
|
@ -34,7 +33,7 @@ LDFLAGS = -g $(MACHDEP) -mrvl -Wl,-Map,$(notdir $@).map
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# any extra libraries we wish to link with the project
|
# any extra libraries we wish to link with the project
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
LIBS := -lpng -ljpeg -lz -lfat -lwiiuse -lbte -logc -lm
|
LIBS := -lgrrlib -lpngu -lpng -ljpeg -lz -lfat -lwiiuse -lbte -logc -lm
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# list of directories containing libraries, this must be the top level containing
|
# list of directories containing libraries, this must be the top level containing
|
||||||
|
|
|
@ -4,14 +4,11 @@
|
||||||
|
|
||||||
Minimum Code To Use GRRLIB
|
Minimum Code To Use GRRLIB
|
||||||
============================================*/
|
============================================*/
|
||||||
#include "../../../GRRLIB/GRRLIB/GRRLIB.h"
|
#include <grrlib.h>
|
||||||
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <wiiuse/wpad.h>
|
#include <wiiuse/wpad.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
u32 WPADDown;
|
u32 WPADDown;
|
||||||
|
|
||||||
|
|
|
@ -15,10 +15,9 @@ include $(DEVKITPPC)/wii_rules
|
||||||
# SOURCES is a list of directories containing source code
|
# SOURCES is a list of directories containing source code
|
||||||
# INCLUDES is a list of directories containing extra header files
|
# INCLUDES is a list of directories containing extra header files
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
GRRLIB := ../../GRRLIB
|
|
||||||
TARGET := $(notdir $(CURDIR))
|
TARGET := $(notdir $(CURDIR))
|
||||||
BUILD := build
|
BUILD := build
|
||||||
SOURCES := source source/gfx $(GRRLIB)/GRRLIB $(GRRLIB)/lib/libpng/pngu
|
SOURCES := source source/gfx
|
||||||
DATA := data
|
DATA := data
|
||||||
INCLUDES :=
|
INCLUDES :=
|
||||||
|
|
||||||
|
@ -34,7 +33,7 @@ LDFLAGS = -g $(MACHDEP) -mrvl -Wl,-Map,$(notdir $@).map
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# any extra libraries we wish to link with the project
|
# any extra libraries we wish to link with the project
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
LIBS := -lpng -ljpeg -lz -lfat -lwiiuse -lbte -logc -lm
|
LIBS := -lgrrlib -lpngu -lpng -ljpeg -lz -lfat -lwiiuse -lbte -logc -lm
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# list of directories containing libraries, this must be the top level containing
|
# list of directories containing libraries, this must be the top level containing
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
This example shows the different
|
This example shows the different
|
||||||
new blending modes.
|
new blending modes.
|
||||||
============================================*/
|
============================================*/
|
||||||
#include "../../../GRRLIB/GRRLIB/GRRLIB.h"
|
#include <grrlib.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <wiiuse/wpad.h>
|
#include <wiiuse/wpad.h>
|
||||||
|
|
|
@ -15,10 +15,9 @@ include $(DEVKITPPC)/wii_rules
|
||||||
# SOURCES is a list of directories containing source code
|
# SOURCES is a list of directories containing source code
|
||||||
# INCLUDES is a list of directories containing extra header files
|
# INCLUDES is a list of directories containing extra header files
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
GRRLIB := ../../GRRLIB
|
|
||||||
TARGET := $(notdir $(CURDIR))
|
TARGET := $(notdir $(CURDIR))
|
||||||
BUILD := build
|
BUILD := build
|
||||||
SOURCES := source source/gfx $(GRRLIB)/GRRLIB $(GRRLIB)/lib/libpng/pngu
|
SOURCES := source source/gfx
|
||||||
DATA := data
|
DATA := data
|
||||||
INCLUDES :=
|
INCLUDES :=
|
||||||
|
|
||||||
|
@ -34,7 +33,7 @@ LDFLAGS = -g $(MACHDEP) -mrvl -Wl,-Map,$(notdir $@).map
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# any extra libraries we wish to link with the project
|
# any extra libraries we wish to link with the project
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
LIBS := -lpng -ljpeg -lz -lfat -lwiiuse -lbte -logc -lm
|
LIBS := -lgrrlib -lpngu -lpng -ljpeg -lz -lfat -lwiiuse -lbte -logc -lm
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# list of directories containing libraries, this must be the top level containing
|
# list of directories containing libraries, this must be the top level containing
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
This example shows a basic particle
|
This example shows a basic particle
|
||||||
engine creating a Smokebomb.
|
engine creating a Smokebomb.
|
||||||
============================================*/
|
============================================*/
|
||||||
#include "../../../GRRLIB/GRRLIB/GRRLIB.h"
|
#include <grrlib.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <wiiuse/wpad.h>
|
#include <wiiuse/wpad.h>
|
||||||
|
|
Loading…
Reference in a new issue