mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-22 15:02:20 +00:00
[CHG] Fixed some typographical errors.
This commit is contained in:
parent
6d65703f74
commit
78a213bd19
5 changed files with 15 additions and 15 deletions
|
@ -401,8 +401,8 @@ void GRRLIB_DrawTorus(f32 r, f32 R, int nsides, int rings, bool filled, u32 col)
|
|||
/**
|
||||
* Draw a sphere (with normal).
|
||||
* @param r Radius of the sphere.
|
||||
* @param lats Number of lattitudes.
|
||||
* @param longs Number of longitutes.
|
||||
* @param lats Number of latitude.
|
||||
* @param longs Number of longitudes.
|
||||
* @param filled Wired or not.
|
||||
* @param col Color of the sphere.
|
||||
*/
|
||||
|
@ -501,7 +501,7 @@ void GRRLIB_DrawCube(f32 size, bool filled, u32 col) {
|
|||
* Draw a cylinder (with normal).
|
||||
* @param r Radius of the cylinder.
|
||||
* @param h High of the cylinder.
|
||||
* @param d Dencity of slice.
|
||||
* @param d Density of slice.
|
||||
* @param filled Wired or not.
|
||||
* @param col Color of the cylinder.
|
||||
*/
|
||||
|
@ -552,7 +552,7 @@ void GRRLIB_DrawCylinder(f32 r, f32 h, int d, bool filled, u32 col) {
|
|||
* Draw a cone (with normal).
|
||||
* @param r Radius of the cone.
|
||||
* @param h High of the cone.
|
||||
* @param d Dencity of slice.
|
||||
* @param d Density of slice.
|
||||
* @param filled Wired or not.
|
||||
* @param col Color of the cone.
|
||||
*/
|
||||
|
@ -588,10 +588,10 @@ void GRRLIB_DrawCone(f32 r, f32 h, int d, bool filled, u32 col) {
|
|||
}
|
||||
|
||||
/**
|
||||
* Draw a Tesselated pannel (with normal).
|
||||
* Draw a Tesselated panel (with normal).
|
||||
* @param w Width of the panel.
|
||||
* @param wstep Size of width slices.
|
||||
* @param h Height of the pannel.
|
||||
* @param h Height of the panel.
|
||||
* @param hstep Size the de height slices.
|
||||
* @param filled Wired or not.
|
||||
* @param col Color in RGBA format.
|
||||
|
@ -621,7 +621,7 @@ void GRRLIB_DrawTessPanel(f32 w, f32 wstep, f32 h, f32 hstep, bool filled, u32 c
|
|||
|
||||
/**
|
||||
* Set ambient color.
|
||||
* When no diffuse ligth is shinig on a object, the color is equal to ambient color.
|
||||
* When no diffuse light is shining on a object, the color is equal to ambient color.
|
||||
* @param ambientcolor Ambient color in RGBA format.
|
||||
*/
|
||||
void GRRLIB_SetLightAmbient(u32 ambientcolor) {
|
||||
|
|
|
@ -41,7 +41,7 @@ static bool is_setup = false; // To control entry and exit
|
|||
|
||||
/**
|
||||
* Initialize GRRLIB. Call this once at the beginning your code.
|
||||
* @return A integer representating a code:
|
||||
* @return A integer representing a code:
|
||||
* - 0 : The operation completed successfully.
|
||||
* - -1 : Not enough memory is available to initialize GRRLIB.
|
||||
* - -2 : Failed to add the fat device driver to the devoptab.
|
||||
|
|
|
@ -29,7 +29,7 @@ THE SOFTWARE.
|
|||
* @param data Pointer-to-your-pointer.
|
||||
* Ie. { u8 *data; GRRLIB_LoadFile("file", &data); }.
|
||||
* It is your responsibility to free the memory allocated by this function.
|
||||
* @return A integer representating a code:
|
||||
* @return A integer representing a code:
|
||||
* - 0 : EmptyFile.
|
||||
* - -1 : FileNotFound.
|
||||
* - -2 : OutOfMemory.
|
||||
|
|
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
|||
*/
|
||||
/**
|
||||
* @defgroup AllFunc Everything in GRRLIB
|
||||
* This is the complete list of funtions, structures, defines, typedefs, enumerations and variables you may want to used to make your homebrew with GRRLIB.
|
||||
* This is the complete list of functions, structures, defines, typedefs, enumerations and variables you may want to used to make your homebrew with GRRLIB.
|
||||
* You simply need to include grrlib.h in your project to have access to all of these.
|
||||
* @{
|
||||
*/
|
||||
|
@ -60,10 +60,10 @@ typedef unsigned int uint;/**< The uint keyword signifies an integral type. */
|
|||
//==============================================================================
|
||||
// Primitive colour macros
|
||||
//==============================================================================
|
||||
#define R(c) (((c) >>24) &0xFF) /**< Exract Red component of colour. */
|
||||
#define G(c) (((c) >>16) &0xFF) /**< Exract Green component of colour. */
|
||||
#define B(c) (((c) >> 8) &0xFF) /**< Exract Blue component of colour. */
|
||||
#define A(c) ( (c) &0xFF) /**< Exract Alpha component of colour. */
|
||||
#define R(c) (((c) >>24) &0xFF) /**< Extract Red component of colour. */
|
||||
#define G(c) (((c) >>16) &0xFF) /**< Extract Green component of colour. */
|
||||
#define B(c) (((c) >> 8) &0xFF) /**< Extract Blue component of colour. */
|
||||
#define A(c) ( (c) &0xFF) /**< Extract Alpha component of colour. */
|
||||
|
||||
/**
|
||||
* Build an RGB pixel from components.
|
||||
|
|
|
@ -28,7 +28,7 @@ THE SOFTWARE.
|
|||
#ifndef GX_BM_SUBTRACT
|
||||
/**
|
||||
* Blending type.
|
||||
* libogc revision 4170 fixed a typo. GX_BM_SUBSTRACT was renamed GX_BM_SUBTRACT.
|
||||
* libogc revision 4170 fixed a typographical error. GX_BM_SUBSTRACT was renamed GX_BM_SUBTRACT.
|
||||
* But for previous versions this define is needed.
|
||||
*/
|
||||
#define GX_BM_SUBTRACT GX_BM_SUBSTRACT
|
||||
|
|
Loading…
Reference in a new issue