From 948bf1de99054ebe066ae2cfe30734dc3152ddec Mon Sep 17 00:00:00 2001 From: N0NameN0 Date: Sun, 22 Mar 2009 23:51:26 +0000 Subject: [PATCH] [ADD] GRRLIB_DrawTileQuad() [ADD] GRRLIB_addon_Init() [ADD] GRRLIB_addon_Exit() [ADD] GRRLIB_addon_Button [ADD] nonameno03 sample code howto use button [ADD] Font and button gfx for addon use --- GRRLIB/GRRLIB/GRRLIB.c | 64 ++++++ GRRLIB/GRRLIB/GRRLIB.h | 1 + GRRLIB/GRRLIB/GRRLIB_addon.c | 73 +++++++ GRRLIB/GRRLIB/GRRLIB_addon.h | 4 +- GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBbutton.c | 32 +++ GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBbutton.h | 14 ++ GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBbutton.png | Bin 0 -> 377 bytes GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBfont.c | 231 ++++++++++++++++++++ GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBfont.h | 14 ++ GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBfont.png | Bin 0 -> 3559 bytes examples/nonameno03/Makefile | 140 ++++++++++++ examples/nonameno03/source/gfx/pointer.c | 221 +++++++++++++++++++ examples/nonameno03/source/gfx/pointer.h | 14 ++ examples/nonameno03/source/gfx/pointer.png | Bin 0 -> 3393 bytes examples/nonameno03/source/main.c | 66 ++++++ 15 files changed, 873 insertions(+), 1 deletion(-) create mode 100644 GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBbutton.c create mode 100644 GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBbutton.h create mode 100644 GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBbutton.png create mode 100644 GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBfont.c create mode 100644 GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBfont.h create mode 100644 GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBfont.png create mode 100644 examples/nonameno03/Makefile create mode 100644 examples/nonameno03/source/gfx/pointer.c create mode 100644 examples/nonameno03/source/gfx/pointer.h create mode 100644 examples/nonameno03/source/gfx/pointer.png create mode 100644 examples/nonameno03/source/main.c diff --git a/GRRLIB/GRRLIB/GRRLIB.c b/GRRLIB/GRRLIB/GRRLIB.c index 21a452a..f4ef82e 100644 --- a/GRRLIB/GRRLIB/GRRLIB.c +++ b/GRRLIB/GRRLIB/GRRLIB.c @@ -39,6 +39,7 @@ inline void GRRLIB_Circle(f32 x, f32 y, f32 radius, u32 color, u8 filled); inline void GRRLIB_DrawImg(f32 xpos, f32 ypos, struct GRRLIB_texImg *tex, float degrees, float scaleX, f32 scaleY, u32 color ); inline void GRRLIB_DrawImgQuad(Vector pos[4], struct GRRLIB_texImg *tex, u32 color); inline void GRRLIB_DrawTile(f32 xpos, f32 ypos, struct GRRLIB_texImg *tex, float degrees, float scaleX, f32 scaleY, u32 color, int frame); +inline void GRRLIB_DrawTileQuad(Vector pos[4], struct GRRLIB_texImg *tex, u32 color,int frame); /** @@ -722,6 +723,69 @@ inline void GRRLIB_DrawTile(f32 xpos, f32 ypos, struct GRRLIB_texImg *tex, float GX_SetVtxDesc(GX_VA_TEX0, GX_NONE); } +/** + * Draw a tile in a quad. + * @param pos Vector array of the 4 points. + * @param tex The texture to draw. + * @param color Color in RGBA format. + * @param frame Specifies the frame to draw. + */ + +inline void GRRLIB_DrawTileQuad(Vector pos[4], struct GRRLIB_texImg *tex, u32 color, int frame) { + if (tex == NULL || tex->data == NULL) { return; } + + GXTexObj texObj; + Mtx m, m1, m2, mv; + + // Frame Correction by spiffen + f32 FRAME_CORR = 0.001f; + f32 s1 = (((frame%tex->nbtilew))/(f32)tex->nbtilew)+(FRAME_CORR/tex->w); + f32 s2 = (((frame%tex->nbtilew)+1)/(f32)tex->nbtilew)-(FRAME_CORR/tex->w); + f32 t1 = (((int)(frame/tex->nbtilew))/(f32)tex->nbtileh)+(FRAME_CORR/tex->h); + f32 t2 = (((int)(frame/tex->nbtilew)+1)/(f32)tex->nbtileh)-(FRAME_CORR/tex->h); + + GX_InitTexObj(&texObj, tex->data, tex->tilew*tex->nbtilew, tex->tileh*tex->nbtileh, GX_TF_RGBA8, GX_CLAMP, GX_CLAMP, GX_FALSE); + if (GRRLIB_Settings.antialias == false) { + GX_InitTexObjLOD(&texObj, GX_NEAR, GX_NEAR, 0.0f, 0.0f, 0.0f, 0, 0, GX_ANISO_1); + } + GX_LoadTexObj(&texObj, GX_TEXMAP0); + + GX_SetTevOp(GX_TEVSTAGE0, GX_MODULATE); + GX_SetVtxDesc(GX_VA_TEX0, GX_DIRECT); + + guMtxIdentity(m1); + guMtxScaleApply(m1, m1, 1, 1, 1.0f); + + Vector axis = (Vector) {0, 0, 1 }; + guMtxRotAxisDeg(m2, &axis, 0); + guMtxConcat(m2, m1, m); + + guMtxConcat(GXmodelView2D, m, mv); + + GX_LoadPosMtxImm(mv, GX_PNMTX0); + GX_Begin(GX_QUADS, GX_VTXFMT0, 4); + GX_Position3f32(pos[0].x, pos[0].y, 0); + GX_Color1u32(color); + GX_TexCoord2f32(s1, t1); + + GX_Position3f32(pos[1].x, pos[1].y, 0); + GX_Color1u32(color); + GX_TexCoord2f32(s2, t1); + + GX_Position3f32(pos[2].x, pos[2].y, 0); + GX_Color1u32(color); + GX_TexCoord2f32(s2, t2); + + GX_Position3f32(pos[3].x, pos[3].y, 0); + GX_Color1u32(color); + GX_TexCoord2f32(s1, t2); + GX_End(); + GX_LoadPosMtxImm(GXmodelView2D, GX_PNMTX0); + + GX_SetTevOp(GX_TEVSTAGE0, GX_PASSCLR); + GX_SetVtxDesc(GX_VA_TEX0, GX_NONE); +} + /** * Print formatted output. * @param xpos Specifies the x-coordinate of the upper-left corner of the text. diff --git a/GRRLIB/GRRLIB/GRRLIB.h b/GRRLIB/GRRLIB/GRRLIB.h index 39fb427..8dd5aad 100644 --- a/GRRLIB/GRRLIB/GRRLIB.h +++ b/GRRLIB/GRRLIB/GRRLIB.h @@ -121,6 +121,7 @@ void GRRLIB_InitTileSet(struct GRRLIB_texImg *tex, unsigned int tilew, unsigned extern void GRRLIB_DrawImg(f32 xpos, f32 ypos, struct GRRLIB_texImg *tex, float degrees, float scaleX, f32 scaleY, u32 color ); extern void GRRLIB_DrawImgQuad(Vector pos[4], struct GRRLIB_texImg *tex, u32 color); extern void GRRLIB_DrawTile(f32 xpos, f32 ypos, struct GRRLIB_texImg *tex, float degrees, float scaleX, f32 scaleY, u32 color, int frame); +extern void GRRLIB_DrawTileQuad(Vector pos[4], struct GRRLIB_texImg *tex, u32 color,int frame); void GRRLIB_Printf(f32 xpos, f32 ypos, struct GRRLIB_texImg *tex, u32 color, f32 zoom, const char *text, ...); void GRRLIB_PrintBMF(f32 xpos, f32 ypos, struct GRRLIB_bytemapFont *bmf, f32 zoom, const char *text, ...); diff --git a/GRRLIB/GRRLIB/GRRLIB_addon.c b/GRRLIB/GRRLIB/GRRLIB_addon.c index 199a8e4..71960f1 100644 --- a/GRRLIB/GRRLIB/GRRLIB_addon.c +++ b/GRRLIB/GRRLIB/GRRLIB_addon.c @@ -14,10 +14,34 @@ #include "GRRLIB.h" #include +#include "GRRLIB_addon/GRRLIBfont.h" +#include "GRRLIB_addon/GRRLIBbutton.h" + extern u32 fb; extern void *xfb[2]; extern GXRModeObj *rmode; +GRRLIB_texImg *tex_GRRLIBfont; +GRRLIB_texImg *tex_GRRLIBbutton; + +/** + * Initalize all addon requirement + */ +void GRRLIB_addon_Init(){ + tex_GRRLIBfont = GRRLIB_LoadTexture(GRRLIBfont); + GRRLIB_InitTileSet(tex_GRRLIBfont, 16, 19, 32); + + tex_GRRLIBbutton = GRRLIB_LoadTexture(GRRLIBbutton); + GRRLIB_InitTileSet(tex_GRRLIBbutton, 4, 24, 0); +} + +/** + * Free all addon requirement + */ +void GRRLIB_addon_Exit(){ + GRRLIB_FreeTexture(tex_GRRLIBfont); + GRRLIB_FreeTexture(tex_GRRLIBbutton); +} /** * Load a texture from a file. @@ -58,3 +82,52 @@ bool GRRLIB_ScrShot(const char* File) { return !ErrorCode; } +/** + * Easy Button Maker. + * @param indice Index number of your button. + * @param x top-left corner X position of the button. + * @param y top-left corner Y position of the button. + * @param col color of your button. + * @param wpadx your X wpad posistion. + * @param wpady your Y wpad posistion. + * @param WPADDown your wpad button Down Status. + * @param WPADHeld your wpad button Held Status. + * @param but The wpad button you want to check. + * @param resdown You will find here the downed button index number. + * @param resheld You will find here the helded button index number. + * @param toto Text on the button. + */ +void GRRLIB_addon_Button(int indice, int x,int y,u32 col, int wpadx, int wpady, u32 WPADDown, u32 WPADHeld, int but, int *resdown, int *resheld, char toto[]){ + int butwidth=strlen(toto)*16+8; + Vector bg[]={{x+4,y,0},{x+4+strlen(toto)*16,y,0},{x+4+strlen(toto)*16,y+24,0},{x+4,y+24,0}}; + if((toto[0]=='^') && ((toto[1]=='U') || (toto[1]=='D') || (toto[1]=='L') || (toto[1]=='R'))){ + butwidth=1*16+8; + bg[1].x=x+4+1*16; + bg[2].x=x+4+1*16; + } + + GRRLIB_DrawTile(x,y, tex_GRRLIBbutton , 0, 1, 1, col,0 ); + GRRLIB_DrawTileQuad(bg, tex_GRRLIBbutton, col,1 ); + GRRLIB_DrawTile(bg[1].x,y, tex_GRRLIBbutton , 0, 1, 1, col,2); + + if(GRRLIB_PtInRect(x, y, butwidth, 24, wpadx, wpady)) { + if((toto[0]=='^') && (toto[1]=='U')) GRRLIB_Printf(x+4, y+2, tex_GRRLIBfont, 0xFFFFFFFF, 1, "%c", 0xa1); + else if((toto[0]=='^') && (toto[1]=='D')) GRRLIB_Printf(x+4, y+2, tex_GRRLIBfont, 0xFFFFFFFF, 1, "%c", 0xa2); + else if((toto[0]=='^') && (toto[1]=='L')) GRRLIB_Printf(x+4, y+2, tex_GRRLIBfont, 0xFFFFFFFF, 1, "%c", 0xa3); + else if((toto[0]=='^') && (toto[1]=='R')) GRRLIB_Printf(x+4, y+2, tex_GRRLIBfont, 0xFFFFFFFF, 1, "%c", 0xa4); + else GRRLIB_Printf(x+4, y+2, tex_GRRLIBfont, 0xFFFFFFFF, 1, toto); + if(WPADDown & but) { + *resdown=indice; + } + if(WPADHeld & but) { + *resheld=indice; + } + } + else{ + if((toto[0]=='^') && (toto[1]=='U')) GRRLIB_Printf(x+4, y+2, tex_GRRLIBfont, 0xFFFFFF77, 1, "%c", 0xa1); + else if((toto[0]=='^') && (toto[1]=='D')) GRRLIB_Printf(x+4, y+2, tex_GRRLIBfont, 0xFFFFFF77, 1, "%c", 0xa2); + else if((toto[0]=='^') && (toto[1]=='L')) GRRLIB_Printf(x+4, y+2, tex_GRRLIBfont, 0xFFFFFF77, 1, "%c", 0xa3); + else if((toto[0]=='^') && (toto[1]=='R')) GRRLIB_Printf(x+4, y+2, tex_GRRLIBfont, 0xFFFFFF77, 1, "%c", 0xa4); + else GRRLIB_Printf(x+4, y+2, tex_GRRLIBfont, 0xFFFFFF77, 1, toto); + } +} diff --git a/GRRLIB/GRRLIB/GRRLIB_addon.h b/GRRLIB/GRRLIB/GRRLIB_addon.h index 9b810d2..a832d09 100644 --- a/GRRLIB/GRRLIB/GRRLIB_addon.h +++ b/GRRLIB/GRRLIB/GRRLIB_addon.h @@ -18,9 +18,11 @@ extern "C" { #endif /* __cplusplus */ - +void GRRLIB_addon_Init(); +void GRRLIB_addon_Exit(); GRRLIB_texImg *GRRLIB_LoadTextureFromFile(const char *filename); bool GRRLIB_ScrShot(const char*); +void GRRLIB_addon_Button(int indice, int x,int y,u32 col, int wpadx, int wpady, u32 WPADDown, u32 WPADHeld, int but, int *resdown, int *resheld, char toto[]); #ifdef __cplusplus diff --git a/GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBbutton.c b/GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBbutton.c new file mode 100644 index 0000000..2593403 --- /dev/null +++ b/GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBbutton.c @@ -0,0 +1,32 @@ +/* + This file was autogenerated by raw2c. +Visit http://www.devkitpro.org +*/ + +const unsigned char GRRLIBbutton[] = { + 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, + 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x18, 0x08, 0x06, 0x00, 0x00, 0x00, 0xce, 0x32, 0x1c, + 0x6a, 0x00, 0x00, 0x00, 0x01, 0x73, 0x52, 0x47, 0x42, 0x00, 0xae, 0xce, 0x1c, 0xe9, 0x00, 0x00, + 0x00, 0x06, 0x62, 0x4b, 0x47, 0x44, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0xa0, 0xbd, 0xa7, 0x93, + 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00, 0x00, 0x0b, 0x13, + 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00, 0x00, 0x00, 0x07, 0x74, 0x49, 0x4d, 0x45, 0x07, 0xd9, 0x03, + 0x13, 0x02, 0x17, 0x23, 0x58, 0x89, 0x44, 0x6c, 0x00, 0x00, 0x00, 0xf9, 0x49, 0x44, 0x41, 0x54, + 0x38, 0xcb, 0xed, 0x93, 0xcd, 0x8d, 0xc5, 0x20, 0x0c, 0x84, 0x07, 0x30, 0x01, 0x29, 0x8d, 0xa4, + 0xac, 0x94, 0x96, 0x0a, 0x52, 0x4f, 0x0a, 0x48, 0x0b, 0xf9, 0x01, 0x0c, 0xde, 0x43, 0x44, 0xf4, + 0x0e, 0x79, 0x64, 0xf7, 0xbe, 0x96, 0x10, 0x17, 0x7f, 0xf2, 0x8c, 0x19, 0x14, 0x00, 0x2c, 0xcb, + 0x22, 0x22, 0x02, 0x11, 0xc1, 0x53, 0x29, 0xa5, 0xa0, 0x94, 0xc2, 0x30, 0x0c, 0x4a, 0xcd, 0xf3, + 0x2c, 0x31, 0x46, 0xe4, 0x9c, 0x91, 0x73, 0x7e, 0x04, 0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00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82 +}; +const int GRRLIBbutton_size = sizeof(GRRLIBbutton); diff --git a/GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBbutton.h b/GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBbutton.h new file mode 100644 index 0000000..099faa3 --- /dev/null +++ b/GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBbutton.h @@ -0,0 +1,14 @@ +/* + This file was autogenerated by raw2c. +Visit http://www.devkitpro.org +*/ + +//--------------------------------------------------------------------------------- +#ifndef _GRRLIBbutton_h_ +#define _GRRLIBbutton_h_ +//--------------------------------------------------------------------------------- +extern const unsigned char GRRLIBbutton[]; +extern const int GRRLIBbutton_size; +//--------------------------------------------------------------------------------- +#endif //_GRRLIBbutton_h_ +//--------------------------------------------------------------------------------- diff --git a/GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBbutton.png b/GRRLIB/GRRLIB/GRRLIB_addon/GRRLIBbutton.png new file mode 100644 index 0000000000000000000000000000000000000000..2a5f48ce62264a4643d33fb3fe3e525fffc594a1 GIT binary patch literal 377 zcmeAS@N?(olHy`uVBq!ia0vp^JU}eL!3HGH8OdY;DaPU;cPEB*=VV?2Ic!PZ?k)`f zL2$v|<&%LToCO|{#S9GG!XV7ZFl&wkP>{XE)7O>#CbKY;xN=0NOAb)zr>Bc!h{fr* zlh5`ZRp4o1H(=E4U9x7%G_D|jE)VXXj6C<8UB2*DrhMNwO+dW%XF47)d|>0hWXi0D ztzt_>0(t}$Tf!GiVOsl@^@v0~qu|aZOQ!_z8{0Fvl-w6_a+v#x_k^Xhi=OA1o>z;f zd=lNEUUMq5@G zkPy*lVyIbD;|l13v+w)8 zRt~yf_^e!Iy3Rn+x$(fZ+4Ze6lSX89{-S<@9V|1wzIs{trH9Q*BLQ6A+=_V=*+iJ% zjw6Dp(@-?1w6d|G_Nb|l|ND&fOku%MW^9XB%{c=nDtmWTW+g=je(vTCSsrfpp#A^_Qq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duv+8~qT5|@#J44VHMpIz<| l0tT;NWc>~B|I(#)5co8kyRzxA@OD?$`Xbz%aNhIwe*ojQ;h+Ej literal 0 HcmV?d00001 diff --git a/examples/nonameno03/Makefile b/examples/nonameno03/Makefile new file mode 100644 index 0000000..391765f --- /dev/null +++ b/examples/nonameno03/Makefile @@ -0,0 +1,140 @@ +#--------------------------------------------------------------------------------- +# Clear the implicit built in rules +#--------------------------------------------------------------------------------- +.SUFFIXES: +#--------------------------------------------------------------------------------- +ifeq ($(strip $(DEVKITPPC)),) +$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=devkitPPC) +endif + +include $(DEVKITPPC)/wii_rules + +#--------------------------------------------------------------------------------- +# TARGET is the name of the output +# BUILD is the directory where object files & intermediate files will be placed +# SOURCES is a list of directories containing source code +# INCLUDES is a list of directories containing extra header files +#--------------------------------------------------------------------------------- +GRRLIB := ../../GRRLIB +TARGET := $(notdir $(CURDIR)) +BUILD := build +SOURCES := source source/gfx $(GRRLIB)/GRRLIB $(GRRLIB)/GRRLIB/GRRLIB_addon $(GRRLIB)/lib/libpng/pngu +DATA := data +INCLUDES := + +#--------------------------------------------------------------------------------- +# options for code generation +#--------------------------------------------------------------------------------- + +CFLAGS = -g -O2 -mrvl -Wall $(MACHDEP) $(INCLUDE) +CXXFLAGS = $(CFLAGS) + +LDFLAGS = -g $(MACHDEP) -mrvl -Wl,-Map,$(notdir $@).map + +#--------------------------------------------------------------------------------- +# any extra libraries we wish to link with the project +#--------------------------------------------------------------------------------- +LIBS := -lpng -ljpeg -lz -lfat -lwiiuse -lbte -logc -lm + +#--------------------------------------------------------------------------------- +# list of directories containing libraries, this must be the top level containing +# include and lib +#--------------------------------------------------------------------------------- +LIBDIRS := $(CURDIR)/$(GRRLIB) + +#--------------------------------------------------------------------------------- +# no real need to edit anything past this point unless you need to add additional +# rules for different file extensions +#--------------------------------------------------------------------------------- +ifneq ($(BUILD),$(notdir $(CURDIR))) +#--------------------------------------------------------------------------------- + +export OUTPUT := $(CURDIR)/$(TARGET) + +export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \ + $(foreach dir,$(DATA),$(CURDIR)/$(dir)) + +export DEPSDIR := $(CURDIR)/$(BUILD) + +#--------------------------------------------------------------------------------- +# automatically build a list of object files for our project +#--------------------------------------------------------------------------------- +CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c))) +CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp))) +sFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s))) +SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.S))) +BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*))) + +#--------------------------------------------------------------------------------- +# use CXX for linking C++ projects, CC for standard C +#--------------------------------------------------------------------------------- +ifeq ($(strip $(CPPFILES)),) + export LD := $(CC) +else + export LD := $(CXX) +endif + +export OFILES := $(addsuffix .o,$(BINFILES)) \ + $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) \ + $(sFILES:.s=.o) $(SFILES:.S=.o) + +#--------------------------------------------------------------------------------- +# build a list of include paths +#--------------------------------------------------------------------------------- +export INCLUDE := $(foreach dir,$(INCLUDES), -iquote $(CURDIR)/$(dir)) \ + $(foreach dir,$(LIBDIRS),-I$(dir)/include) \ + -I$(CURDIR)/$(BUILD) \ + -I$(LIBOGC_INC) + +#--------------------------------------------------------------------------------- +# build a list of library paths +#--------------------------------------------------------------------------------- +export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) \ + -L$(LIBOGC_LIB) + +export OUTPUT := $(CURDIR)/$(TARGET) +.PHONY: $(BUILD) clean + +#--------------------------------------------------------------------------------- +$(BUILD): + @[ -d $@ ] || mkdir -p $@ + @make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile + +#--------------------------------------------------------------------------------- +clean: + @echo clean ... + @rm -fr $(BUILD) $(OUTPUT).elf $(OUTPUT).dol + +#--------------------------------------------------------------------------------- +run: + psoload $(TARGET).dol + +#--------------------------------------------------------------------------------- +reload: + psoload -r $(TARGET).dol + + +#--------------------------------------------------------------------------------- +else + +DEPENDS := $(OFILES:.o=.d) + +#--------------------------------------------------------------------------------- +# main targets +#--------------------------------------------------------------------------------- +$(OUTPUT).dol: $(OUTPUT).elf +$(OUTPUT).elf: $(OFILES) + +#--------------------------------------------------------------------------------- +# This rule links in binary data with the .jpg extension +#--------------------------------------------------------------------------------- +%.jpg.o : %.jpg +#--------------------------------------------------------------------------------- + @echo $(notdir $<) + $(bin2o) + +-include $(DEPENDS) + +#--------------------------------------------------------------------------------- +endif +#--------------------------------------------------------------------------------- diff --git a/examples/nonameno03/source/gfx/pointer.c b/examples/nonameno03/source/gfx/pointer.c new file mode 100644 index 0000000..7121217 --- /dev/null +++ b/examples/nonameno03/source/gfx/pointer.c @@ -0,0 +1,221 @@ +/* + This file was autogenerated by raw2c. +Visit http://www.devkitpro.org +*/ + +const unsigned char pointer[] = { + 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, + 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x08, 0x06, 0x00, 0x00, 0x00, 0xaa, 0x69, 0x71, + 0xde, 0x00, 0x00, 0x00, 0x01, 0x73, 0x52, 0x47, 0x42, 0x00, 0xae, 0xce, 0x1c, 0xe9, 0x00, 0x00, + 0x00, 0x06, 0x62, 0x4b, 0x47, 0x44, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0xa0, 0xbd, 0xa7, 0x93, + 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00, 0x00, 0x0b, 0x13, + 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00, 0x00, 0x00, 0x07, 0x74, 0x49, 0x4d, 0x45, 0x07, 0xd9, 0x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8, 0xe9, 0x13, 0x4f, 0x3c, 0x91, 0x78, 0xe1, 0x85, 0x17, + 0x12, 0xc0, 0x5f, 0x9b, 0x6b, 0x3f, 0x18, 0xb3, 0xeb, 0x0f, 0xec, 0x16, 0x11, 0x2d, 0x22, 0xda, + 0xb2, 0xac, 0x3d, 0xe6, 0x5a, 0xb7, 0x9b, 0xa4, 0xab, 0x9b, 0x0e, 0xec, 0x02, 0xd2, 0x8c, 0x94, + 0xdd, 0x40, 0x3e, 0x90, 0xd1, 0x7a, 0x60, 0x11, 0x49, 0x07, 0x86, 0x9a, 0xff, 0x89, 0x03, 0xcd, + 0xe6, 0x33, 0xf1, 0x7d, 0x66, 0x40, 0x0a, 0x90, 0x0e, 0x64, 0x03, 0xfd, 0x80, 0x07, 0x81, 0xe9, + 0x77, 0xdd, 0x75, 0xd7, 0xd8, 0x51, 0xa3, 0x46, 0x0d, 0xcd, 0xca, 0xca, 0x4a, 0x4f, 0x26, 0x93, + 0x00, 0x3c, 0xfd, 0xf4, 0xd3, 0x3f, 0x09, 0x85, 0x42, 0xfb, 0x2b, 0x2a, 0x2a, 0xfe, 0x5c, 0x51, + 0x51, 0x71, 0x02, 0xf8, 0x13, 0x70, 0x08, 0x08, 0x01, 0x0d, 0x80, 0x63, 0x1c, 0xe5, 0xf7, 0x82, + 0x2c, 0x20, 0x13, 0xb8, 0x1d, 0x58, 0x90, 0x95, 0x95, 0x75, 0x60, 0xc9, 0x92, 0x25, 0x52, 0x5a, + 0x5a, 0x2a, 0x2d, 0x2d, 0x2d, 0x12, 0x8f, 0xc7, 0x25, 0x12, 0x89, 0x48, 0x38, 0x1c, 0x96, 0x60, + 0x30, 0x28, 0xc1, 0x60, 0x50, 0xc2, 0xe1, 0xb0, 0x34, 0x36, 0x36, 0x4a, 0x2c, 0x16, 0x13, 0xc7, + 0x71, 0x64, 0xcf, 0x9e, 0x3d, 0xb2, 0x68, 0xd1, 0x22, 0xed, 0x72, 0xb9, 0x7e, 0x07, 0xcc, 0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x1c, 0xa5, 0x54, 0x66, 0x67, 0x04, 0xd2, 0x19, 0x06, 0xa4, 0x01, 0x33, 0xe6, 0xcd, 0x9b, + 0x07, 0xc0, 0xce, 0x9d, 0x3b, 0x13, 0xc0, 0x7e, 0x53, 0xbb, 0x77, 0x96, 0x34, 0xd0, 0x1c, 0x08, + 0x04, 0x2a, 0x6d, 0xdb, 0xae, 0x32, 0xcf, 0xe8, 0x4a, 0xb9, 0xdb, 0x04, 0x14, 0x6f, 0xdd, 0xba, + 0x95, 0x44, 0x22, 0xc1, 0xec, 0xd9, 0xb3, 0x33, 0x44, 0x64, 0xd2, 0xcd, 0x32, 0x83, 0x3c, 0x60, + 0x57, 0x22, 0x91, 0x10, 0xc7, 0x71, 0x74, 0x4e, 0x4e, 0x4e, 0x99, 0x49, 0x4e, 0xae, 0x27, 0x9a, + 0x14, 0xba, 0xdd, 0xee, 0xbf, 0x37, 0x4e, 0xb1, 0xab, 0x66, 0x39, 0x74, 0xdc, 0xb8, 0x71, 0x27, + 0x6c, 0xdb, 0x96, 0xda, 0xda, 0x5a, 0x01, 0xde, 0x31, 0x29, 0xf2, 0x0d, 0xa7, 0xdb, 0x26, 0x4e, + 0x9c, 0x58, 0x11, 0x8b, 0xc5, 0xe4, 0xc4, 0x89, 0x13, 0x02, 0xfc, 0xab, 0x49, 0x43, 0xaf, 0x27, + 0x95, 0x4e, 0x37, 0xeb, 0x7a, 0xc0, 0xd9, 0x01, 0xc0, 0x16, 0xbf, 0xdf, 0x2f, 0xb1, 0x58, 0x4c, + 0xfa, 0xf7, 0xef, 0x5f, 0x66, 0x42, 0xf2, 0x0d, 0x41, 0x84, 0x2c, 0x93, 0x61, 0x65, 0x00, 0xf9, + 0xc3, 0x87, 0x0f, 0xbf, 0x2d, 0x91, 0x48, 0x70, 0xf4, 0xe8, 0x51, 0x80, 0x6f, 0x4d, 0xae, 0xef, + 0x6a, 0x47, 0xc5, 0x13, 0x6d, 0x56, 0xf2, 0x0a, 0x2a, 0xae,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, 0xa8, 0x90, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, + 0x82 +}; +const int pointer_size = sizeof(pointer); diff --git a/examples/nonameno03/source/gfx/pointer.h b/examples/nonameno03/source/gfx/pointer.h new file mode 100644 index 0000000..13c8f98 --- /dev/null +++ b/examples/nonameno03/source/gfx/pointer.h @@ -0,0 +1,14 @@ +/* + This file was autogenerated by raw2c. +Visit http://www.devkitpro.org +*/ + +//--------------------------------------------------------------------------------- +#ifndef _pointer_h_ +#define _pointer_h_ +//--------------------------------------------------------------------------------- +extern const unsigned char pointer[]; +extern const int pointer_size; +//--------------------------------------------------------------------------------- +#endif //_pointer_h_ +//--------------------------------------------------------------------------------- diff --git a/examples/nonameno03/source/gfx/pointer.png b/examples/nonameno03/source/gfx/pointer.png new file mode 100644 index 0000000000000000000000000000000000000000..252a050f7958f00fb04ff5c65cb186c15e8ffd77 GIT binary patch literal 3393 zcmXX}c{o(<8=e^qDkD1)vc_jAd$NCH8EXc`*v1zs*~U_`kF_DnGGo`mP+4Q_WF*NR z$u30pWiYZ0ey8jDUFUtzbDj5}^DOuC-1m#SWp2oF?$S9B2*iRgf+GQ|^LH~rf%p3d zn4f?F`y&nYK;``cE5HZzKNCYZ=)wy4FDx8#y7q)`5gh?be*lfFWkYGKg7NBxV%GD%9N5`HX>~ zx-^QY9D9qutR_7b)!}%RVUT#W6y-RD%9U=Dg?so0F=t^!+g;u|$9emQ`QN{pv<&}U+73ufns*Pa z47`FfE2Ms#lNDyHr{ksnj3wm%r)Tkk=U|1yLL((;E|!O#?40vZo40z6b)B0{R%D{8 zRC5tkms41h16zj-Jxia~(Rwi$jAlbH#$})3==v5Fx5M0Z&b@%S(w#&yVpkqd2ab+e z78tPfb$1(ENTh)@PN?6tnPc^i|B;qHb+EL=Kn^&3nV7&Vk#_}t??=f9bJSn9eSyaZ zqPtSXktme3tgI~i^G?@~$Dcv-Ebl5Rcv@%V zAC8ve9h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B5tWVwJUr+RhO9H1BrNhBS^`#(H~bc!lH7yleCw5m%TzA~_P|Vu z*+^=!Q$^i+&8Sn_2(}og2|(!piCAc#SOYvRqO7cpw6YSNto2IU+3^E@#?C~)@G15@ z`?=V^rYiK%&(fI7|3Rd3IVefxpl!b!lTIxQFy;9**KSt|MFp#vNxIiB2QOg=(r4a)rb z`a1JnfJ8SRH8G|W2*LU>@q)o`$7?qx0IrJgda0VOG9O3EF0^_5Q5Tgn77(q1X9x4o1MTd_ zjph27#2Q05G`Wmrtk_vq_1;21QOP<17H6&!#3URI9WFcc|2sq7xfA&_|36o*zkLx7 P+;2b#eRFuZ9y;oOSd*C2 literal 0 HcmV?d00001 diff --git a/examples/nonameno03/source/main.c b/examples/nonameno03/source/main.c new file mode 100644 index 0000000..7d892e4 --- /dev/null +++ b/examples/nonameno03/source/main.c @@ -0,0 +1,66 @@ +/*=========================================== + NoNameNo Demo Button ;) + + Perhaps needs some improvement... +============================================*/ +#include "../../../GRRLIB/GRRLIB/GRRLIB.h" +#include "../../../GRRLIB/GRRLIB/GRRLIB_addon.h" + +#include "gfx/pointer.h" + +#include +#include + +extern GRRLIB_texImg *tex_GRRLIBfont; + +int main() { + u32 WPADDown; + u32 WPADHeld; + ir_t ir1; + int wpadx=0, wpady=0; + + int resdown=0,resheld=0; + + + GRRLIB_Init(); + GRRLIB_addon_Init(); + WPAD_Init(); + WPAD_SetIdleTimeout(60); + WPAD_SetDataFormat(WPAD_CHAN_0, WPAD_FMT_BTNS_ACC_IR); + + GRRLIB_texImg *tex_pointer = GRRLIB_LoadTexture(pointer); + + while(1) { + WPAD_SetVRes(0, 640, 480); + WPAD_ScanPads(); + WPADDown = WPAD_ButtonsDown(0); + WPADHeld = WPAD_ButtonsHeld(0); + WPAD_IR(WPAD_CHAN_0, &ir1); + wpadx=ir1.sx-200; + wpady=ir1.sy-250; + + GRRLIB_addon_Button(1, 100,100,0xFFFF00FF, wpadx, wpady, WPADDown, WPADHeld, WPAD_BUTTON_A, &resdown, &resheld, " My First Button "); + GRRLIB_addon_Button(2, 100,140,0xFF00FFFF, wpadx, wpady, WPADDown, WPADHeld, WPAD_BUTTON_A, &resdown, &resheld, " My Second Button "); + GRRLIB_addon_Button(3, 100,180,0x00FFFFFF, wpadx, wpady, WPADDown, WPADHeld, WPAD_BUTTON_A, &resdown, &resheld, " My Third Button "); + GRRLIB_addon_Button(4, 100,260,0xCCCCCCFF, wpadx, wpady, WPADDown, WPADHeld, WPAD_BUTTON_A, &resdown, &resheld, " -- QuIt -- "); + + GRRLIB_Printf(100, 310, tex_GRRLIBfont, 0xFFFFFFFF, 1, "button down : %d",resdown); + GRRLIB_Printf(100, 330, tex_GRRLIBfont, 0xFFFFFFFF, 1, "button held : %d",resheld); + + if(resdown==4){ + exit(0); + } + + resdown=0,resheld=0; + + GRRLIB_DrawImg(wpadx-32, wpady-32, tex_pointer , 0, 1, 1, 0xFFFFFFFF ); + + GRRLIB_Render(); + } + GRRLIB_FreeTexture(tex_pointer); + GRRLIB_addon_Exit(); + GRRLIB_Exit(); // Be a good boy, clear the memory allocated by GRRLIB + return 0; +} + +