283
|
1 #ifndef INCLUDED_VIEWER_TYPES
|
|
2 #define INCLUDED_VIEWER_TYPES
|
|
3
|
|
4 // texture は 8x8 に分割
|
|
5 // この値は、SpanPack にも使う
|
|
6 const int TEXTURE_SPLIT_PIXEL = 8;
|
|
7 const int TEXTURE_BLOCK_SIZE = TEXTURE_SPLIT_PIXEL*TEXTURE_SPLIT_PIXEL;
|
|
8
|
|
9 // 一個の SPE が描画担当する width, height (pixel)
|
|
10 const int split_screen_w = 256;
|
|
11 const int split_screen_h = 8;
|
|
12
|
|
13 enum video_type {
|
|
14 VTYPE_SDL,
|
|
15 VTYPE_FB,
|
|
16 };
|
|
17
|
|
18 #if defined(__LITTLE_ENDIAN__)
|
|
19 const int redMask = 0x0000ff00;
|
|
20 const int greenMask = 0x00ff0000;
|
|
21 const int blueMask = 0xff000000;
|
|
22 const int alphaMask = 0x000000ff;
|
|
23 #else
|
|
24 const int redMask = 0x00ff0000;
|
|
25 const int greenMask = 0x0000ff00;
|
|
26 const int blueMask = 0x000000ff;
|
|
27 const int alphaMask = 0xff000000;
|
|
28 #endif
|
|
29
|
|
30 extern int getLocalX(int x);
|
|
31 extern int getLocalY(int y);
|
|
32
|
|
33 #endif
|