openMSX
Functions
openmsx::GLScalerFactory Namespace Reference

Functions

std::unique_ptr< GLScalercreateScaler (RenderSettings &renderSettings, unsigned maxWidth, unsigned maxHeight)
 Instantiates a Scaler.
 

Function Documentation

◆ createScaler()

std::unique_ptr< GLScaler > openmsx::GLScalerFactory::createScaler ( RenderSettings renderSettings,
unsigned  maxWidth,
unsigned  maxHeight 
)

Instantiates a Scaler.

Returns
A Scaler object, owned by the caller.

Definition at line 14 of file GLScalerFactory.cc.

References gl::context, openmsx::RenderSettings::getScaleAlgorithm(), and UNREACHABLE.

Referenced by openmsx::PostProcessor::paint().