1 /*---------------------------------------------------------------------* 2 Project: tc library 3 File: TCLayer.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: TCLayer.h,v $ 16 Revision 1.1 2006/02/17 09:04:06 mitu 17 1st version 18 19 20 2 4/11/01 3:30p John 21 Updated header for copyright and pathname. 22 23 1 12/03/99 4:15p Ryan 24 25 $NoKeywords: $ 26 27 -----------------------------------------------------------------------*/ 28 29 #ifndef __TCLAYER_H__ 30 #define __TCLAYER_H__ 31 32 /********************************/ 33 #include <dolphin/types.h> 34 35 /********************************/ 36 #define LY_IMAGE_COLOR_RGB24 0x0001 37 #define LY_IMAGE_COLOR_CI16 0x0002 38 #define LY_IMAGE_ALPHA_A8 0x0004 39 40 /********************************/ 41 typedef struct 42 { 43 u32 type; 44 45 u32 width; 46 u32 height; 47 48 u8* data; 49 50 }TCLayer, *TCLayerPtr; 51 52 /*>*******************************(*)*******************************<*/ 53 TCLayer* TCCreateLayer ( void ); 54 55 void TCSetLayerAttributes( TCLayer* ly, u32 type, u32 width, 56 u32 height ); 57 58 u8* TCSetLayerBuffer ( TCLayer* ly ); 59 void TCSetLayerValue ( TCLayer* ly, u32 x, u32 y, u16 ria, 60 u8 g, u8 b ); 61 62 void TCGetLayerValue ( TCLayer* ly, u32 x, u32 y, u16* riaPtr, 63 u8* gPtr, u8* bPtr ); 64 65 /*>*******************************(*)*******************************<*/ 66 67 #endif // __TCLAYER_H__ 68