当前位置: 首页>>代码示例>>C++>>正文


C++ palette_device::set_pen_colors方法代码示例

本文整理汇总了C++中palette_device::set_pen_colors方法的典型用法代码示例。如果您正苦于以下问题:C++ palette_device::set_pen_colors方法的具体用法?C++ palette_device::set_pen_colors怎么用?C++ palette_device::set_pen_colors使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在palette_device的用法示例。


在下文中一共展示了palette_device::set_pen_colors方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: tagteam_palette

void tagteam_state::tagteam_palette(palette_device &palette) const
{
	uint8_t const *const color_prom = memregion("proms")->base();

	std::vector<rgb_t> rgb;
	compute_res_net_all(rgb, color_prom, tagteam_decode_info, tagteam_net_info);
	palette.set_pen_colors(0x00, rgb);
}
开发者ID:SailorSat,项目名称:cabmame,代码行数:8,代码来源:tagteam.cpp

示例2:

void g7400_state::g7400_palette(palette_device &palette) const
{
	constexpr rgb_t g7400_colors[]{
		{ 0x00, 0x00, 0x00 }, // Black
		{ 0x1a, 0x37, 0xbe }, // Blue
		{ 0x00, 0x6d, 0x07 }, // Green
		{ 0x2a, 0xaa, 0xbe }, // Blue-Green
		{ 0x79, 0x00, 0x00 }, // Red
		{ 0x94, 0x30, 0x9f }, // Violet
		{ 0x77, 0x67, 0x0b }, // Khaki
		{ 0xce, 0xce, 0xce }, // Lt Grey

		{ 0x67, 0x67, 0x67 }, // Grey
		{ 0x5c, 0x80, 0xf6 }, // Lt Blue
		{ 0x56, 0xc4, 0x69 }, // Lt Green
		{ 0x77, 0xe6, 0xeb }, // Lt Blue-Green
		{ 0xc7, 0x51, 0x51 }, // Lt Red
		{ 0xdc, 0x84, 0xe8 }, // Lt Violet
		{ 0xc6, 0xb8, 0x6a }, // Lt Yellow
		{ 0xff, 0xff, 0xff }  // White
	};

	palette.set_pen_colors(0, g7400_colors);
}
开发者ID:SailorSat,项目名称:cabmame,代码行数:24,代码来源:odyssey2.cpp

示例3:

/* Initialize the palette */
void laser3k_state::laser3k_palette(palette_device &palette) const
{
	palette.set_pen_colors(0, laser3k_pens);
}
开发者ID:SailorSat,项目名称:cabmame,代码行数:5,代码来源:laser3k.cpp

示例4: gmaster_palette

void gmaster_state::gmaster_palette(palette_device &palette) const
{
	palette.set_pen_colors(0, gmaster_pens);
}
开发者ID:k2-git,项目名称:mame,代码行数:4,代码来源:gmaster.cpp

示例5:

void vc4000_state::vc4000_palette(palette_device &palette) const
{
	palette.set_pen_colors(0, vc4000_pens);
}
开发者ID:SailorSat,项目名称:cabmame,代码行数:4,代码来源:vc4000.cpp

示例6: atari_palette

/* Initialise the palette */
void atari_common_state::atari_palette(palette_device &palette) const
{
	palette.set_pen_colors(0, atari_pens);
}
开发者ID:SailorSat,项目名称:cabmame,代码行数:5,代码来源:atari400.cpp

示例7: set_printer_palette

void pcw_state::set_printer_palette(palette_device &palette) const
{
	LOGPALETTE("Choosing black on white palette for printer\n");
	palette.set_pen_colors(0, pcw_printer_palette);
}
开发者ID:fesh0r,项目名称:mame-full,代码行数:5,代码来源:pcw.cpp

示例8:

/* Initialise the palette */
void pcw_state::set_8xxx_palette(palette_device &palette) const
{
	LOGPALETTE("Choosing green on white palette for CRT\n");
	palette.set_pen_colors(0, pcw_8xxx_palette);
}
开发者ID:fesh0r,项目名称:mame-full,代码行数:6,代码来源:pcw.cpp


注:本文中的palette_device::set_pen_colors方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。