mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-10 10:22:20 +00:00
[CHG] Doc improvement (again)
This commit is contained in:
parent
848a2c102f
commit
8770af329b
2 changed files with 8 additions and 8 deletions
|
@ -64,7 +64,7 @@ int GRRLIB_LoadFile(const char* filename, unsigned char* *data) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load a texture from a file.
|
* Load a texture from a file.
|
||||||
* @param filename The JPEG or PNG filename to load.
|
* @param filename The JPEG, PNG or Bitmap filename to load.
|
||||||
* @return A GRRLIB_texImg structure filled with image information.
|
* @return A GRRLIB_texImg structure filled with image information.
|
||||||
*/
|
*/
|
||||||
GRRLIB_texImg* GRRLIB_LoadTextureFromFile(const char *filename) {
|
GRRLIB_texImg* GRRLIB_LoadTextureFromFile(const char *filename) {
|
||||||
|
|
|
@ -238,21 +238,21 @@ void GRRLIB_DrawTile (const f32 xpos, const f32 ypos, const GRRLIB_texImg *tex,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Draw a part of a texture
|
* Draw a part of a texture.
|
||||||
* @param xpos Specifies the x-coordinate of the upper-left corner.
|
* @param xpos Specifies the x-coordinate of the upper-left corner.
|
||||||
* @param ypos Specifies the y-coordinate of the upper-left corner.
|
* @param ypos Specifies the y-coordinate of the upper-left corner.
|
||||||
* @param partx Specifies the x-coordinate of the upper-left corner in the Texture.
|
* @param partx Specifies the x-coordinate of the upper-left corner in the texture.
|
||||||
* @param party Specifies the y-coordinate of the upper-left corner in the Texture.
|
* @param party Specifies the y-coordinate of the upper-left corner in the texture.
|
||||||
* @param partw Specifies the width in the Texture.
|
* @param partw Specifies the width in the texture.
|
||||||
* @param parth Specifies the height in the Texture.
|
* @param parth Specifies the height in the texture.
|
||||||
* @param tex The texture containing the tile to draw.
|
* @param tex The texture containing the tile to draw.
|
||||||
* @param degrees Angle of rotation.
|
* @param degrees Angle of rotation.
|
||||||
* @param scaleX Specifies the x-coordinate scale. -1 could be used for flipping the texture horizontally.
|
* @param scaleX Specifies the x-coordinate scale. -1 could be used for flipping the texture horizontally.
|
||||||
* @param scaleY Specifies the y-coordinate scale. -1 could be used for flipping the texture vertically.
|
* @param scaleY Specifies the y-coordinate scale. -1 could be used for flipping the texture vertically.
|
||||||
* @param color Color in RGBA format.
|
* @param color Color in RGBA format.
|
||||||
* @param frame Specifies the frame to draw.
|
|
||||||
*/
|
*/
|
||||||
void GRRLIB_DrawPart (const f32 xpos, const f32 ypos, const f32 partx, const f32 party, const f32 partw, const f32 parth, const GRRLIB_texImg *tex,
|
void GRRLIB_DrawPart (const f32 xpos, const f32 ypos, const f32 partx, const f32 party,
|
||||||
|
const f32 partw, const f32 parth, const GRRLIB_texImg *tex,
|
||||||
const f32 degrees, const f32 scaleX, const f32 scaleY,
|
const f32 degrees, const f32 scaleX, const f32 scaleY,
|
||||||
const u32 color) {
|
const u32 color) {
|
||||||
GXTexObj texObj;
|
GXTexObj texObj;
|
||||||
|
|
Loading…
Reference in a new issue