mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-22 15:02:20 +00:00
[CHG] Typos in comments
This commit is contained in:
parent
3a88515815
commit
ad300e55d8
6 changed files with 17 additions and 19 deletions
|
@ -231,11 +231,11 @@ void GRRLIB_BMFX_Pixelate (const GRRLIB_texImg *texsrc,
|
||||||
for (x = 0; x < texsrc->w - 1 - factor; x += factor) {
|
for (x = 0; x < texsrc->w - 1 - factor; x += factor) {
|
||||||
for (y = 0; y < texsrc->h - 1 - factor; y +=factor) {
|
for (y = 0; y < texsrc->h - 1 - factor; y +=factor) {
|
||||||
rgb = GRRLIB_GetPixelFromtexImg(x, y, texsrc);
|
rgb = GRRLIB_GetPixelFromtexImg(x, y, texsrc);
|
||||||
for (xx = x; xx < x + factor; xx++) {
|
for (xx = x; xx < x + factor; xx++) {
|
||||||
for (yy = y; yy < y + factor; yy++) {
|
for (yy = y; yy < y + factor; yy++) {
|
||||||
GRRLIB_SetPixelTotexImg(xx, yy, texdest, rgb);
|
GRRLIB_SetPixelTotexImg(xx, yy, texdest, rgb);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -278,7 +278,7 @@ GRRLIB_texImg* GRRLIB_LoadTextureBMP (const u8 *my_bmp) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load a texture from a buffer.
|
* Load a texture from a buffer.
|
||||||
* Take care to have the JPG finnish with 0xFF 0xD9!
|
* Take care to have the JPG finish with 0xFF 0xD9!
|
||||||
* @param my_jpg The JPEG buffer to load.
|
* @param my_jpg The JPEG buffer to load.
|
||||||
* @return A GRRLIB_texImg structure filled with image information.
|
* @return A GRRLIB_texImg structure filled with image information.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -89,7 +89,7 @@ GRRLIB_texImg* GRRLIB_LoadTextureFromFile (const char* filename);
|
||||||
bool GRRLIB_ScrShot (const char* filename);
|
bool GRRLIB_ScrShot (const char* filename);
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// GRRLIB_print.c - Will someome please tell me what these are :)
|
// GRRLIB_print.c - Will someone please tell me what these are :)
|
||||||
void GRRLIB_Printf (const f32 xpos, const f32 ypos,
|
void GRRLIB_Printf (const f32 xpos, const f32 ypos,
|
||||||
const GRRLIB_texImg *tex, const u32 color,
|
const GRRLIB_texImg *tex, const u32 color,
|
||||||
const f32 zoom, const char *text, ...);
|
const f32 zoom, const char *text, ...);
|
||||||
|
|
|
@ -39,7 +39,7 @@ void GRRLIB_GXEngine (const guVector v[], const u32 color[], const long n,
|
||||||
|
|
||||||
GX_Begin(fmt, GX_VTXFMT0, n);
|
GX_Begin(fmt, GX_VTXFMT0, n);
|
||||||
for (i = 0; i < n; i++) {
|
for (i = 0; i < n; i++) {
|
||||||
GX_Position3f32(v[i].x, v[i].y, v[i].z);
|
GX_Position3f32(v[i].x, v[i].y, v[i].z);
|
||||||
GX_Color1u32(color[i]);
|
GX_Color1u32(color[i]);
|
||||||
}
|
}
|
||||||
GX_End();
|
GX_End();
|
||||||
|
|
|
@ -82,33 +82,32 @@ INLINE
|
||||||
void GRRLIB_Rectangle (const f32 x, const f32 y,
|
void GRRLIB_Rectangle (const f32 x, const f32 y,
|
||||||
const f32 width, const f32 height,
|
const f32 width, const f32 height,
|
||||||
const u32 color, const u8 filled) {
|
const u32 color, const u8 filled) {
|
||||||
|
|
||||||
f32 x2 = x + width;
|
f32 x2 = x + width;
|
||||||
f32 y2 = y + height;
|
f32 y2 = y + height;
|
||||||
|
|
||||||
if (filled) {
|
if (filled) {
|
||||||
GX_Begin(GX_QUADS, GX_VTXFMT0, 4);
|
GX_Begin(GX_QUADS, GX_VTXFMT0, 4);
|
||||||
GX_Position3f32(x,y,0.0f);
|
GX_Position3f32(x, y, 0.0f);
|
||||||
GX_Color1u32(color);
|
GX_Color1u32(color);
|
||||||
GX_Position3f32(x2,y,0.0f);
|
GX_Position3f32(x2, y, 0.0f);
|
||||||
GX_Color1u32(color);
|
GX_Color1u32(color);
|
||||||
GX_Position3f32(x2,y2,0.0f);
|
GX_Position3f32(x2, y2, 0.0f);
|
||||||
GX_Color1u32(color);
|
GX_Color1u32(color);
|
||||||
GX_Position3f32(x,y2,0.0f);
|
GX_Position3f32(x, y2, 0.0f);
|
||||||
GX_Color1u32(color);
|
GX_Color1u32(color);
|
||||||
GX_End();
|
GX_End();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
GX_Begin(GX_LINESTRIP, GX_VTXFMT0, 5);
|
GX_Begin(GX_LINESTRIP, GX_VTXFMT0, 5);
|
||||||
GX_Position3f32(x,y,0.0f);
|
GX_Position3f32(x, y, 0.0f);
|
||||||
GX_Color1u32(color);
|
GX_Color1u32(color);
|
||||||
GX_Position3f32(x2,y,0.0f);
|
GX_Position3f32(x2, y, 0.0f);
|
||||||
GX_Color1u32(color);
|
GX_Color1u32(color);
|
||||||
GX_Position3f32(x2,y2,0.0f);
|
GX_Position3f32(x2, y2, 0.0f);
|
||||||
GX_Color1u32(color);
|
GX_Color1u32(color);
|
||||||
GX_Position3f32(x,y2,0.0f);
|
GX_Position3f32(x, y2, 0.0f);
|
||||||
GX_Color1u32(color);
|
GX_Color1u32(color);
|
||||||
GX_Position3f32(x,y,0.0f);
|
GX_Position3f32(x, y, 0.0f);
|
||||||
GX_Color1u32(color);
|
GX_Color1u32(color);
|
||||||
GX_End();
|
GX_End();
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,8 +82,7 @@ void GRRLIB_FreeTexture (GRRLIB_texImg *tex) {
|
||||||
* @param tex Texture to clear.
|
* @param tex Texture to clear.
|
||||||
*/
|
*/
|
||||||
INLINE
|
INLINE
|
||||||
void GRRLIB_ClearTex(GRRLIB_texImg* tex)
|
void GRRLIB_ClearTex(GRRLIB_texImg* tex) {
|
||||||
{
|
|
||||||
bzero(tex->data, (tex->h * tex->w) << 2);
|
bzero(tex->data, (tex->h * tex->w) << 2);
|
||||||
GRRLIB_FlushTex(tex);
|
GRRLIB_FlushTex(tex);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue