OSDN Git Service

Linuxビルド対応
[coroid/inqubus.git] / vhook / nicodef.h
1 #ifndef NICODEF_H_\r
2 #define NICODEF_H_\r
3 #include <SDL/SDL_ttf.h>\r
4 \r
5 //\92è\8b`\r
6 #define NICO_WIDTH              512\r
7 #define NICO_HEIGHT     384\r
8 \r
9 \r
10 #define VPOS_FACTOR             100     //\91½\95ª\8cW\90\94\82Ì\88Ó\96¡\82Å\82Í\81E\81E\81E\82â\82Í\82è1/100\82Å\8bL\98^\82µ\82Ä\82é\82Á\82Û\82¢\r
11 #define TEXT_AHEAD_SEC  (1 * VPOS_FACTOR)\r
12 #define TEXT_SHOW_SEC   (4 * VPOS_FACTOR)\r
13 #define TEXT_HEIGHT             22\r
14 \r
15 #define CMD_LOC_DEF             (0)\r
16 #define CMD_LOC_TOP             (1)\r
17 #define CMD_LOC_BOTTOM  (2)\r
18 \r
19 #define CMD_FONT_MAX    3\r
20 #define CMD_FONT_DEF    0\r
21 #define CMD_FONT_BIG    1\r
22 #define CMD_FONT_SMALL  2\r
23 \r
24 static const int COMMENT_FONT_SIZE[CMD_FONT_MAX] = {\r
25         24,//DEF\r
26         39,//BIG\r
27         15,//SMALL\r
28 };\r
29 \r
30 #define CMD_COLOR_MAX                           17\r
31 #define CMD_COLOR_DEF                           0\r
32 #define CMD_COLOR_RED                           1\r
33 #define CMD_COLOR_ORANGE                        2\r
34 #define CMD_COLOR_YELLOW                        3\r
35 #define CMD_COLOR_PINK                          4\r
36 #define CMD_COLOR_BLUE                          5\r
37 #define CMD_COLOR_PURPLE                        6\r
38 #define CMD_COLOR_CYAN                          7\r
39 #define CMD_COLOR_GREEN                 8\r
40 #define CMD_COLOR_NICOWHITE             9\r
41 #define CMD_COLOR_MARINEBLUE            10\r
42 #define CMD_COLOR_MADYELLOW             11\r
43 #define CMD_COLOR_PASSIONORANGE 12\r
44 #define CMD_COLOR_NOBLEVIOLET           13\r
45 #define CMD_COLOR_ELEMENTALGREEN        14\r
46 #define CMD_COLOR_TRUERED                       15\r
47 #define CMD_COLOR_BLACK                 16\r
48 \r
49 static const SDL_Color COMMENT_COLOR[CMD_COLOR_MAX] = {\r
50         {0xff,0xff,0xff,0x00},//DEF\r
51         {0xff,0x00,0x00,0x00},//RED\r
52         {0xff,0xC0,0x00,0x00},//ORANGE\r
53         {0xff,0xff,0x00,0x00},//YELLOW\r
54         {0xff,0x80,0x80,0x00},//PINK\r
55         {0x00,0x00,0xff,0x00},//BLUE\r
56         {0xc0,0x00,0xff,0x00},//PURPLE\r
57         {0x00,0xff,0xff,0x00},//CYAN\r
58         {0x00,0xff,0x00,0x00},//GREEN\r
59         /*\83v\83\8c\83~\83A\90ê\97p*/\r
60         {0xCC,0xCC,0x99,0x00},//NICOWHITE\r
61         {0x33,0xff,0xFC,0x00},//MARINEBLUE\r
62         {0x99,0x99,0x00,0x00},//MADYELLOW\r
63         {0xFF,0x66,0x00,0x00},//PASSIONORANGE\r
64         {0x66,0x33,0xCC,0x00},//NOBLEVIOLET\r
65         {0x00,0xCC,0x66,0x00},//ELEMENTALGREEN\r
66         {0xCC,0x00,0x33,0x00},//TRUERED\r
67         {0x00,0x00,0x00,0x00},//BLACK\r
68 \r
69 };\r
70 \r
71 #endif /*NICODEF_H_*/\r