RetroArch
|
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <malloc.h>
#include <gcutil.h>
#include <gccore.h>
#include "tpl.h"
#include "processor.h"
Classes | |
struct | _tplimgheader |
struct | _tplpalheader |
struct | _tpldesc |
Macros | |
#define | TPL_FILE_TYPE_DISC 0 |
#define | TPL_FILE_TYPE_MEM 1 |
#define | TPL_HDR_VERSION_FIELD 0 |
#define | TPL_HDR_NTEXTURE_FIELD 4 |
#define | TPL_HDR_HDRSIZE_FIELD 8 |
#define | TPL_HDR_DESCR_FIELD 12 |
Typedefs | |
typedef struct _tplimgheader | TPLImgHeader |
typedef struct _tplpalheader | TPLPalHeader |
typedef struct _tpldesc | TPLDescHeader |
Functions | |
static u32 | TPL_GetTextureSize (u32 width, u32 height, u32 fmt) |
s32 | TPL_OpenTPLFromFile (TPLFile *tdf, const char *file_name) |
s32 | TPL_OpenTPLFromMemory (TPLFile *tdf, void *memory, u32 len) |
s32 | TPL_GetTextureInfo (TPLFile *tdf, s32 id, u32 *fmt, u16 *width, u16 *height) |
s32 | TPL_GetTexture (TPLFile *tdf, s32 id, GXTexObj *texObj) |
s32 | TPL_GetTextureCI (TPLFile *tdf, s32 id, GXTexObj *texObj, GXTlutObj *tlutObj, u8 tluts) |
void | TPL_CloseTPLFile (TPLFile *tdf) |
Variables | |
struct _tplimgheader | ATTRIBUTE_PACKED |
#define TPL_FILE_TYPE_DISC 0 |
#define TPL_FILE_TYPE_MEM 1 |
#define TPL_HDR_DESCR_FIELD 12 |
#define TPL_HDR_HDRSIZE_FIELD 8 |
#define TPL_HDR_NTEXTURE_FIELD 4 |
#define TPL_HDR_VERSION_FIELD 0 |
typedef struct _tpldesc TPLDescHeader |
typedef struct _tplimgheader TPLImgHeader |
typedef struct _tplpalheader TPLPalHeader |
struct _tpldesc ATTRIBUTE_PACKED |