mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-24 15:52:20 +00:00
Add comments
This commit is contained in:
parent
7d08f7eed5
commit
3bb5817f33
1 changed files with 22 additions and 7 deletions
|
@ -28,14 +28,19 @@ THE SOFTWARE.
|
||||||
|
|
||||||
#include <grrlib.h>
|
#include <grrlib.h>
|
||||||
|
|
||||||
#define TPL_HDR_VERSION_FIELD 0
|
#define TPL_HDR_VERSION_FIELD 0 /**< Version field. */
|
||||||
#define TPL_HDR_NTEXTURE_FIELD 4
|
#define TPL_HDR_NTEXTURE_FIELD 4 /**< Textrure field. */
|
||||||
#define TPL_HDR_HDRSIZE_FIELD 8
|
#define TPL_HDR_HDRSIZE_FIELD 8 /**< Header size field. */
|
||||||
#define TPL_HDR_DESCR_FIELD 12
|
#define TPL_HDR_DESCR_FIELD 12 /**< Descriptor field. */
|
||||||
|
|
||||||
// texture header
|
/**
|
||||||
|
* Texture header.
|
||||||
|
*/
|
||||||
typedef struct _tplimgheader TPLImgHeader;
|
typedef struct _tplimgheader TPLImgHeader;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Texture header.
|
||||||
|
*/
|
||||||
struct _tplimgheader {
|
struct _tplimgheader {
|
||||||
u16 height;
|
u16 height;
|
||||||
u16 width;
|
u16 width;
|
||||||
|
@ -52,9 +57,14 @@ struct _tplimgheader {
|
||||||
u8 unpacked;
|
u8 unpacked;
|
||||||
} ATTRIBUTE_PACKED;
|
} ATTRIBUTE_PACKED;
|
||||||
|
|
||||||
// texture palette header
|
/**
|
||||||
|
* Texture palette header.
|
||||||
|
*/
|
||||||
typedef struct _tplpalheader TPLPalHeader;
|
typedef struct _tplpalheader TPLPalHeader;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Texture palette header.
|
||||||
|
*/
|
||||||
struct _tplpalheader {
|
struct _tplpalheader {
|
||||||
u16 nitems;
|
u16 nitems;
|
||||||
u8 unpacked;
|
u8 unpacked;
|
||||||
|
@ -63,9 +73,14 @@ struct _tplpalheader {
|
||||||
void *data;
|
void *data;
|
||||||
} ATTRIBUTE_PACKED;
|
} ATTRIBUTE_PACKED;
|
||||||
|
|
||||||
// texture descriptor
|
/**
|
||||||
|
* Texture descriptor.
|
||||||
|
*/
|
||||||
typedef struct _tpldesc TPLDescHeader;
|
typedef struct _tpldesc TPLDescHeader;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Texture descriptor.
|
||||||
|
*/
|
||||||
struct _tpldesc {
|
struct _tpldesc {
|
||||||
TPLImgHeader *imghead;
|
TPLImgHeader *imghead;
|
||||||
TPLPalHeader *palhead;
|
TPLPalHeader *palhead;
|
||||||
|
|
Loading…
Reference in a new issue