[CHG] Typo in a comment

[CHG] Bad indentation in three examples
This commit is contained in:
Crayon2000 2010-10-05 02:50:44 +00:00
parent 6a9ae568ec
commit 675bdbab96
4 changed files with 66 additions and 66 deletions

View file

@ -323,7 +323,7 @@ void GRRLIB_ObjectViewInv(f32 posx, f32 posy, f32 posz, f32 angx, f32 angy, f32
/**
* Set the texture to an object (contributed by chris_c aka DaShAmAn).
* @param tex poiter to an image texture (GRRLIB_texImg format).
* @param tex Pointer to an image texture (GRRLIB_texImg format).
* @param rep Texture Repeat Mode, True will repeat it, False won't.
*/
void GRRLIB_SetTexture(GRRLIB_texImg *tex, bool rep) {

View file

@ -282,55 +282,55 @@ int main() {
GRRLIB_ObjectView(0,0,0, a,a*2,a*3,1,1,1);
GX_Begin(GX_QUADS, GX_VTXFMT0, 16);
GX_Position3f32(-rmode->fbWidth/2,rmode->efbHeight/2,rmode->fbWidth/2);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,0.0f);
GX_Position3f32(rmode->fbWidth/2,rmode->efbHeight/2,rmode->fbWidth/2);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,0.0f);
GX_Position3f32(rmode->fbWidth/2,-rmode->efbHeight/2,rmode->fbWidth/2);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,1.0f);
GX_Position3f32(-rmode->fbWidth/2,-rmode->efbHeight/2,rmode->fbWidth/2);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,1.0f);
GX_Position3f32(rmode->fbWidth/2,rmode->efbHeight/2,-rmode->fbWidth/2);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,0.0f);
GX_Position3f32(-rmode->fbWidth/2,rmode->efbHeight/2,-rmode->fbWidth/2);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,0.0f);
GX_Position3f32(-rmode->fbWidth/2,-rmode->efbHeight/2,-rmode->fbWidth/2);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,1.0f);
GX_Position3f32(rmode->fbWidth/2,-rmode->efbHeight/2,-rmode->fbWidth/2);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,1.0f);
GX_Position3f32(rmode->fbWidth/2,rmode->efbHeight/2,rmode->fbWidth/2);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,0.0f);
GX_Position3f32(rmode->fbWidth/2,rmode->efbHeight/2,-rmode->fbWidth/2);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,0.0f);
GX_Position3f32(rmode->fbWidth/2,-rmode->efbHeight/2,-rmode->fbWidth/2);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,1.0f);
GX_Position3f32(rmode->fbWidth/2,-rmode->efbHeight/2,rmode->fbWidth/2);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,1.0f);
GX_Position3f32(-rmode->fbWidth/2,rmode->efbHeight/2,-rmode->fbWidth/2);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,0.0f);
GX_Position3f32(-rmode->fbWidth/2,rmode->efbHeight/2,rmode->fbWidth/2);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,0.0f);
GX_Position3f32(-rmode->fbWidth/2,-rmode->efbHeight/2,rmode->fbWidth/2);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,1.0f);
GX_Position3f32(-rmode->fbWidth/2,-rmode->efbHeight/2,-rmode->fbWidth/2);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,1.0f);
GX_End();

View file

@ -43,81 +43,81 @@ int main() {
GRRLIB_ObjectView(0,0,cubeZ, a,a*2,a*3,1,1,1);
GX_Begin(GX_QUADS, GX_VTXFMT0, 24);
GX_Position3f32(-1.0f,1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,0.0f);
GX_Position3f32(1.0f,1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,0.0f);
GX_Position3f32(1.0f,-1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,1.0f);
GX_Position3f32(-1.0f,-1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,1.0f);
GX_Position3f32(1.0f,1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,0.0f);
GX_Position3f32(-1.0f,1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,0.0f);
GX_Position3f32(-1.0f,-1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,1.0f);
GX_Position3f32(1.0f,-1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,1.0f);
GX_Position3f32(1.0f,1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,0.0f);
GX_Position3f32(1.0f,1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,0.0f);
GX_Position3f32(1.0f,-1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,1.0f);
GX_Position3f32(1.0f,-1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,1.0f);
GX_Position3f32(-1.0f,1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,0.0f);
GX_Position3f32(-1.0f,1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,0.0f);
GX_Position3f32(-1.0f,-1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,1.0f);
GX_Position3f32(-1.0f,-1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,1.0f);
GX_Position3f32(-1.0f,1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,0.0f);
GX_Position3f32(1.0f,1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,0.0f);
GX_Position3f32(1.0f,1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,1.0f);
GX_Position3f32(-1.0f,1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,1.0f);
GX_Position3f32(1.0f,-1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,0.0f);
GX_Position3f32(-1.0f,-1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,0.0f);
GX_Position3f32(-1.0f,-1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,1.0f);
GX_Position3f32(1.0f,-1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,1.0f);
GX_End();
a+=0.5f;

View file

@ -51,83 +51,83 @@ int main() {
GRRLIB_ObjectView(0,0,cubeZ, a,a*2,a*3,1,1,1);
GX_Begin(GX_QUADS, GX_VTXFMT0, 24);
GX_Position3f32(-1.0f,1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,0.0f);
GX_Position3f32(1.0f,1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,0.0f);
GX_Position3f32(1.0f,-1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,1.0f);
GX_Position3f32(-1.0f,-1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,1.0f);
GX_Position3f32(1.0f,1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,0.0f);
GX_Position3f32(-1.0f,1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,0.0f);
GX_Position3f32(-1.0f,-1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,1.0f);
GX_Position3f32(1.0f,-1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,1.0f);
GX_Position3f32(1.0f,1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,0.0f);
GX_Position3f32(1.0f,1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,0.0f);
GX_Position3f32(1.0f,-1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,1.0f);
GX_Position3f32(1.0f,-1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,1.0f);
GX_Position3f32(-1.0f,1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,0.0f);
GX_Position3f32(-1.0f,1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,0.0f);
GX_Position3f32(-1.0f,-1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,1.0f);
GX_Position3f32(-1.0f,-1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,1.0f);
GX_Position3f32(-1.0f,1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,0.0f);
GX_Position3f32(1.0f,1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,0.0f);
GX_Position3f32(1.0f,1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,1.0f);
GX_Position3f32(-1.0f,1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,1.0f);
GX_Position3f32(1.0f,-1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,0.0f);
GX_Position3f32(-1.0f,-1.0f,-1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,0.0f);
GX_Position3f32(-1.0f,-1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(1.0f,1.0f);
GX_Position3f32(1.0f,-1.0f,1.0f);
GX_Color1u32(0xFFFFFFFF);
GX_Color1u32(0xFFFFFFFF);
GX_TexCoord2f32(0.0f,1.0f);
GX_End();
GX_End();
GRRLIB_Screen2Texture(0,0,tex_screen,1);
a+=0.5f;