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