1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: tpl_ReadTexturePackage.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: 28630 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_TPL_CTR_TPL_READTEXTUREPACKAGE_H_ 17 #define NN_TPL_CTR_TPL_READTEXTUREPACKAGE_H_ 18 19 #include <nn/tpl/CTR/tpl_PackagerType.h> 20 21 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 26 27 namespace nn { namespace tpl { namespace CTR { 28 29 /* Please see man pages for details 30 31 32 33 34 */ 35 u16 GetTextureNum(const void* pTexPackage); 36 37 /* Please see man pages for details 38 39 40 41 42 43 44 45 */ 46 s16 GetTextureIndex(const void* pTexPackage, const char* texPath); 47 48 /* Please see man pages for details 49 50 51 52 53 54 55 56 57 58 59 60 */ 61 void* GetTexture(s32* mipLevel, u32* mipmapSize, const void* pTexPackage, const s16 texIndex); 62 63 /* Please see man pages for details 64 65 66 67 68 69 70 71 72 */ 73 bool GetTextureInfo(CtrTextureInfo* pTexInfo, const void* pTexPackage, const s16 texIndex); 74 75 /* Please see man pages for details 76 77 78 79 80 81 82 83 */ 84 bool CheckTexturePackageHeader(const void* pTexPackage); 85 86 87 }}} // namespace 88 89 90 #ifdef __cplusplus 91 } 92 #endif 93 94 #endif // NN_TPL_CTR_TPL_READTEXTUREPACKAGE_H_ 95