openMSX
Functions
openmsx::RendererFactory Namespace Reference

Interface for renderer factories. More...

Functions

unique_ptr< VideoSystemcreateVideoSystem (Reactor &reactor)
 Create the video system required by the current renderer setting. More...
 
unique_ptr< RenderercreateRenderer (VDP &vdp, Display &display)
 Create the Renderer selected by the current renderer setting. More...
 
unique_ptr< V9990RenderercreateV9990Renderer (V9990 &vdp, Display &display)
 Create the V9990 Renderer selected by the current renderer setting. More...
 

Detailed Description

Interface for renderer factories.

Every Renderer type has its own RendererFactory. A RendererFactory can be queried about the availability of the associated Renderer and can instantiate that Renderer.

Function Documentation

◆ createRenderer()

std::unique_ptr< Renderer > openmsx::RendererFactory::createRenderer ( VDP vdp,
Display display 
)

Create the Renderer selected by the current renderer setting.

Parameters
vdpThe VDP whose display will be rendered.
displayTODO

Definition at line 43 of file RendererFactory.cc.

References openmsx::RenderSettings::DUMMY, openmsx::RenderSettings::getRenderer(), openmsx::Display::getRenderSettings(), openmsx::RenderSettings::SDL, openmsx::RenderSettings::SDLGL_PP, and UNREACHABLE.

Referenced by openmsx::VDP::~VDP().

◆ createV9990Renderer()

std::unique_ptr< V9990Renderer > openmsx::RendererFactory::createV9990Renderer ( V9990 vdp,
Display display 
)

Create the V9990 Renderer selected by the current renderer setting.

Parameters
vdpThe V9990 VDP whose display will be rendered.
displayTODO

Definition at line 56 of file RendererFactory.cc.

References openmsx::RenderSettings::DUMMY, openmsx::RenderSettings::getRenderer(), openmsx::Display::getRenderSettings(), openmsx::RenderSettings::SDL, openmsx::RenderSettings::SDLGL_PP, and UNREACHABLE.

Referenced by openmsx::V9990::getPalette().

◆ createVideoSystem()

std::unique_ptr< VideoSystem > openmsx::RendererFactory::createVideoSystem ( Reactor reactor)