[CHG] Cleanup

This commit is contained in:
Crayon2000 2009-12-15 20:02:26 +00:00
parent 4ea093ca25
commit fca67fc044
3 changed files with 158 additions and 159 deletions

View file

@ -17,7 +17,7 @@ include $(DEVKITPPC)/wii_rules
#---------------------------------------------------------------------------------
TARGET := $(notdir $(CURDIR))
BUILD := build
SOURCES := source source/gfx GRRLIB_addon
SOURCES := source
DATA := data
INCLUDES :=
@ -33,7 +33,7 @@ LDFLAGS = -g $(MACHDEP) -mrvl -Wl,-Map,$(notdir $@).map
#---------------------------------------------------------------------------------
# any extra libraries we wish to link with the project
#---------------------------------------------------------------------------------
LIBS := -lmodplay -lasnd -lgrrlib -lpngu -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

View file

@ -8,7 +8,6 @@
#include <wiiuse/wpad.h>
int main() {
int offset1, offset2, offset3, offset4;
int periode1, periode2, periode3, periode4 ;
@ -72,9 +71,11 @@ float pas1, pas2, pas3, pas4;
old1=siny1;old2=siny2;old3=siny3;old4=siny4;
for(x=0;x<=640;x++) {
siny1+=pas1;siny2+=pas2;siny3+=pas3;siny4+=pas4;
siny1+=pas1;
siny2+=pas2;
siny3+=pas3;
siny4+=pas4;
GX_Begin(GX_LINES, GX_VTXFMT0, 2);
GX_Position3f32(x, 0, 0);
@ -90,7 +91,10 @@ float pas1, pas2, pas3, pas4;
GX_End();
}
siny1=old1+(adc1*pas1);siny2=old2+(adc2*pas2); siny3=old3+(adc3*pas3); siny4=old4+(adc4*pas4);
siny1=old1+(adc1*pas1);
siny2=old2+(adc2*pas2);
siny3=old3+(adc3*pas3);
siny4=old4+(adc4*pas4);
GRRLIB_Render(); // Render the frame buffer to the TV
}

View file

@ -24,18 +24,15 @@ int main() {
int i;
int screen_index = 0;
float t=0;
int R=81;
int r=71;
int d=120;
const int R=81;
const int r=71;
const int d=120;
float f=0;
float ff=0;
float spr=0;
int n=1;
float a=0;
u32 col[3];
col[0]=0xFFFFFFFF;
col[1]=0xFFFFFFFF;
col[2]=0xAAAAAAFF;
u32 col[3] = {0xFFFFFFFF, 0xFFFFFFFF, 0xAAAAAAFF};
float cubeZ=10.0f;
float camZ=30.0f;;
@ -55,8 +52,6 @@ int main() {
GRRLIB_InitTileSet(tex_font, 16, 16, 32);
for(i=0;i<=255;i+=1) {
GRRLIB_Printf((640-(16*16))/2, 200, tex_font, 0xFFFFFF00|i, 1, "HOW MANY 3D CUBE");
GRRLIB_Printf((640-(16*20))/2, 216, tex_font, 0xFFFFFF00|i, 1, "CAN YOU DISPLAY WITH");