1 /*---------------------------------------------------------------------*
2 Project:  tc library
3 File:     TCGXDefs.h
4 
5 Copyright 1998-2001 Nintendo.  All rights reserved.
6 
7 These coded instructions, statements and computer programs contain
8 proprietary information of Nintendo of America Inc. and/or Nintendo
9 Company Ltd., and are protected by Federal copyright law.  They may
10 not be disclosed to third parties or copied or duplicated in any form,
11 in whole or in part, without the prior written consent of Nintendo.
12 
13 Change History:
14 
15    $Log: TCGXDefs.h,v $
16    Revision 1.1  2006/02/17 09:02:16  mitu
17    1st version
18 
19 
20     3     4/11/01 3:04p John
21     Updated header copyrights and pathname.
22 
23     2     3/09/01 2:47p John
24     Added TPL_WRAP_MODE_NONE.  Added ability to specify wrapS and wrapT
25     mode using TCS script file.
26 
27     1     12/03/99 3:44p Ryan
28 
29   $NoKeywords: $
30 
31 -----------------------------------------------------------------------*/
32 
33 #ifndef __TCGXDEFS_H__
34 #define __TCGXDEFS_H__
35 
36 /********************************/
37 #include<dolphin/gx/gxEnum.h>
38 
39 /********************************/
40 // .tpl file image texel formats
41 // mapped to GX_TF formats from gxEnum.h
42 #define TPL_IMAGE_TEXEL_FMT_I4            GX_TF_I4
43 #define TPL_IMAGE_TEXEL_FMT_I8            GX_TF_I8
44 
45 #define TPL_IMAGE_TEXEL_FMT_IA4           GX_TF_IA4
46 #define TPL_IMAGE_TEXEL_FMT_IA8           GX_TF_IA8
47 
48 #define TPL_IMAGE_TEXEL_FMT_CI4           GX_TF_C4
49 #define TPL_IMAGE_TEXEL_FMT_CI8           GX_TF_C8
50 #define TPL_IMAGE_TEXEL_FMT_CI14_X2       GX_TF_C14X2
51 
52 #define TPL_IMAGE_TEXEL_FMT_R5G6B5        GX_TF_RGB565
53 
54 #define TPL_IMAGE_TEXEL_FMT_RGB5A3        GX_TF_RGB5A3
55 #define TPL_IMAGE_TEXEL_FMT_RGBA8         GX_TF_RGBA8
56 
57 #define TPL_IMAGE_TEXEL_FMT_CMP           GX_TF_CMPR
58 
59 
60 // wrap, clamp, mirror modes
61 #define TPL_WRAP_MODE_CLAMP			      GX_CLAMP
62 #define TPL_WRAP_MODE_REPEAT              GX_REPEAT
63 #define TPL_WRAP_MODE_MIRROR              GX_MIRROR
64 #define TPL_WRAP_MODE_NONE                GX_MAX_TEXWRAPMODE
65 
66 // filtering modes
67 #define TPL_TEX_FILTER_NEAR               GX_NEAR
68 #define TPL_TEX_FILTER_LINEAR             GX_LINEAR
69 #define TPL_TEX_FILTER_NEAR_MIP_NEAR      GX_NEAR_MIP_NEAR
70 #define TPL_TEX_FILTER_LIN_MIP_NEAR       GX_LIN_MIP_NEAR
71 #define TPL_TEX_FILTER_NEAR_MIP_LIN       GX_NEAR_MIP_LIN
72 #define TPL_TEX_FILTER_LIN_MIP_LIN        GX_LIN_MIP_LIN
73 
74 // possible .tpl palette entry formats
75 #define TPL_PALETTE_ENTRY_FMT_R5G6B5       GX_TL_RGB565
76 #define TPL_PALETTE_ENTRY_FMT_RGB5A3       GX_TL_RGB5A3
77 
78 /********************************/
79 
80 #endif  // __TCGXDEFS_H__
81