本文整理汇总了C++中bitmap_ind16::cliprect方法的典型用法代码示例。如果您正苦于以下问题:C++ bitmap_ind16::cliprect方法的具体用法?C++ bitmap_ind16::cliprect怎么用?C++ bitmap_ind16::cliprect使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类bitmap_ind16
的用法示例。
在下文中一共展示了bitmap_ind16::cliprect方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: screen_update_mrgame
// most of this came from pinmame as the diagram doesn't make a lot of sense
UINT32 mrgame_state::screen_update_mrgame(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
UINT8 x,y,ptr=0,col;
INT32 scrolly[32];
UINT16 chr;
bool flipx,flipy;
// text
for (x = 0; x < 32; x++)
{
scrolly[x] = -m_p_objectram[ptr++];
col = m_p_objectram[ptr++];
for (y = 0; y < 32; y++)
{
chr = m_p_videoram[x+y*32] | (m_gfx_bank << 8);
m_gfxdecode->gfx(0)->opaque(*m_tile_bitmap, m_tile_bitmap->cliprect(),
chr,
col,
m_flip,0,
x*8,y*8);
}
}
// scroll each column as needed
copyscrollbitmap(bitmap,*m_tile_bitmap,0,0,32,scrolly,cliprect);
// sprites
for (ptr = 0x40; ptr < 0x60; ptr += 4)
{
x = m_p_objectram[ptr + 3] + 1;
y = 255 - m_p_objectram[ptr];
flipx = BIT(m_p_objectram[ptr + 1], 6);
flipy = BIT(m_p_objectram[ptr + 1], 7);
chr = (m_p_objectram[ptr + 1] & 0x3f) | (m_gfx_bank << 6);
col = m_p_objectram[ptr + 2];
if ((y > 16) && (x > 24))
m_gfxdecode->gfx(1)->transpen(bitmap,cliprect,
chr,
col,
flipx,flipy,
x,y-16,0);
}
return 0;
}
示例2: apexc_draw_char
/* write a single char on screen */
void apexc_state::apexc_draw_char(bitmap_ind16 &bitmap, char character, int x, int y, int color)
{
m_gfxdecode->m_gfx[0]->transpen(bitmap,bitmap.cliprect(), character-32, color, 0, 0,
x+1, y, 0);
}
示例3: machine
/* write a single char on screen */
void pdp1_state::pdp1_draw_char(bitmap_ind16 &bitmap, char character, int x, int y, int color)
{
drawgfx_transpen(bitmap, bitmap.cliprect(), machine().gfx[0], character-32, color, 0, 0,
x+1, y, 0);
}
示例4:
/* write a single char on screen */
static void tx0_draw_char(running_machine &machine, bitmap_ind16 &bitmap, char character, int x, int y, int color)
{
drawgfx_transpen(bitmap, bitmap.cliprect(), machine.gfx[0], character-32, color, 0, 0,
x+1, y, 0);
}