1#ifndef YAZE_APP_GFX_BACKEND_RENDERER_FACTORY_H_
2#define YAZE_APP_GFX_BACKEND_RENDERER_FACTORY_H_
56 static std::unique_ptr<IRenderer>
Create(
61 return std::make_unique<SDL2Renderer>();
68 return std::make_unique<SDL3Renderer>();
71 return std::make_unique<SDL2Renderer>();
79 return std::make_unique<SDL3Renderer>();
81 return std::make_unique<SDL2Renderer>();
Factory class for creating IRenderer instances.
static RendererBackendType GetDefaultBackendType()
Get the default backend type for this build.
static std::unique_ptr< IRenderer > Create(RendererBackendType type=RendererBackendType::kDefault)
Create a renderer instance with the specified backend type.
static const char * GetBackendName(RendererBackendType type)
Get a string name for a backend type.
static bool IsBackendAvailable(RendererBackendType type)
Check if a specific backend type is available in this build.
RendererBackendType
Enumeration of available rendering backend types.
@ SDL3
SDL3 renderer backend.
@ SDL2
SDL2 renderer backend.
@ kAutoDetect
Automatically select the best available backend.
@ kDefault
Use the default backend based on build configuration.