Mercurial > hg > Members > kono > Cerium
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Renderer/test_render/viewer_types.h Fri Jun 05 16:49:12 2009 +0900 @@ -0,0 +1,33 @@ +#ifndef INCLUDED_VIEWER_TYPES +#define INCLUDED_VIEWER_TYPES + +// texture は 8x8 に分割 +// この値は、SpanPack にも使う +const int TEXTURE_SPLIT_PIXEL = 8; +const int TEXTURE_BLOCK_SIZE = TEXTURE_SPLIT_PIXEL*TEXTURE_SPLIT_PIXEL; + +// 一個の SPE が描画担当する width, height (pixel) +const int split_screen_w = 256; +const int split_screen_h = 8; + +enum video_type { + VTYPE_SDL, + VTYPE_FB, +}; + +#if defined(__LITTLE_ENDIAN__) +const int redMask = 0x0000ff00; +const int greenMask = 0x00ff0000; +const int blueMask = 0xff000000; +const int alphaMask = 0x000000ff; +#else +const int redMask = 0x00ff0000; +const int greenMask = 0x0000ff00; +const int blueMask = 0x000000ff; +const int alphaMask = 0xff000000; +#endif + +extern int getLocalX(int x); +extern int getLocalY(int y); + +#endif