annotate Renderer/test_render/viewer_types.h @ 298:58fd16298954

from EUC to UTF-8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 07 Jun 2009 15:17:41 +0900
parents 55ea4465b1a2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
1 #ifndef INCLUDED_VIEWER_TYPES
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
2 #define INCLUDED_VIEWER_TYPES
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
3
298
58fd16298954 from EUC to UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 283
diff changeset
4 // texture は 8x8 に分割
58fd16298954 from EUC to UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 283
diff changeset
5 // この値は、SpanPack にも使う
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
6 const int TEXTURE_SPLIT_PIXEL = 8;
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
7 const int TEXTURE_BLOCK_SIZE = TEXTURE_SPLIT_PIXEL*TEXTURE_SPLIT_PIXEL;
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
8
298
58fd16298954 from EUC to UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 283
diff changeset
9 // 一個の SPE が描画担当する width, height (pixel)
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
10 const int split_screen_w = 256;
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
11 const int split_screen_h = 8;
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
12
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
13 enum video_type {
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
14 VTYPE_SDL,
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
15 VTYPE_FB,
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
16 };
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
17
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
18 #if defined(__LITTLE_ENDIAN__)
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
19 const int redMask = 0x0000ff00;
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
20 const int greenMask = 0x00ff0000;
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
21 const int blueMask = 0xff000000;
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
22 const int alphaMask = 0x000000ff;
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
23 #else
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
24 const int redMask = 0x00ff0000;
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
25 const int greenMask = 0x0000ff00;
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
26 const int blueMask = 0x000000ff;
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
27 const int alphaMask = 0xff000000;
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
28 #endif
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
29
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
30 extern int getLocalX(int x);
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
31 extern int getLocalY(int y);
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
32
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
33 #endif