view Renderer/Engine/viewer_types.h @ 638:671fca057ad3

hmmmm
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 19 Nov 2009 18:18:20 +0900
parents 735f76483bb2
children 49b3c753e209
line wrap: on
line source

#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