mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-10 10:22:20 +00:00
[CHG] Doc improvement
This commit is contained in:
parent
8f2e7413e5
commit
49ffb512b5
2 changed files with 18 additions and 20 deletions
|
@ -111,7 +111,7 @@ void GRRLIB_InitTileSet (GRRLIB_texImg *tex,
|
||||||
tex->nbtileh = tex->h / tileh;
|
tex->nbtileh = tex->h / tileh;
|
||||||
tex->tilestart = tilestart;
|
tex->tilestart = tilestart;
|
||||||
tex->tiledtex = true;
|
tex->tiledtex = true;
|
||||||
tex->ofnormaltexx = 1.0F/tex->nbtilew;
|
tex->ofnormaltexx = 1.0F / tex->nbtilew;
|
||||||
tex->ofnormaltexy = 1.0F/tex->nbtileh;
|
tex->ofnormaltexy = 1.0F / tex->nbtileh;
|
||||||
GRRLIB_SetHandle( tex, 0, 0 );
|
GRRLIB_SetHandle( tex, 0, 0 );
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,22 +102,21 @@ typedef struct GRRLIB_drawSettings {
|
||||||
* Structure to hold the texture information.
|
* Structure to hold the texture information.
|
||||||
*/
|
*/
|
||||||
typedef struct GRRLIB_texImg {
|
typedef struct GRRLIB_texImg {
|
||||||
uint w; /**< Texture Width. */
|
uint w; /**< Texture width. */
|
||||||
uint h; /**< Texture Height. */
|
uint h; /**< Texture height. */
|
||||||
int handlex; /**< Texture Handle x. */
|
int handlex; /**< Texture handle x. */
|
||||||
int handley; /**< Texture Handle y. */
|
int handley; /**< Texture handle y. */
|
||||||
int offsetx; /**< Texture Offset x. */
|
int offsetx; /**< Texture offset x. */
|
||||||
int offsety; /**< Texture Offset y. */
|
int offsety; /**< Texture offset y. */
|
||||||
|
|
||||||
bool tiledtex; /**< true => Texture is tiled. */
|
bool tiledtex; /**< Texture is tiled if set to true. */
|
||||||
uint tilew; /**< Width of one tile. */
|
uint tilew; /**< Width of one tile. */
|
||||||
uint tileh; /**< Height of one tile. */
|
uint tileh; /**< Height of one tile. */
|
||||||
uint nbtilew; /**< Number of tiles for the x axis. */
|
uint nbtilew; /**< Number of tiles for the x axis. */
|
||||||
uint nbtileh; /**< Number of tiles for the y axis. */
|
uint nbtileh; /**< Number of tiles for the y axis. */
|
||||||
uint tilestart; /**< Offset to tile starting position. */
|
uint tilestart; /**< Offset to tile starting position. */
|
||||||
f32 ofnormaltexx; /**< Offset of normalized texture on x */
|
f32 ofnormaltexx;/**< Offset of normalized texture on x. */
|
||||||
f32 ofnormaltexy; /**< Offset of normalized texture on y */
|
f32 ofnormaltexy;/**< Offset of normalized texture on y. */
|
||||||
|
|
||||||
|
|
||||||
void *data; /**< Pointer to the texture data. */
|
void *data; /**< Pointer to the texture data. */
|
||||||
} GRRLIB_texImg;
|
} GRRLIB_texImg;
|
||||||
|
@ -140,8 +139,7 @@ typedef struct GRRLIB_bytemapChar {
|
||||||
/**
|
/**
|
||||||
* Structure to hold the bytemap font information.
|
* Structure to hold the bytemap font information.
|
||||||
*/
|
*/
|
||||||
typedef
|
typedef struct GRRLIB_bytemapFont {
|
||||||
struct GRRLIB_bytemapFont {
|
|
||||||
char *name; /**< Font name. */
|
char *name; /**< Font name. */
|
||||||
u32 *palette; /**< Font palette. */
|
u32 *palette; /**< Font palette. */
|
||||||
u16 nbChar; /**< Number of characters in font. */
|
u16 nbChar; /**< Number of characters in font. */
|
||||||
|
|
Loading…
Reference in a new issue