[CHG] Cleanup (part 2)

This commit is contained in:
Crayon2000 2009-12-07 02:15:48 +00:00
parent 73e5367e4b
commit b00ef0f50f
3 changed files with 17 additions and 12 deletions

View file

@ -1,7 +1,7 @@
#include <grrlib.h>
/**
* Set the BackGround Parameter when screen is cleared.
* Set the background parameter when screen is cleared.
* @param r Red component.
* @param g Green component.
* @param b Blue component.
@ -48,7 +48,7 @@ void GRRLIB_camera3dSettings(f32 posx, f32 posy, f32 posz,
/**
* Set up the position matrix (contributed my chris_c aka DaShAmAn).
* @param miniDist Minimal distance for the cam.
* @param minDist Minimal distance for the cam.
* @param maxDist Maximal distance for the cam.
* @param fov Field of view for the cam.
* @param texturemode False, GX won't need TexCoord, True, GX will need TexCoord.

View file

@ -4,11 +4,12 @@
bool geckoinit = false;
bool GRRLIB_GeckoInit()
{
/**
* Initialize Gecko.
*/
bool GRRLIB_GeckoInit() {
u32 geckoattached = usb_isgeckoalive(EXI_CHANNEL_1);
if (geckoattached)
{
if (geckoattached) {
usb_flush(EXI_CHANNEL_1);
geckoinit = true;
return true;
@ -16,6 +17,11 @@ bool GRRLIB_GeckoInit()
else return false;
}
/**
* Print Gecko.
* @param text Text to print.
* @param ... Optional arguments.
*/
void GRRLIB_GeckoPrintf (const char *text, ...) {
int size;
char tmp[1024];
@ -29,4 +35,3 @@ void GRRLIB_GeckoPrintf (const char *text, ...) {
usb_sendbuffer_safe(1, tmp,size);
}