mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-22 15:02:20 +00:00
[CHG] Fixed some typographical errors ... again
This commit is contained in:
parent
78a213bd19
commit
0b26b535d7
4 changed files with 14 additions and 14 deletions
|
@ -144,7 +144,7 @@ void GRRLIB_2dMode() {
|
||||||
GX_SetChanCtrl(GX_COLOR0A0, GX_DISABLE, GX_SRC_VTX, GX_SRC_VTX, 0, GX_DF_NONE, GX_AF_NONE);
|
GX_SetChanCtrl(GX_COLOR0A0, GX_DISABLE, GX_SRC_VTX, GX_SRC_VTX, 0, GX_DF_NONE, GX_AF_NONE);
|
||||||
GX_SetTevOrder(GX_TEVSTAGE0, GX_TEXCOORD0, GX_TEXMAP0, GX_COLOR0A0);
|
GX_SetTevOrder(GX_TEVSTAGE0, GX_TEXCOORD0, GX_TEXMAP0, GX_COLOR0A0);
|
||||||
|
|
||||||
GRRLIB_Settings.lights = 0;
|
GRRLIB_Settings.lights = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -401,7 +401,7 @@ void GRRLIB_DrawTorus(f32 r, f32 R, int nsides, int rings, bool filled, u32 col)
|
||||||
/**
|
/**
|
||||||
* Draw a sphere (with normal).
|
* Draw a sphere (with normal).
|
||||||
* @param r Radius of the sphere.
|
* @param r Radius of the sphere.
|
||||||
* @param lats Number of latitude.
|
* @param lats Number of latitudes.
|
||||||
* @param longs Number of longitudes.
|
* @param longs Number of longitudes.
|
||||||
* @param filled Wired or not.
|
* @param filled Wired or not.
|
||||||
* @param col Color of the sphere.
|
* @param col Color of the sphere.
|
||||||
|
@ -750,5 +750,5 @@ void GRRLIB_SetLightOff(void) {
|
||||||
GX_SetChanCtrl(GX_COLOR0A0, GX_DISABLE, GX_SRC_VTX, GX_SRC_VTX, 0, GX_DF_NONE, GX_AF_NONE);
|
GX_SetChanCtrl(GX_COLOR0A0, GX_DISABLE, GX_SRC_VTX, GX_SRC_VTX, 0, GX_DF_NONE, GX_AF_NONE);
|
||||||
GX_SetTevOrder(GX_TEVSTAGE0, GX_TEXCOORD0, GX_TEXMAP0, GX_COLOR0A0);
|
GX_SetTevOrder(GX_TEVSTAGE0, GX_TEXCOORD0, GX_TEXMAP0, GX_COLOR0A0);
|
||||||
|
|
||||||
GRRLIB_Settings.lights = 0;
|
GRRLIB_Settings.lights = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,14 +118,14 @@ int main() {
|
||||||
WPAD_Rumble(WPAD_CHAN_0, 1);
|
WPAD_Rumble(WPAD_CHAN_0, 1);
|
||||||
}
|
}
|
||||||
if(direction_new != direction) {
|
if(direction_new != direction) {
|
||||||
// Direction has changed, modify frame immidiately
|
// Direction has changed, modify frame immediately
|
||||||
direction = direction_new;
|
direction = direction_new;
|
||||||
frame = direction;
|
frame = direction;
|
||||||
wait = 0;
|
wait = 0;
|
||||||
}
|
}
|
||||||
wait++;
|
wait++;
|
||||||
if(wait > TILE_DELAY) {
|
if(wait > TILE_DELAY) {
|
||||||
// wait is needed for the number of frame per second to be ok
|
// wait is needed for the number of frame per second to be OK
|
||||||
wait = 0;
|
wait = 0;
|
||||||
if(wpadheld & WPAD_BUTTON_LEFT || wpadheld & WPAD_BUTTON_RIGHT ||
|
if(wpadheld & WPAD_BUTTON_LEFT || wpadheld & WPAD_BUTTON_RIGHT ||
|
||||||
wpadheld & WPAD_BUTTON_UP || wpadheld & WPAD_BUTTON_DOWN) {
|
wpadheld & WPAD_BUTTON_UP || wpadheld & WPAD_BUTTON_DOWN) {
|
||||||
|
@ -147,7 +147,7 @@ int main() {
|
||||||
GRRLIB_Rectangle(left + 150, top + 150, 200, 200, 0x0000FFC8, 1); // Blue with alpha
|
GRRLIB_Rectangle(left + 150, top + 150, 200, 200, 0x0000FFC8, 1); // Blue with alpha
|
||||||
GRRLIB_Circle(left + 300, top + 300, 50, GRRLIB_OLIVE, 1);
|
GRRLIB_Circle(left + 300, top + 300, 50, GRRLIB_OLIVE, 1);
|
||||||
|
|
||||||
// Draw a yellow four pixel dot where the wiimote is pointing
|
// Draw a yellow four pixel dot where the Wii Remote is pointing
|
||||||
GRRLIB_Plot(ir1.sx, ir1.sy, GRRLIB_YELLOW);
|
GRRLIB_Plot(ir1.sx, ir1.sy, GRRLIB_YELLOW);
|
||||||
GRRLIB_Plot(ir1.sx + 1, ir1.sy, GRRLIB_YELLOW);
|
GRRLIB_Plot(ir1.sx + 1, ir1.sy, GRRLIB_YELLOW);
|
||||||
GRRLIB_Plot(ir1.sx, ir1.sy + 1, GRRLIB_YELLOW);
|
GRRLIB_Plot(ir1.sx, ir1.sy + 1, GRRLIB_YELLOW);
|
||||||
|
|
|
@ -48,19 +48,19 @@ int main() {
|
||||||
GRRLIB_texImg *tex_flipv = GRRLIB_CreateEmptyTexture(tex_pirate->w, tex_pirate->h);
|
GRRLIB_texImg *tex_flipv = GRRLIB_CreateEmptyTexture(tex_pirate->w, tex_pirate->h);
|
||||||
GRRLIB_texImg *tex_fliphv = GRRLIB_CreateEmptyTexture(tex_pirate->w, tex_pirate->h);
|
GRRLIB_texImg *tex_fliphv = GRRLIB_CreateEmptyTexture(tex_pirate->w, tex_pirate->h);
|
||||||
|
|
||||||
// Let's precalculte the grayscale texture
|
// Let's precalculate the grayscale texture
|
||||||
GRRLIB_BMFX_Grayscale(tex_pirate, tex_gray);
|
GRRLIB_BMFX_Grayscale(tex_pirate, tex_gray);
|
||||||
GRRLIB_FlushTex(tex_gray);
|
GRRLIB_FlushTex(tex_gray);
|
||||||
|
|
||||||
// Let's precalculte the sepia texture
|
// Let's precalculate the sepia texture
|
||||||
GRRLIB_BMFX_Sepia(tex_pirate, tex_sepia);
|
GRRLIB_BMFX_Sepia(tex_pirate, tex_sepia);
|
||||||
GRRLIB_FlushTex(tex_sepia);
|
GRRLIB_FlushTex(tex_sepia);
|
||||||
|
|
||||||
// Let's precalculte the inverted color texture
|
// Let's precalculate the inverted color texture
|
||||||
GRRLIB_BMFX_Invert(tex_pirate, tex_invert);
|
GRRLIB_BMFX_Invert(tex_pirate, tex_invert);
|
||||||
GRRLIB_FlushTex(tex_invert);
|
GRRLIB_FlushTex(tex_invert);
|
||||||
|
|
||||||
// Let's precalculte 6 differents blur texture with 6 differents blur factor
|
// Let's precalculate 6 differents blur texture with 6 differents blur factor
|
||||||
GRRLIB_BMFX_Blur(tex_pirate, tex_blur1, 1);
|
GRRLIB_BMFX_Blur(tex_pirate, tex_blur1, 1);
|
||||||
GRRLIB_FlushTex(tex_blur1);
|
GRRLIB_FlushTex(tex_blur1);
|
||||||
GRRLIB_BMFX_Blur(tex_pirate, tex_blur2, 2);
|
GRRLIB_BMFX_Blur(tex_pirate, tex_blur2, 2);
|
||||||
|
@ -74,7 +74,7 @@ int main() {
|
||||||
GRRLIB_BMFX_Blur(tex_pirate, tex_blur6, 6);
|
GRRLIB_BMFX_Blur(tex_pirate, tex_blur6, 6);
|
||||||
GRRLIB_FlushTex(tex_blur6);
|
GRRLIB_FlushTex(tex_blur6);
|
||||||
|
|
||||||
// Let's precalculte 6 differents pixelate texture with 6 differents pixelate factor
|
// Let's precalculate 6 differents pixelate texture with 6 differents pixelate factor
|
||||||
GRRLIB_BMFX_Pixelate(tex_pirate, tex_pixel1, 1);
|
GRRLIB_BMFX_Pixelate(tex_pirate, tex_pixel1, 1);
|
||||||
GRRLIB_FlushTex(tex_pixel1);
|
GRRLIB_FlushTex(tex_pixel1);
|
||||||
GRRLIB_BMFX_Pixelate(tex_pirate, tex_pixel2, 2);
|
GRRLIB_BMFX_Pixelate(tex_pirate, tex_pixel2, 2);
|
||||||
|
@ -88,7 +88,7 @@ int main() {
|
||||||
GRRLIB_BMFX_Pixelate(tex_pirate, tex_pixel6, 6);
|
GRRLIB_BMFX_Pixelate(tex_pirate, tex_pixel6, 6);
|
||||||
GRRLIB_FlushTex(tex_pixel6);
|
GRRLIB_FlushTex(tex_pixel6);
|
||||||
|
|
||||||
// Let's precalculte 6 differents pixelate texture with 6 differents pixelate factor
|
// Let's precalculate 6 differents pixelate texture with 6 differents pixelate factor
|
||||||
GRRLIB_BMFX_Scatter(tex_pirate, tex_scatter1, 2);
|
GRRLIB_BMFX_Scatter(tex_pirate, tex_scatter1, 2);
|
||||||
GRRLIB_FlushTex(tex_pixel1);
|
GRRLIB_FlushTex(tex_pixel1);
|
||||||
GRRLIB_BMFX_Scatter(tex_pirate, tex_scatter2, 4);
|
GRRLIB_BMFX_Scatter(tex_pirate, tex_scatter2, 4);
|
||||||
|
@ -102,7 +102,7 @@ int main() {
|
||||||
GRRLIB_BMFX_Scatter(tex_pirate, tex_scatter6, 12);
|
GRRLIB_BMFX_Scatter(tex_pirate, tex_scatter6, 12);
|
||||||
GRRLIB_FlushTex(tex_pixel6);
|
GRRLIB_FlushTex(tex_pixel6);
|
||||||
|
|
||||||
// Let's precalculte for flipping the texture
|
// Let's precalculate for flipping the texture
|
||||||
GRRLIB_BMFX_FlipH(tex_pirate, tex_fliph);
|
GRRLIB_BMFX_FlipH(tex_pirate, tex_fliph);
|
||||||
GRRLIB_FlushTex(tex_fliph);
|
GRRLIB_FlushTex(tex_fliph);
|
||||||
GRRLIB_BMFX_FlipV(tex_pirate, tex_flipv);
|
GRRLIB_BMFX_FlipV(tex_pirate, tex_flipv);
|
||||||
|
|
|
@ -67,7 +67,7 @@ int main() {
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
GRRLIB_FillScreen(0x000000FF);
|
GRRLIB_FillScreen(0x000000FF);
|
||||||
WPAD_ScanPads(); // Scan the wiimotes
|
WPAD_ScanPads(); // Scan the Wiimotes
|
||||||
if (WPAD_ButtonsDown(0) & WPAD_BUTTON_HOME) break;
|
if (WPAD_ButtonsDown(0) & WPAD_BUTTON_HOME) break;
|
||||||
old1=siny1; old2=siny2; old3=siny3; old4=siny4;
|
old1=siny1; old2=siny2; old3=siny3; old4=siny4;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue