From 3bb5817f33bd2ff3171291a3e3eb7644980f67ed Mon Sep 17 00:00:00 2001 From: Crayon2000 Date: Mon, 1 Apr 2024 17:10:00 -0400 Subject: [PATCH] Add comments --- GRRLIB/GRRLIB/GRRLIB_texEdit.c | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/GRRLIB/GRRLIB/GRRLIB_texEdit.c b/GRRLIB/GRRLIB/GRRLIB_texEdit.c index 2a5ce92..f22fe92 100644 --- a/GRRLIB/GRRLIB/GRRLIB_texEdit.c +++ b/GRRLIB/GRRLIB/GRRLIB_texEdit.c @@ -28,14 +28,19 @@ THE SOFTWARE. #include -#define TPL_HDR_VERSION_FIELD 0 -#define TPL_HDR_NTEXTURE_FIELD 4 -#define TPL_HDR_HDRSIZE_FIELD 8 -#define TPL_HDR_DESCR_FIELD 12 +#define TPL_HDR_VERSION_FIELD 0 /**< Version field. */ +#define TPL_HDR_NTEXTURE_FIELD 4 /**< Textrure field. */ +#define TPL_HDR_HDRSIZE_FIELD 8 /**< Header size field. */ +#define TPL_HDR_DESCR_FIELD 12 /**< Descriptor field. */ -// texture header +/** + * Texture header. + */ typedef struct _tplimgheader TPLImgHeader; +/** + * Texture header. + */ struct _tplimgheader { u16 height; u16 width; @@ -52,9 +57,14 @@ struct _tplimgheader { u8 unpacked; } ATTRIBUTE_PACKED; -// texture palette header +/** + * Texture palette header. + */ typedef struct _tplpalheader TPLPalHeader; +/** + * Texture palette header. + */ struct _tplpalheader { u16 nitems; u8 unpacked; @@ -63,9 +73,14 @@ struct _tplpalheader { void *data; } ATTRIBUTE_PACKED; -// texture descriptor +/** + * Texture descriptor. + */ typedef struct _tpldesc TPLDescHeader; +/** + * Texture descriptor. + */ struct _tpldesc { TPLImgHeader *imghead; TPLPalHeader *palhead;