1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: tpl_PackagerType.h 4 5 Copyright (C)2010 Nintendo Co., Ltd. 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 $Rev: 27835 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_TPL_CTR_TPL_PACKAGERTYPES_H_ 17 #define NN_TPL_CTR_TPL_PACKAGERTYPES_H_ 18 19 20 namespace nn { namespace tpl { namespace CTR { 21 22 // Maximum MipMap level 23 #define NN_TPL_MAX_MIPMAPLEVEL 8 // 1024×1024dot 24 25 /* Please see man pages for details 26 27 28 29 30 31 */ 32 enum CtrTexFormat 33 { 34 TEXFMT_RGBA8888 = 0, // 35 TEXFMT_RGB888 = 1, // 36 TEXFMT_RGBA5551 = 2, // 37 TEXFMT_RGB565 = 3, // 38 TEXFMT_RGBA4444 = 4, // 39 TEXFMT_LA88 = 5, // 40 TEXFMT_HL8 = 6, // 41 TEXFMT_L8 = 7, // 42 TEXFMT_A8 = 8, // 43 TEXFMT_LA44 = 9, // 44 TEXFMT_L4 = 10, // 45 TEXFMT_A4 = 11, // 46 TEXFMT_ETC1 = 12, // 47 TEXFMT_ETC1_A4 = 13, // 48 49 TEXFMT_SHADOW = 0x10, // 50 TEXFMT_GAS = 0x20, // 51 TEXFMT_REF = 0x30, // 52 53 TEXFMT_UNSUPPORT = 0xff, // 54 55 TEXFMT_ForceInt32 = 0x7fffffff 56 }; 57 58 /* Please see man pages for details 59 60 61 62 63 */ 64 struct CtrTextureInfo 65 { 66 unsigned int filePathOffset; // 67 unsigned int texDataSize; // 68 unsigned int texDataOffset; // 69 CtrTexFormat texFormat; // 70 unsigned short width; // 71 unsigned short height; // 72 unsigned char mipLevel; // 73 unsigned char type; // 74 unsigned short cubeDir; // 75 unsigned int bitmapSizeOffset; // 76 unsigned int srcFileTime; // 77 }; 78 79 #define CTR_TEXTURE_PACKAGE_VERSION 1 80 81 82 }}} // Namespace 83 84 85 #endif // ifndef NN_TPL_CTR_TPL_PACKAGERTYPES_H_ 86