13#include <SDL3_mixer/SDL_mixer.h>
14#include <SDL3_ttf/SDL_ttf.h>
27 None = SDL_BLENDMODE_NONE,
28 Blend = SDL_BLENDMODE_BLEND,
30 Add = SDL_BLENDMODE_ADD,
36static_assert(std::is_same_v<std::underlying_type_t<BlendMode>, SDL_BlendMode>,
37 "BlendMode must share SDL_BlendMode's underlying type");
41 Nearest = SDL_SCALEMODE_NEAREST,
42 Linear = SDL_SCALEMODE_LINEAR,
76using Texture = std::shared_ptr<SDL_Texture>;
79using Font = std::shared_ptr<TTF_Font>;
82using Sample = std::shared_ptr<MIX_Audio>;
85using Music = std::shared_ptr<MIX_Audio>;
std::shared_ptr< TTF_Font > Font
Alias for a shared pointer to an TTF_Font.
std::shared_ptr< MIX_Audio > Sample
Alias for a shared pointer to an MIX_Audio.
std::shared_ptr< SDL_Texture > Texture
Alias for a shared pointer to an SDL_Texture.
std::shared_ptr< MIX_Audio > Music
Alias for a shared pointer to an MIX_Audio.
BlendMode
Mappings from SDL_BLENDMODE to ASW BlendMode.
ScaleMode
Mappings from SDL_SCALEMODE to ASW ScaleMode.
Falloff
How a gradient or light fades from its centre to its edge.
@ Quadratic
Bright core that drops off quickly, closer to a real light.
@ Smooth
Soft at the centre and at the edge.
SDL_Window Window
Alias for a shared pointer to an SDL_Window.
FontStyle
How a font's glyphs are rendered.
TextJustify
Text justification options for text rendering.
SDL_Renderer Renderer
Alias for a shared pointer to an SDL_Renderer.