本文整理汇总了C++中SET_TILE_INFO函数的典型用法代码示例。如果您正苦于以下问题:C++ SET_TILE_INFO函数的具体用法?C++ SET_TILE_INFO怎么用?C++ SET_TILE_INFO使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了SET_TILE_INFO函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: TILE_GET_INFO
static TILE_GET_INFO( get_luckgrln_reel4_tile_info )
{
luckgrln_state *state = machine.driver_data<luckgrln_state>();
int code = state->m_reel4_ram[tile_index];
int attr = state->m_reel4_attr[tile_index];
int col = (attr & 0x1f);
code |= (attr & 0xe0)<<3;
SET_TILE_INFO(
1,
code,
col,
0);
}
示例2: TILE_GET_INFO
static TILE_GET_INFO( get_text_tile_info )
{
cabal_state *state = machine.driver_data<cabal_state>();
int tile = state->m_colorram[tile_index];
int color = (tile>>10);
tile &= 0x3ff;
SET_TILE_INFO(
0,
tile,
color,
0);
}
示例3: TILE_GET_INFO
static TILE_GET_INFO( mnight_get_bg_tile_info )
{
ninjakd2_state *state = machine.driver_data<ninjakd2_state>();
int const lo = state->m_bg_videoram[(tile_index << 1)];
int const hi = state->m_bg_videoram[(tile_index << 1) | 1];
int const tile = ((hi & 0x10) << 6) | ((hi & 0xc0) << 2) | lo;
int const flipy = (hi & 0x20) >> 5;
int const color = hi & 0x0f;
SET_TILE_INFO(
2,
tile,
color,
flipy ? TILE_FLIPY : 0);
}
示例4: TILE_GET_INFO
static TILE_GET_INFO( get_bg_tile_info )
{
brkthru_state *state = machine.driver_data<brkthru_state>();
/* BG RAM format
0 1
---- -c-- ---- ---- = Color
---- --xx xxxx xxxx = Code
*/
int code = (state->m_videoram[tile_index * 2] | ((state->m_videoram[tile_index * 2 + 1]) << 8)) & 0x3ff;
int region = 1 + (code >> 7);
int colour = state->m_bgbasecolor + ((state->m_videoram[tile_index * 2 + 1] & 0x04) >> 2);
SET_TILE_INFO(region, code & 0x7f, colour,0);
}
示例5: TILE_GET_INFO
static TILE_GET_INFO( get_pf4_tile_info )
{
int color, tile_number, attrib;
tile_number = pf4_tilevram16[2*tile_index+1] & 0x7fff;
attrib = pf4_tilevram16[2*tile_index];
color = attrib & 0x3f;
SET_TILE_INFO(
0,
tile_number,
color,
0);
if (pf4_tilevram16[2*tile_index+1] & 0x8000) tileinfo->category = 0;
else tileinfo->category = (attrib & 0xf000) >> 12;
}
示例6: TILE_GET_INFO
static TILE_GET_INFO( get_bgtile_info )
{
int code,attr,pal;
code=memory_region(REGION_USER1)[tile_index]; /* TTTTTTTT */
attr=memory_region(REGION_USER2)[tile_index]; /* -PPP--TT - FIXED BITS (0xxx00xx) */
code+=(attr&3)<<8;
pal=(attr>>4);
SET_TILE_INFO(
1,
code,
pal,
0);
}
示例7: TILE_GET_INFO
static TILE_GET_INFO( get_pf2_tile_info )
{
int tile,color;
tile=actfancr_pf2_data[2*tile_index]+(actfancr_pf2_data[2*tile_index+1]<<8);
color=tile>>12;
tile=tile&0xfff;
SET_TILE_INFO(
0,
tile,
color,
0);
}
示例8: TILE_GET_INFO
static TILE_GET_INFO( get_bg_tile_info )
{
UINT8 *bgMap = machine.root_device().memregion("gfx6")->base();
int attr,tile_bank,tile_base;
attr = bgMap[0x8000+tile_index];
tile_bank = (attr & 0x20) >> 5;
tile_base = (attr & 0x80) << 1;
SET_TILE_INFO(
2+tile_bank,
tile_base + bgMap[tile_index],
attr & 0x07,
0);
}
示例9: TILE_GET_INFO
static TILE_GET_INFO( get_bg_tile_info )
{
wink_state *state = machine.driver_data<wink_state>();
UINT8 *videoram = state->m_videoram;
int code = videoram[tile_index];
code |= 0x200 * state->m_tile_bank;
// the 2 parts of the screen use different tile banking
if(tile_index < 0x360)
{
code |= 0x100;
}
SET_TILE_INFO(0, code, 0, 0);
}
示例10: TILE_GET_INFO
static TILE_GET_INFO( get_bg_tile_info )
{
/* - bits -
7654 3210
---- ---- bank select.
---- ---- color code.
---- ---- seems unused.
*/
// int attr = colorram[tile_index];
int code = videoram[tile_index];
// int bank = (attr & 0x08) >> 3;
// int color = (attr & 0x03);
SET_TILE_INFO( 0 /* bank */, code, 0 /* color */, 0);
}
示例11: TILE_GET_INFO
static TILE_GET_INFO( get_cstx_tile_info )
{
int code = (cshooter_txram[tile_index*2]);
int attr = (cshooter_txram[tile_index*2+1]);
int rg;
rg=0;
if (attr & 0x20) rg = 1;
SET_TILE_INFO(
rg,
(code & 0x1ff),
0x2c+(attr&0x1f), //test
0);
}
示例12: TILE_GET_INFO
static TILE_GET_INFO( get_bg_tile_info )
{
news_state *state = machine.driver_data<news_state>();
int code = (state->m_bgram[tile_index * 2] << 8) | state->m_bgram[tile_index * 2 + 1];
int color = (code & 0xf000) >> 12;
code &= 0x0fff;
if ((code & 0x0e00) == 0x0e00)
code = (code & 0x1ff) | (state->m_bgpic << 9);
SET_TILE_INFO(
0,
code,
color,
0);
}
示例13: TILE_GET_INFO
static TILE_GET_INFO( get_cstx_tile_info )
{
cshooter_state *state = machine.driver_data<cshooter_state>();
int code = (state->m_txram[tile_index*2]);
int attr = (state->m_txram[tile_index*2+1]);
int rg;
rg=0;
if (attr & 0x20) rg = 1;
SET_TILE_INFO(
rg,
(code & 0x1ff),
0x2c+(attr&0x1f), //test
0);
}
示例14: TILE_GET_INFO
static TILE_GET_INFO( get_bg_tile_info )
{
nsmpoker_state *state = machine.driver_data<nsmpoker_state>();
/* - bits -
7654 3210
---- ---- bank select.
---- ---- color code.
---- ---- seems unused.
*/
// int attr = state->m_colorram[tile_index];
int code = state->m_videoram[tile_index];
// int bank = (attr & 0x08) >> 3;
// int color = (attr & 0x03);
SET_TILE_INFO( 0 /* bank */, code, 0 /* color */, 0);
}
示例15: TILE_GET_INFO
static TILE_GET_INFO( get_gx_psac1b_tile_info )
{
int tileno, colour, flipx,flipy;
int flip;
flip=0;
colour = 0;
tileno = (gx_psacram[tile_index*2+1] & 0x00003fff)>>0;
flipx = (gx_psacram[tile_index*2+1] & 0x00200000)>>21;
flipy = (gx_psacram[tile_index*2+1] & 0x00100000)>>20;
if (flipx) flip |= TILE_FLIPX;
if (flipy) flip |= TILE_FLIPY;
SET_TILE_INFO(0, tileno, colour, flip);
}