comparison Renderer/test_render/viewer_types.h @ 283:55ea4465b1a2

fix test_render
author e065746@localhost.localdomain
date Fri, 05 Jun 2009 16:49:12 +0900
parents
children 58fd16298954
comparison
equal deleted inserted replaced
282:ef061be0baff 283:55ea4465b1a2
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