1 /*---------------------------------------------------------------------------*
2   Project:  NintendoWare
3   File:     lyt_DrawerCommand.h
4 
5   Copyright (C)2009-2010 Nintendo Co., Ltd./HAL Laboratory, Inc.  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   $Revision: 22635 $
14  *---------------------------------------------------------------------------*/
15 
16 #ifndef NW_LYT_DRAWER_COMMAND_H_
17 #define NW_LYT_DRAWER_COMMAND_H_
18 #ifdef NW_LYT_DRAWER_ENABLE
19 
20 #define NW_LYT_CMD_DATA_COLOR( color8 ) \
21     ( color8.r | color8.g << 8 | color8.b << 16 | color8.a << 24 )
22 
23 #define NW_LYT_CMD_DATA_COLOR_ALPHA( color8, alpha8 ) \
24     ( color8.r | color8.g << 8 | color8.b << 16 | alpha8.a << 24 )
25 
26 #define NW_LYT_CMD_DATA_TEX_ENV_BUF_INPUT_THROUGH \
27     PICA_CMD_DATA_ZERO()
28 
29 #define NW_LYT_COMMAND_SET_LOGIC_OP( logicOp ) \
30     PICA_CMD_DATA_COLOR_OPERATION( \
31         PICA_DATA_FRAGOP_MODE_DMP, \
32         PICA_DATA_ENABLE_COLOR_LOGIC_OP ), \
33     PICA_CMD_HEADER_SINGLE( PICA_REG_COLOR_OPERATION ), \
34     PICA_CMD_DATA_LOGIC_OP( logicOp ), \
35     PICA_CMD_HEADER_SINGLE( PICA_REG_LOGIC_OP )
36 
37 #endif
38 #endif
39