1 /*---------------------------------------------------------------------* 2 Project: tc library 3 File: TCTextureList.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: TCTextureList.h,v $ 16 Revision 1.1 2006/02/17 09:02:16 mitu 17 1st version 18 19 20 4 4/11/01 3:04p John 21 Updated header copyrights and pathname. 22 23 3 3/17/00 1:18p Mikepc 24 25 2 3/17/00 1:17p Mikepc 26 change tc to use indices numbered from 0: 27 28 1 12/03/99 3:44p Ryan 29 30 6 8/26/99 4:56p Mikepc 31 added namespace protection to remove potential name collisions with 32 tool code. Exceptions are CreateTplFile and QuickConvert. These are 33 extern "C" linked. 34 35 5 8/26/99 11:37a Mikepc 36 37 4 8/26/99 11:01a Mikepc 38 tplConv rewrite for memory usage efficiency, batch file processing 39 ability. 40 41 $NoKeywords: $ 42 43 -----------------------------------------------------------------------*/ 44 45 #ifndef __TCTEXTURELIST_H__ 46 #define __TCTEXTURELIST_H__ 47 48 /********************************/ 49 #include <dolphin/types.h> 50 51 /********************************/ 52 typedef struct TCTexture 53 { 54 u32 index; // .tpl Texture Descriptor index 55 56 u32 image; // indices of member components. 0 indicates no component present 57 u32 palette; 58 59 //----------------- 60 61 u32 tplImageOffset; // offset from top of file to Image Descriptor in .tpl file 62 u32 tplPaletteOffset; // offset from top of file to Palette Descriptor in .tpl file 63 64 struct TCTexture* prev; 65 struct TCTexture* next; 66 67 }TCTexture, *TCTexturePtr; 68 69 /********************************/ 70 extern TCTexture* TxHead; 71 72 /*>*******************************(*)*******************************<*/ 73 TCTexture* TCNewTexture ( void ); 74 void TCSetTextureAttributes( TCTexture* tx, u32 index, u32 image, u32 palette ); 75 76 void TCSortTextureByIndex( void ); 77 78 /*>*******************************(*)*******************************<*/ 79 80 #endif // __TCTEXTURELIST_H__ 81