yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::platform::WindowBackendFactory Class Reference

Factory for creating window backends. More...

#include <iwindow.h>

Static Public Member Functions

static std::unique_ptr< IWindowBackendCreate (WindowBackendType type)
 Create a window backend of the specified type.
 
static WindowBackendType GetDefaultType ()
 Get the default backend type for this build.
 
static bool IsAvailable (WindowBackendType type)
 Check if a backend type is available.
 

Detailed Description

Factory for creating window backends.

Definition at line 281 of file iwindow.h.

Member Function Documentation

◆ Create()

std::unique_ptr< IWindowBackend > yaze::platform::WindowBackendFactory::Create ( WindowBackendType type)
static

Create a window backend of the specified type.

Parameters
typeThe type of backend to create
Returns
Unique pointer to the created backend

Definition at line 15 of file window_backend_factory.cc.

References yaze::platform::Auto, Create(), GetDefaultType(), LOG_WARN, yaze::platform::SDL2, and yaze::platform::SDL3.

Referenced by Create(), main(), and yaze::Controller::OnEntry().

Here is the call graph for this function:

◆ GetDefaultType()

WindowBackendType yaze::platform::WindowBackendFactory::GetDefaultType ( )
static

Get the default backend type for this build.

Definition at line 42 of file window_backend_factory.cc.

References yaze::platform::SDL2, and yaze::platform::SDL3.

Referenced by Create(), main(), and yaze::Controller::OnEntry().

◆ IsAvailable()

bool yaze::platform::WindowBackendFactory::IsAvailable ( WindowBackendType type)
static

Check if a backend type is available.

Definition at line 50 of file window_backend_factory.cc.

References yaze::platform::Auto, yaze::platform::SDL2, and yaze::platform::SDL3.


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