view TaskManager/Test/test_render/viewer_types.h @ 161:1f4c3f3238e6 fullHD_omedetou

texture の座標がマイナスになったあと、それを 0 にし忘れてた
author gongo@localhost.localdomain
date Mon, 08 Dec 2008 16:37:02 +0900
parents 435e0d24db39
children cf2aa37d2fe7
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 = 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