1 /*---------------------------------------------------------------------------*
2   Project:  NintendoWare
3   File:     lyt_DrawerCommand.h
4 
5   Copyright (C)2009-2011 Nintendo/HAL Laboratory, Inc.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain proprietary
8   information of Nintendo and/or its licensed developers and are protected by
9   national and international copyright laws. They may not be disclosed to third
10   parties or copied or duplicated in any form, in whole or in part, without the
11   prior written consent of Nintendo.
12 
13   The content herein is highly confidential and should be handled accordingly.
14 
15   $Revision: 31311 $
16  *---------------------------------------------------------------------------*/
17 
18 #ifndef NW_LYT_DRAWER_COMMAND_H_
19 #define NW_LYT_DRAWER_COMMAND_H_
20 #ifdef NW_LYT_DRAWER_ENABLE
21 
22 #define NW_LYT_CMD_DATA_COLOR( color8 ) \
23     ( color8.r | color8.g << 8 | color8.b << 16 | color8.a << 24 )
24 
25 #define NW_LYT_CMD_DATA_COLOR_ALPHA( color8, alpha8 ) \
26     ( color8.r | color8.g << 8 | color8.b << 16 | alpha8.a << 24 )
27 
28 #define NW_LYT_CMD_DATA_TEX_ENV_BUF_INPUT_THROUGH \
29     PICA_CMD_DATA_ZERO()
30 
31 #define NW_LYT_COMMAND_SET_LOGIC_OP( logicOp ) \
32     PICA_CMD_DATA_COLOR_OPERATION( \
33         PICA_DATA_FRAGOP_MODE_DMP, \
34         PICA_DATA_ENABLE_COLOR_LOGIC_OP ), \
35     PICA_CMD_HEADER_SINGLE( PICA_REG_COLOR_OPERATION ), \
36     PICA_CMD_DATA_LOGIC_OP( logicOp ), \
37     PICA_CMD_HEADER_SINGLE( PICA_REG_LOGIC_OP )
38 
39 #endif
40 #endif
41