[BUG] Examples have been updated to work with latest version of GRRLIB

This commit is contained in:
Crayon2000 2009-10-16 21:24:17 +00:00
parent fff851b34b
commit 3319a09ccb
5 changed files with 18 additions and 18 deletions

View file

@ -20,7 +20,7 @@ LIBS += -lbte -logc
LIBS += -lm LIBS += -lm
BINDIR := $(DEVKITPPC)/bin BINDIR := $(DEVKITPPC)/bin
PREFIX := $(BINDIR)/powerpc-gekko- PREFIX := $(BINDIR)/powerpc-eabi-
CC := $(PREFIX)gcc CC := $(PREFIX)gcc
CXX := $(PREFIX)g++ CXX := $(PREFIX)g++
AR := $(PREFIX)ar AR := $(PREFIX)ar

View file

@ -60,7 +60,7 @@ int main() {
ir_t ir1; ir_t ir1;
u32 wpaddown, wpadheld; u32 wpaddown, wpadheld;
Vector triangle[] = {{400,200,0.0f}, {500,400,0.0f}, {300,400,0.0f}}; guVector triangle[] = {{400,200,0.0f}, {500,400,0.0f}, {300,400,0.0f}};
u32 trianglecolor[] = {GRRLIB_GREEN, GRRLIB_RED, GRRLIB_BLUE}; u32 trianglecolor[] = {GRRLIB_GREEN, GRRLIB_RED, GRRLIB_BLUE};
GRRLIB_Init(); GRRLIB_Init();

View file

@ -17,13 +17,13 @@
int main() { int main() {
u32 wpaddown; u32 wpaddown;
Vector ln[4]; guVector ln[4];
Vector d[4]; guVector d[4];
float xt ,yt, zt; float xt ,yt, zt;
int i; int i;
float a=0.0, b=0.0; float a=0.0, b=0.0;
float c=2; float c=2;
Vector l[4]={{-0.8,-0.8,0},{0.8,-0.8,0},{0.8,0.8,0},{-0.8,0.8,0}}; guVector l[4]={{-0.8,-0.8,0},{0.8,-0.8,0},{0.8,0.8,0},{-0.8,0.8,0}};
GRRLIB_Init(); GRRLIB_Init();
WPAD_Init(); WPAD_Init();

View file

@ -55,7 +55,7 @@ void GRRLIB_addon_Exit(){
*/ */
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[]){ 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; 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}}; guVector 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'))){ if((toto[0]=='^') && ((toto[1]=='U') || (toto[1]=='D') || (toto[1]=='L') || (toto[1]=='R'))){
butwidth = 1*16+8; butwidth = 1*16+8;
bg[1].x = x+4+1*16; bg[1].x = x+4+1*16;