From 957e2fe2c09f449e1e6d84a3ba7ab05f0aa4fedb Mon Sep 17 00:00:00 2001 From: Crayon2000 Date: Sat, 1 May 2010 18:02:42 +0000 Subject: [PATCH] Added some getter functions to GRRMOD --- GRRLIB/GRRLIB/GRRLIB_3D.c | 7 +-- examples/3D_Light3/source/main.c | 79 ++++++++++++++++---------------- 2 files changed, 41 insertions(+), 45 deletions(-) diff --git a/GRRLIB/GRRLIB/GRRLIB_3D.c b/GRRLIB/GRRLIB/GRRLIB_3D.c index 5d8b6ad..efc5e5b 100644 --- a/GRRLIB/GRRLIB/GRRLIB_3D.c +++ b/GRRLIB/GRRLIB/GRRLIB_3D.c @@ -502,8 +502,6 @@ void GRRLIB_DrawCube(f32 size, bool filled, u32 col) { * @param r Radius of the cylinder. * @param h High of the cylinder. * @param d Dencity of slice. - * @param cap1 Draw the upper Cap. - * @param cap2 Draw the under Cap. * @param filled Wired or not. * @param col Color of the cylinder. */ @@ -555,7 +553,6 @@ void GRRLIB_DrawCylinder(f32 r, f32 h, int d, bool filled, u32 col) { * @param r Radius of the cone. * @param h High of the cone. * @param d Dencity of slice. - * @param cap Draw the under cap or not. * @param filled Wired or not. * @param col Color of the cone. */ @@ -645,7 +642,7 @@ void GRRLIB_SetLightSpec(u8 num, guVector dir, f32 shy, u32 lightcolor, u32 spec guVecMultiplySR(mv, &ldir,&ldir); GX_InitSpecularDirv(&MyLight, &ldir); - GX_InitLightShininess(&MyLight, shy); // entre 4 et 255 !!! + GX_InitLightShininess(&MyLight, shy); // between 4 and 255 !!! GX_InitLightColor(&MyLight, (GXColor) { R(lightcolor), G(lightcolor), B(lightcolor), 0xFF }); GX_LoadLightObj(&MyLight, (1<