1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: dlpDemo.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:$ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_DLPDEMO_H_ 17 #define NN_DLPDEMO_H_ 18 19 const u8 MAX_CLIENT = 15; 20 21 const u8 SCAN_NUM = 16; 22 23 // Font size 24 const u32 FONT_SIZE = 8; 25 26 // Line width 27 const f32 LINE_WIDTH = 1.f; 28 29 const char PATHPRHRASE[] = "CTR_SDK_SAMPLE"; 30 const u8 SUB_ID = 0x01; 31 const bit32 UNIQUE_ID_SAMPLEDEMOS_DLP = 0x000FFF00; 32 33 34 // Render color definition 35 #define WHITE_COLOR 1.f, 1.f, 1.f 36 #define GRAY_COLOR 0.5, 0.5, 0.5 37 #define RED_COLOR 1.f, 0.f, 0.f 38 #define GREEN_COLOR 0.f, 1.f, 0.f 39 #define BLUE_COLOR 0.f, 0.f, 1.f 40 41 #define DLP_DEBUG_POINT NN_LOG("l.%d:%s > \n", __LINE__, __func__) 42 #define DLP_DEBUG_PRINT( ... ) NN_LOG("l.%d:%s > ", __LINE__, __func__);NN_LOG(__VA_ARGS__) 43 #define DLP_DEBUG_PRINT_SIMPLE( ... ) NN_LOG(__VA_ARGS__) 44 #define DLP_ROUNDUP(x, base) (((x) + ((base)-1)) & ~((base)-1)) 45 46 /* NN_DLPDEMO_H_ */ 47 #endif 48 49 /*---------------------------------------------------------------------------* 50 End of file 51 *---------------------------------------------------------------------------*/ 52