OpenTTD Source 20261112-master-gbcbec5e63f
FVideoDriver_Win32D3D11 Class Reference

The factory for Windows' D3D11 video driver. More...

Inheritance diagram for FVideoDriver_Win32D3D11:
DriverFactoryBase

Public Member Functions

 FVideoDriver_Win32D3D11 ()
 Constructor for the D3D11 video driver factory.
std::unique_ptr< Driver > CreateInstance () const override
 Create an instance of this driver-class.
Public Member Functions inherited from DriverFactoryBase
std::string_view GetDescription () const
 Get a nice description of the driver-class.

Protected Member Functions

bool UsesHardwareAcceleration () const override
 Does the driver use hardware acceleration (video-drivers only).
Protected Member Functions inherited from DriverFactoryBase
 DriverFactoryBase (Driver::Type type, int priority, std::string_view name, std::string_view description)
 Construct a new DriverFactory.
virtual ~DriverFactoryBase ()
 Ensure the destructor of the sub classes are called as well.

Additional Inherited Members

Static Public Member Functions inherited from DriverFactoryBase
static void ShutdownDrivers ()
 Shuts down all active drivers.
static void SelectDriver (const std::string &name, Driver::Type type)
 Find the requested driver and return its class.
static void GetDriversInfo (std::back_insert_iterator< std::string > &output_iterator)
 Build a human readable list of available drivers, grouped by type.

Detailed Description

The factory for Windows' D3D11 video driver.

Definition at line 221 of file d3d11_v.cpp.

Constructor & Destructor Documentation

◆ FVideoDriver_Win32D3D11()

FVideoDriver_Win32D3D11::FVideoDriver_Win32D3D11 ( )
inline

Constructor for the D3D11 video driver factory.

Definition at line 224 of file d3d11_v.cpp.

References DriverFactoryBase::DriverFactoryBase().

Member Function Documentation

◆ CreateInstance()

std::unique_ptr< Driver > FVideoDriver_Win32D3D11::CreateInstance ( ) const
inlineoverridevirtual

Create an instance of this driver-class.

Returns
The instance.

Implements DriverFactoryBase.

Definition at line 228 of file d3d11_v.cpp.

◆ UsesHardwareAcceleration()

bool FVideoDriver_Win32D3D11::UsesHardwareAcceleration ( ) const
inlineoverrideprotectedvirtual

Does the driver use hardware acceleration (video-drivers only).

Returns
True if the driver uses hardware acceleration.

Reimplemented from DriverFactoryBase.

Definition at line 234 of file d3d11_v.cpp.


The documentation for this class was generated from the following file: