OpenTTD Source 20241224-master-gee860a5c8e
FBlitter_40bppAnim Class Reference

Factory for the 40 bpp animated blitter (for OpenGL). More...

#include <40bpp_anim.hpp>

Inheritance diagram for FBlitter_40bppAnim:
BlitterFactory

Public Member Functions

BlitterCreateInstance () override
 Create an instance of this Blitter-class.
 
- Public Member Functions inherited from BlitterFactory
std::string_view GetName () const
 Get the long, human readable, name for the Blitter-class.
 
std::string_view GetDescription () const
 Get a nice description of the blitter-class.
 

Protected Member Functions

bool IsUsable () const override
 Is the blitter usable with the current drivers and hardware config?
 
- Protected Member Functions inherited from BlitterFactory
 BlitterFactory (const char *name, const char *description, bool usable=true)
 Construct the blitter, and register it.
 

Additional Inherited Members

- Static Public Member Functions inherited from BlitterFactory
static BlitterSelectBlitter (const std::string_view name)
 Find the requested blitter and return its class.
 
static BlitterFactoryGetBlitterFactory (const std::string_view name)
 Get the blitter factory with the given name.
 
static BlitterGetCurrentBlitter ()
 Get the current active blitter (always set by calling SelectBlitter).
 
static void GetBlittersInfo (std::back_insert_iterator< std::string > &output_iterator)
 Fill a buffer with information about the blitters.
 

Detailed Description

Factory for the 40 bpp animated blitter (for OpenGL).

Definition at line 48 of file 40bpp_anim.hpp.

Constructor & Destructor Documentation

◆ FBlitter_40bppAnim()

FBlitter_40bppAnim::FBlitter_40bppAnim ( )
inline

Definition at line 56 of file 40bpp_anim.hpp.

Member Function Documentation

◆ CreateInstance()

Blitter * FBlitter_40bppAnim::CreateInstance ( )
inlineoverridevirtual

Create an instance of this Blitter-class.

Implements BlitterFactory.

Definition at line 57 of file 40bpp_anim.hpp.

◆ IsUsable()

bool FBlitter_40bppAnim::IsUsable ( ) const
inlineoverrideprotectedvirtual

Is the blitter usable with the current drivers and hardware config?

Returns
True if the blitter can be instantiated.

Reimplemented from BlitterFactory.

Definition at line 50 of file 40bpp_anim.hpp.

References VideoDriver::GetInstance(), and VideoDriver::HasAnimBuffer().


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