RetroArch
tpl.h
Go to the documentation of this file.
1 #ifndef __TPL_H__
2 #define __TPL_H__
3 
4 #include "gx.h"
5 
6 #ifdef __cplusplus
7  extern "C" {
8 #endif /* __cplusplus */
9 
10 typedef void* FHANDLE;
11 
12 // tdf file
13 typedef struct _tplfile {
14  int type;
15  int ntextures;
16  void *texdesc;
18 } TPLFile;
19 
20 s32 TPL_OpenTPLFromFile(TPLFile* tdf, const char* file_name);
21 s32 TPL_OpenTPLFromMemory(TPLFile* tdf, void *memory,u32 len);
22 s32 TPL_GetTexture(TPLFile *tdf,s32 id,GXTexObj *texObj);
23 s32 TPL_GetTextureCI(TPLFile *tdf,s32 id,GXTexObj *texObj,GXTlutObj *tlutObj,u8 tluts);
25 void TPL_CloseTPLFile(TPLFile *tdf);
26 
27 #ifdef __cplusplus
28  }
29 #endif /* __cplusplus */
30 
31 #endif
#define file_name
Definition: ps3_defines.h:291
int32_t s32
32bit signed integer
Definition: gctypes.h:24
void * FHANDLE
Definition: tpl.h:10
Definition: gx.h:1233
GLenum GLsizei len
Definition: glext.h:7389
Definition: gx.h:1219
void TPL_CloseTPLFile(TPLFile *tdf)
Definition: tpl.c:311
FHANDLE tpl_file
Definition: tpl.h:17
s32 TPL_OpenTPLFromMemory(TPLFile *tdf, void *memory, u32 len)
Definition: tpl.c:147
GX subsystem.
Definition: tpl.h:13
s32 TPL_GetTextureCI(TPLFile *tdf, s32 id, GXTexObj *texObj, GXTlutObj *tlutObj, u8 tluts)
Definition: tpl.c:252
int type
Definition: tpl.h:14
uint16_t u16
16bit unsigned integer
Definition: gctypes.h:18
s32 TPL_GetTextureInfo(TPLFile *tdf, s32 id, u32 *fmt, u16 *width, u16 *height)
Definition: tpl.c:189
s32 TPL_OpenTPLFromFile(TPLFile *tdf, const char *file_name)
Definition: tpl.c:86
int ntextures
Definition: tpl.h:15
s32 TPL_GetTexture(TPLFile *tdf, s32 id, GXTexObj *texObj)
Definition: tpl.c:210
GLint GLint GLsizei width
Definition: glext.h:6293
void * texdesc
Definition: tpl.h:16
uint8_t u8
8bit unsigned integer
Definition: gctypes.h:17
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19
struct _tplfile TPLFile
GLint GLint GLsizei GLsizei height
Definition: glext.h:6293