Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/test_render/viewer_types.h @ 128:776eca0daa02
texture load use hash table
author | gongo@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 25 Nov 2008 15:52:28 +0900 |
parents | 9ff71404cff2 |
children | 8a33f4859ed8 |
line wrap: on
line source
#ifndef INCLUDED_VIEWER_TYPES #define INCLUDED_VIEWER_TYPES #define SPE_NUM_MAX 6 #define MAX_WIDTH 1920 #define MAX_HEIGHT 1080 const int tex_width = 576; const int tex_height = 384; // texture は 8x8 に分割 // この値は、SpanPack にも使う #define TEXTURE_SPLIT_PIXEL 8 // 一個の SPE が描画担当する width, height (pixel) const int split_screen_w = 512; const int split_screen_h = 8; enum video_type { VTYPE_SDL, VTYPE_FB, // OPENGL, }; #if defined(__LITTLE_ENDIAN__) const int redMask = 0x000000ff; const int greenMask = 0x0000ff00; const int blueMask = 0x00ff0000; const int alphaMask = 0xff000000; #else const int redMask = 0xff000000; const int greenMask = 0x00ff0000; const int blueMask = 0x0000ff00; const int alphaMask = 0x000000ff; #endif extern int getLocalX(int x); extern int getLocalY(int y); #endif