1 /*---------------------------------------------------------------------------*
2   Project:  TwlSDK - WXC - demos - wxc-dataShare
3   File:     disp.h
4 
5   Copyright 2005-2009 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   $Date:: 2007-11-15#$
14   $Rev: 2414 $
15   $Author: hatamoto_minoru $
16  *---------------------------------------------------------------------------*/
17 #ifndef MB_DEMO_DISP_H_
18 #define MB_DEMO_DISP_H_
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #include <nitro.h>
25 
26 /*
27  * Processing for general text rendering
28  */
29 
30 /* OBJ number assignment */
31 enum
32 {
33     TITLE_STRING_OBJNO = 0,
34     PARENT_STRING_OBJNO = 10,
35     CHILD_STRING_OBJNO = 22,
36     PLIST_STRING_OBJNO = 33,
37     CLIST_STRING_OBJNO = 39,
38 
39     CURSOR_OBJNO = 45,
40     PARENT_NAME_OBJNO = 46,
41     FILENAME_OBJNO = 82,
42     MESSAGE_OBJNO = 104
43 };
44 
45 /* Palette color for text */
46 enum
47 {
48     PLTT_BLACK = 0,
49     PLTT_BLUE = 1,
50     PLTT_RED = 2,
51     PLTT_PURPLE = 3,
52     PLTT_GREEN = 4,
53     PLTT_CYAN = 5,
54     PLTT_YELLOW = 6,
55     PLTT_WHITE = 7
56 };
57 
58 
59 
60 //============================================================================
61 //  Function Declarations
62 //============================================================================
63 
64 void DispInit(void);
65 void DispOn(void);
66 void DispOff(void);
67 void DispVBlankFunc(void);
68 void BgPutChar(s32 x, s32 y, s32 palette, s8 c);
69 void BgPutStringN(s32 x, s32 y, s32 palette, const char *text, s32 num);
70 void BgPutString(s32 x, s32 y, s32 palette, const char *text);
71 void BgPrintStr(s32 x, s32 y, s32 palette, const char *text, ...);
72 void BgClear(void);
73 
74 
75 
76 #ifdef __cplusplus
77 }/* extern "C" */
78 #endif
79 
80 #endif // MB_DEMO_DISP_H_
81