本文整理汇总了C++中palette_set_color函数的典型用法代码示例。如果您正苦于以下问题:C++ palette_set_color函数的具体用法?C++ palette_set_color怎么用?C++ palette_set_color使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了palette_set_color函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: PORT_BIT
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_UNUSED
INPUT_PORTS_END
static PALETTE_INIT( lcmate2 )
{
palette_set_color(machine, 0, MAKE_RGB(138, 146, 148));
palette_set_color(machine, 1, MAKE_RGB(92, 83, 88));
}
开发者ID:rogerjowett,项目名称:ClientServerMAME,代码行数:8,代码来源:lcmate2.c
示例2: palette_set_color
INPUT_PORTS_END
void alesis_state::palette_init()
{
palette_set_color(machine(), 0, MAKE_RGB(138, 146, 148));
palette_set_color(machine(), 1, MAKE_RGB(92, 83, 88));
}
开发者ID:CJBass,项目名称:mame2013-libretro,代码行数:8,代码来源:alesis.c
示例3: PORT_BIT
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_UNUSED
INPUT_PORTS_END
void lcmate2_state::palette_init()
{
palette_set_color(machine(), 0, MAKE_RGB(138, 146, 148));
palette_set_color(machine(), 1, MAKE_RGB(92, 83, 88));
}
开发者ID:felipesanches,项目名称:ume,代码行数:8,代码来源:lcmate2.c
示例4: palette_set_color
void boxer_state::palette_init()
{
palette_set_color(machine(),0, MAKE_RGB(0x00,0x00,0x00));
palette_set_color(machine(),1, MAKE_RGB(0xff,0xff,0xff));
palette_set_color(machine(),2, MAKE_RGB(0xff,0xff,0xff));
palette_set_color(machine(),3, MAKE_RGB(0x00,0x00,0x00));
}
开发者ID:coinhelper,项目名称:jsmess,代码行数:8,代码来源:boxer.c
示例5: PALETTE_INIT
/* debug purpose*/
static PALETTE_INIT( taitowlf )
{
palette_set_color(machine,0x70,MAKE_RGB(0xff,0xff,0xff));
palette_set_color(machine,0x71,MAKE_RGB(0xff,0xff,0xff));
palette_set_color(machine,0x01,MAKE_RGB(0x55,0x00,0x00));
palette_set_color(machine,0x10,MAKE_RGB(0xaa,0x00,0x00));
palette_set_color(machine,0x00,MAKE_RGB(0x00,0x00,0x00));
}
开发者ID:vikke,项目名称:mame_0145,代码行数:9,代码来源:taitowlf.c
示例6: PALETTE_INIT
INPUT_PORTS_END
static PALETTE_INIT( mgolf )
{
palette_set_color(machine, 0, MAKE_RGB(0x80, 0x80, 0x80));
palette_set_color(machine, 1, MAKE_RGB(0x00, 0x00, 0x00));
palette_set_color(machine, 2, MAKE_RGB(0x80, 0x80, 0x80));
palette_set_color(machine, 3, MAKE_RGB(0xff, 0xff, 0xff));
}
开发者ID:DarrenBranford,项目名称:MAME4iOS,代码行数:10,代码来源:mgolf.c
示例7: palette_set_color
INPUT_PORTS_END
void pokemini_state::palette_init()
{
palette_set_color(machine(), 0, MAKE_RGB(0xff, 0xfb, 0x87));
palette_set_color(machine(), 1, MAKE_RGB(0xb1, 0xae, 0x4e));
palette_set_color(machine(), 2, MAKE_RGB(0x84, 0x80, 0x4e));
palette_set_color(machine(), 3, MAKE_RGB(0x4e, 0x4e, 0x4e));
}
开发者ID:clobber,项目名称:UME,代码行数:10,代码来源:pokemini.c
示例8: PALETTE_INIT
INPUT_PORTS_END
static PALETTE_INIT( pokemini )
{
palette_set_color(machine, 0, MAKE_RGB(0xff, 0xfb, 0x87));
palette_set_color(machine, 1, MAKE_RGB(0xb1, 0xae, 0x4e));
palette_set_color(machine, 2, MAKE_RGB(0x84, 0x80, 0x4e));
palette_set_color(machine, 3, MAKE_RGB(0x4e, 0x4e, 0x4e));
}
开发者ID:kleopatra999,项目名称:mess-svn,代码行数:10,代码来源:pokemini.c
示例9: palette_set_color
GFXDECODE_END
void lazercmd_state::palette_init()
{
palette_set_color(machine(), 0, MAKE_RGB(0xb0, 0xb0, 0xb0)); /* white */
palette_set_color(machine(), 1, MAKE_RGB(0x00, 0x00, 0x00)); /* black */
palette_set_color(machine(), 2, MAKE_RGB(0x00, 0x00, 0x00)); /* black */
palette_set_color(machine(), 3, MAKE_RGB(0xb0, 0xb0, 0xb0)); /* white */
palette_set_color(machine(), 4, MAKE_RGB(0xff, 0xff, 0xff)); /* bright white */
}
开发者ID:Ilgrim,项目名称:MAMEHub,代码行数:12,代码来源:lazercmd.c
示例10: PALETTE_INIT
INPUT_PORTS_END
static PALETTE_INIT( zac2650 )
{
palette_set_color(0,0x00,0x00,0x00); /* BLACK */
palette_set_color(1,0xff,0xff,0xff); /* WHITE */
colortable[0] = 0;
colortable[1] = 1;
colortable[2] = 0;
colortable[3] = 0;
}
开发者ID:Ezio-PS,项目名称:mame2003-libretro,代码行数:12,代码来源:zac2650.c
示例11: PALETTE_INIT
GFXDECODE_END
static PALETTE_INIT( lazercmd )
{
palette_set_color(machine, 0, MAKE_RGB(0xb0, 0xb0, 0xb0)); /* white */
palette_set_color(machine, 1, MAKE_RGB(0x00, 0x00, 0x00)); /* black */
palette_set_color(machine, 2, MAKE_RGB(0x00, 0x00, 0x00)); /* black */
palette_set_color(machine, 3, MAKE_RGB(0xb0, 0xb0, 0xb0)); /* white */
palette_set_color(machine, 4, MAKE_RGB(0xff, 0xff, 0xff)); /* bright white */
}
开发者ID:risico,项目名称:jsmess,代码行数:12,代码来源:lazercmd.c
示例12: PALETTE_INIT
INPUT_PORTS_END
/***************************************************************************
PALETTE
***************************************************************************/
static PALETTE_INIT( apricot )
{
palette_set_color(machine, 0, MAKE_RGB(0x00, 0x00, 0x00)); /* black */
palette_set_color(machine, 1, MAKE_RGB(0x00, 0x7f, 0x00)); /* low intensity */
palette_set_color(machine, 2, MAKE_RGB(0x00, 0xff, 0x00)); /* high intensitiy */
}
开发者ID:rogerjowett,项目名称:ClientServerMAME,代码行数:13,代码来源:apricot.c
示例13: palette_set_color
INPUT_PORTS_END
/***************************************************************************
PALETTE
***************************************************************************/
void apricot_state::palette_init()
{
palette_set_color(machine(), 0, MAKE_RGB(0x00, 0x00, 0x00)); /* black */
palette_set_color(machine(), 1, MAKE_RGB(0x00, 0x7f, 0x00)); /* low intensity */
palette_set_color(machine(), 2, MAKE_RGB(0x00, 0xff, 0x00)); /* high intensitiy */
}
开发者ID:CJBass,项目名称:mame2013-libretro,代码行数:13,代码来源:apricot.c
示例14: palette_set_color
INPUT_PORTS_END
//**************************************************************************
// VIDEO
//**************************************************************************
void portfolio_state::palette_init()
{
palette_set_color(machine(), 0, MAKE_RGB(138, 146, 148));
palette_set_color(machine(), 1, MAKE_RGB(92, 83, 88));
}
开发者ID:cyberkni,项目名称:276in1JAMMA,代码行数:13,代码来源:portfoli.c
示例15: PALETTE_INIT
GFXDECODE_END
/* Palette Initialization */
static PALETTE_INIT( zx80 )
{
palette_set_color(machine,0,RGB_WHITE); /* white */
palette_set_color(machine,1,RGB_BLACK); /* black */
palette_set_color(machine,2,RGB_BLACK); /* black */
palette_set_color(machine,3,RGB_WHITE); /* white */
}
开发者ID:rogerjowett,项目名称:ClientServerMAME,代码行数:14,代码来源:zx.c
示例16: PALETTE_INIT
INPUT_PORTS_END
//**************************************************************************
// VIDEO
//**************************************************************************
//-------------------------------------------------
// PALETTE_INIT( portfolio )
//-------------------------------------------------
static PALETTE_INIT( portfolio )
{
palette_set_color(machine, 0, MAKE_RGB(138, 146, 148));
palette_set_color(machine, 1, MAKE_RGB(92, 83, 88));
}
开发者ID:poliva,项目名称:mame-rr,代码行数:15,代码来源:portfoli.c
示例17: namcofl_install_palette
static void
namcofl_install_palette( void )
{
int pen, page, dword_offset, byte_offset;
UINT32 r,g,b;
UINT32 *pSource;
/* this is unnecessarily expensive. Better would be to mark palette entries dirty as
* they are modified, and only process those that have changed.
*/
pen = 0;
for( page=0; page<4; page++ )
{
pSource = &paletteram32[page*0x2000/4];
for( dword_offset=0; dword_offset<0x800/4; dword_offset++ )
{
r = pSource[dword_offset+0x0000/4];
g = pSource[dword_offset+0x0800/4];
b = pSource[dword_offset+0x1000/4];
for( byte_offset=0; byte_offset<4; byte_offset++ )
{
palette_set_color( pen++, r&0xff, g&0xff, b&0xff);
r>>=8; g>>=8; b>>=8;
}
}
}
}
开发者ID:CrouchingLlama,项目名称:openlase-mame,代码行数:28,代码来源:namcofl.c
示例18: prom_to_palette
static void prom_to_palette(int number, UINT8 val)
{
palette_set_color(number,
(val & 4) ? 0xff : 0x00,
(val & 2) ? 0xff : 0x00,
(val & 1) ? 0xff : 0x00);
}
开发者ID:BirchJD,项目名称:advancemame-0.106.1-RPi,代码行数:7,代码来源:firetrk.c
示例19: PALETTE_INIT_MEMBER
PALETTE_INIT_MEMBER(ojankohs_state,ojankoy)
{
const UINT8 *color_prom = memregion("proms")->base();
int i;
int bit0, bit1, bit2, bit3, bit4, r, g, b;
for (i = 0; i < machine().total_colors(); i++)
{
bit0 = BIT(color_prom[0], 2);
bit1 = BIT(color_prom[0], 3);
bit2 = BIT(color_prom[0], 4);
bit3 = BIT(color_prom[0], 5);
bit4 = BIT(color_prom[0], 6);
r = 0x08 * bit0 + 0x11 * bit1 + 0x21 * bit2 + 0x43 * bit3 + 0x82 * bit4;
bit0 = BIT(color_prom[machine().total_colors()], 5);
bit1 = BIT(color_prom[machine().total_colors()], 6);
bit2 = BIT(color_prom[machine().total_colors()], 7);
bit3 = BIT(color_prom[0], 0);
bit4 = BIT(color_prom[0], 1);
g = 0x08 * bit0 + 0x11 * bit1 + 0x21 * bit2 + 0x43 * bit3 + 0x82 * bit4;
bit0 = BIT(color_prom[machine().total_colors()], 0);
bit1 = BIT(color_prom[machine().total_colors()], 1);
bit2 = BIT(color_prom[machine().total_colors()], 2);
bit3 = BIT(color_prom[machine().total_colors()], 3);
bit4 = BIT(color_prom[machine().total_colors()], 4);
b = 0x08 * bit0 + 0x11 * bit1 + 0x21 * bit2 + 0x43 * bit3 + 0x82 * bit4;
palette_set_color(machine(), i, MAKE_RGB(r, g, b));
color_prom++;
}
}
开发者ID:antervud,项目名称:MAMEHub,代码行数:31,代码来源:ojankohs.c
示例20: SCREEN_UPDATE
/* VIDEO GOODS */
static SCREEN_UPDATE( lgp )
{
lgp_state *state = screen->machine().driver_data<lgp_state>();
int charx, chary;
/* make color 0 transparent */
palette_set_color(screen->machine(), 0, MAKE_ARGB(0,0,0,0));
/* clear */
bitmap_fill(bitmap, cliprect, 0);
/* Draw tiles */
for (charx = 0; charx < 32; charx++)
{
for (chary = 0; chary < 32; chary++)
{
int current_screen_character = (chary*32) + charx;
/* Somewhere there's a flag that offsets the tilemap by 0x100*x */
/* Palette is likely set somewhere as well (tile_control_ram?) */
drawgfx_transpen(bitmap, cliprect, screen->machine().gfx[0],
state->m_tile_ram[current_screen_character],
0,
0, 0, charx*8, chary*8, 0);
}
}
return 0;
}
开发者ID:rogerjowett,项目名称:ClientServerMAME,代码行数:30,代码来源:lgp.c
注:本文中的palette_set_color函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论