mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-26 08:42:19 +00:00
[CHG] Fixed some doxygen comments
This commit is contained in:
parent
e27b278a05
commit
ab964e34db
2 changed files with 26 additions and 23 deletions
|
@ -22,16 +22,16 @@ u32 fb = 0;
|
||||||
static void *xfb[2] = {NULL, NULL};
|
static void *xfb[2] = {NULL, NULL};
|
||||||
GXRModeObj *rmode;
|
GXRModeObj *rmode;
|
||||||
void *gp_fifo = NULL;
|
void *gp_fifo = NULL;
|
||||||
|
static GRRLIB_drawSettings GRRLIB_Settings;
|
||||||
|
|
||||||
static void RawTo4x4RGBA(const unsigned char *src, void *dst, const unsigned int width, const unsigned int height);
|
static void RawTo4x4RGBA(const unsigned char *src, void *dst, const unsigned int width, const unsigned int height);
|
||||||
static GRRLIB_drawSettings GRRLIB_Settings;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Turn AntiAliasing on/off
|
* Turn AntiAliasing on/off.
|
||||||
* @param aa Set to true to enable AntiAliasing. (Default: Enabled)
|
* @param aa Set to true to enable AntiAliasing. (Default: Enabled)
|
||||||
*/
|
*/
|
||||||
void GRRLIB_SetAntiAliasing( bool aa ) {
|
void GRRLIB_SetAntiAliasing(bool aa) {
|
||||||
GRRLIB_Settings.antialias = aa;
|
GRRLIB_Settings.antialias = aa;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -194,7 +194,6 @@ static void RawTo4x4RGBA(const unsigned char *src, void *dst, const unsigned int
|
||||||
} /* block */
|
} /* block */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize a tile set.
|
* Initialize a tile set.
|
||||||
* @param tex The texture to initialize.
|
* @param tex The texture to initialize.
|
||||||
|
@ -462,7 +461,9 @@ inline void GRRLIB_DrawImg(f32 xpos, f32 ypos, GRRLIB_texImg tex, float degrees,
|
||||||
Mtx m, m1, m2, mv;
|
Mtx m, m1, m2, mv;
|
||||||
|
|
||||||
GX_InitTexObj(&texObj, tex.data, tex.w, tex.h, GX_TF_RGBA8, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
GX_InitTexObj(&texObj, tex.data, tex.w, tex.h, GX_TF_RGBA8, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
||||||
if (GRRLIB_Settings.antialias == false) { GX_InitTexObjLOD(&texObj, GX_NEAR, GX_NEAR, 0.0f, 0.0f, 0.0f, 0, 0, GX_ANISO_1); }
|
if (GRRLIB_Settings.antialias == false) {
|
||||||
|
GX_InitTexObjLOD(&texObj, GX_NEAR, GX_NEAR, 0.0f, 0.0f, 0.0f, 0, 0, GX_ANISO_1);
|
||||||
|
}
|
||||||
GX_LoadTexObj(&texObj, GX_TEXMAP0);
|
GX_LoadTexObj(&texObj, GX_TEXMAP0);
|
||||||
|
|
||||||
GX_SetTevOp(GX_TEVSTAGE0, GX_MODULATE);
|
GX_SetTevOp(GX_TEVSTAGE0, GX_MODULATE);
|
||||||
|
@ -527,7 +528,9 @@ inline void GRRLIB_DrawTile(f32 xpos, f32 ypos, GRRLIB_texImg tex, float degrees
|
||||||
f32 t2 = (((int)(frame/tex.nbtilew)+1)/(f32)tex.nbtileh)-(FRAME_CORR/tex.h);
|
f32 t2 = (((int)(frame/tex.nbtilew)+1)/(f32)tex.nbtileh)-(FRAME_CORR/tex.h);
|
||||||
|
|
||||||
GX_InitTexObj(&texObj, tex.data, tex.tilew*tex.nbtilew, tex.tileh*tex.nbtileh, GX_TF_RGBA8, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
GX_InitTexObj(&texObj, tex.data, tex.tilew*tex.nbtilew, tex.tileh*tex.nbtileh, GX_TF_RGBA8, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
||||||
if (GRRLIB_Settings.antialias == false) { GX_InitTexObjLOD(&texObj, GX_NEAR, GX_NEAR, 0.0f, 0.0f, 0.0f, 0, 0, GX_ANISO_1); }
|
if (GRRLIB_Settings.antialias == false) {
|
||||||
|
GX_InitTexObjLOD(&texObj, GX_NEAR, GX_NEAR, 0.0f, 0.0f, 0.0f, 0, 0, GX_ANISO_1);
|
||||||
|
}
|
||||||
GX_LoadTexObj(&texObj, GX_TEXMAP0);
|
GX_LoadTexObj(&texObj, GX_TEXMAP0);
|
||||||
|
|
||||||
GX_SetTevOp(GX_TEVSTAGE0, GX_MODULATE);
|
GX_SetTevOp(GX_TEVSTAGE0, GX_MODULATE);
|
||||||
|
@ -669,7 +672,7 @@ void GRRLIB_ClipReset() {
|
||||||
* @param x The handle's x-coordinate.
|
* @param x The handle's x-coordinate.
|
||||||
* @param y The handle's y-coordinate.
|
* @param y The handle's y-coordinate.
|
||||||
*/
|
*/
|
||||||
void GRRLIB_SetHandle( GRRLIB_texImg * tex, int x, int y ) {
|
void GRRLIB_SetHandle(GRRLIB_texImg * tex, int x, int y) {
|
||||||
if (tex->tilew) {
|
if (tex->tilew) {
|
||||||
tex->handlex = -(tex->tilew/2) + x;
|
tex->handlex = -(tex->tilew/2) + x;
|
||||||
tex->handley = -(tex->tileh/2) + y;
|
tex->handley = -(tex->tileh/2) + y;
|
||||||
|
@ -685,7 +688,7 @@ void GRRLIB_SetHandle( GRRLIB_texImg * tex, int x, int y ) {
|
||||||
* Center a texture's handles. (e.g. for rotation)
|
* Center a texture's handles. (e.g. for rotation)
|
||||||
* @param tex The texture to center.
|
* @param tex The texture to center.
|
||||||
*/
|
*/
|
||||||
void GRRLIB_SetMidHandle( GRRLIB_texImg * tex ) {
|
void GRRLIB_SetMidHandle(GRRLIB_texImg * tex) {
|
||||||
tex->handlex = 0;
|
tex->handlex = 0;
|
||||||
tex->handley = 0;
|
tex->handley = 0;
|
||||||
tex->offsetx = 0;
|
tex->offsetx = 0;
|
||||||
|
@ -820,7 +823,7 @@ void GRRLIB_BMFX_FlipV(GRRLIB_texImg texsrc, GRRLIB_texImg texdest) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A texture effect. (Blur)
|
* A texture effect (Blur).
|
||||||
* @see GRRLIB_FlushTex
|
* @see GRRLIB_FlushTex
|
||||||
* @param texsrc The texture source.
|
* @param texsrc The texture source.
|
||||||
* @param texdest The texture destination.
|
* @param texdest The texture destination.
|
||||||
|
@ -875,7 +878,7 @@ void GRRLIB_BMFX_Blur(GRRLIB_texImg texsrc, GRRLIB_texImg texdest, int factor) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A texture effect. (Pixelate)
|
* A texture effect (Pixelate).
|
||||||
* @see GRRLIB_FlushTex
|
* @see GRRLIB_FlushTex
|
||||||
* @param texsrc The texture source.
|
* @param texsrc The texture source.
|
||||||
* @param texdest The texture destination.
|
* @param texdest The texture destination.
|
||||||
|
@ -899,7 +902,7 @@ void GRRLIB_BMFX_Pixelate(GRRLIB_texImg texsrc, GRRLIB_texImg texdest, int facto
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A texture effect. (Scatter)
|
* A texture effect (Scatter).
|
||||||
* @see GRRLIB_FlushTex
|
* @see GRRLIB_FlushTex
|
||||||
* @param texsrc The texture source.
|
* @param texsrc The texture source.
|
||||||
* @param texdest The texture destination.
|
* @param texdest The texture destination.
|
||||||
|
|
|
@ -73,7 +73,7 @@ typedef struct GRRLIB_bytemapFont {
|
||||||
|
|
||||||
extern Mtx GXmodelView2D;
|
extern Mtx GXmodelView2D;
|
||||||
|
|
||||||
void GRRLIB_SetAntiAliasing( bool aa );
|
void GRRLIB_SetAntiAliasing(bool aa);
|
||||||
|
|
||||||
inline void GRRLIB_FillScreen(u32 color);
|
inline void GRRLIB_FillScreen(u32 color);
|
||||||
|
|
||||||
|
@ -110,8 +110,8 @@ bool GRRLIB_RectOnRect(int rect1x, int rect1y, int rect1w, int rect1h, int rect2
|
||||||
void GRRLIB_ClipDrawing( int x, int y, int width, int height );
|
void GRRLIB_ClipDrawing( int x, int y, int width, int height );
|
||||||
void GRRLIB_ClipReset();
|
void GRRLIB_ClipReset();
|
||||||
|
|
||||||
void GRRLIB_SetHandle( GRRLIB_texImg * tex, int x, int y );
|
void GRRLIB_SetHandle(GRRLIB_texImg * tex, int x, int y);
|
||||||
void GRRLIB_SetMidHandle( GRRLIB_texImg * tex );
|
void GRRLIB_SetMidHandle(GRRLIB_texImg * tex);
|
||||||
|
|
||||||
u32 GRRLIB_GetPixelFromtexImg(int x, int y, GRRLIB_texImg tex);
|
u32 GRRLIB_GetPixelFromtexImg(int x, int y, GRRLIB_texImg tex);
|
||||||
void GRRLIB_SetPixelTotexImg(int x, int y, GRRLIB_texImg tex, u32 color);
|
void GRRLIB_SetPixelTotexImg(int x, int y, GRRLIB_texImg tex, u32 color);
|
||||||
|
|
Loading…
Reference in a new issue