OpenTTD Source 20241224-master-gf74b0cf984
FMusicDriver_Allegro Class Reference

Factory for allegro's music player. More...

#include <allegro_m.h>

Inheritance diagram for FMusicDriver_Allegro:
DriverFactoryBase

Public Member Functions

DriverCreateInstance () 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.
 

Static Public Attributes

static const int PRIORITY = 2
 

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.
 
- Protected Member Functions inherited from DriverFactoryBase
 DriverFactoryBase (Driver::Type type, int priority, const char *name, const char *description)
 Construct a new DriverFactory.
 
virtual ~DriverFactoryBase ()
 Frees memory used for this->name.
 
virtual bool UsesHardwareAcceleration () const
 Does the driver use hardware acceleration (video-drivers only).
 

Detailed Description

Factory for allegro's music player.

Definition at line 33 of file allegro_m.h.

Constructor & Destructor Documentation

◆ FMusicDriver_Allegro()

FMusicDriver_Allegro::FMusicDriver_Allegro ( )
inline

Definition at line 43 of file allegro_m.h.

Member Function Documentation

◆ CreateInstance()

Driver * FMusicDriver_Allegro::CreateInstance ( ) const
inlineoverridevirtual

Create an instance of this driver-class.

Returns
The instance.

Implements DriverFactoryBase.

Definition at line 44 of file allegro_m.h.

Field Documentation

◆ PRIORITY

const int FMusicDriver_Allegro::PRIORITY = 2
static

Definition at line 41 of file allegro_m.h.


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