ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
Loading...
Searching...
No Matches
types.h File Reference

Types used throughout the ASW library. More...

#include <SDL3/SDL.h>
#include <SDL3_mixer/SDL_mixer.h>
#include <SDL3_ttf/SDL_ttf.h>
#include <memory>
Include dependency graph for types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  asw
 

Typedefs

using asw::Texture = std::shared_ptr<SDL_Texture>
 Alias for a shared pointer to an SDL_Texture.
 
using asw::Font = std::shared_ptr<TTF_Font>
 Alias for a shared pointer to an TTF_Font.
 
using asw::Sample = std::shared_ptr<MIX_Audio>
 Alias for a shared pointer to an MIX_Audio.
 
using asw::Music = std::shared_ptr<MIX_Audio>
 Alias for a shared pointer to an MIX_Audio.
 
using asw::Renderer = SDL_Renderer
 Alias for a shared pointer to an SDL_Renderer.
 
using asw::Window = SDL_Window
 Alias for a shared pointer to an SDL_Window.
 

Enumerations

enum class  asw::BlendMode {
  asw::None = SDL_BLENDMODE_NONE , asw::Blend = SDL_BLENDMODE_BLEND , asw::BlendPremultiplied = SDL_BLENDMODE_BLEND_PREMULTIPLIED , asw::Add = SDL_BLENDMODE_ADD ,
  asw::AddPremultiplied = SDL_BLENDMODE_ADD_PREMULTIPLIED , asw::Modulate = SDL_BLENDMODE_MOD , asw::Multiply = SDL_BLENDMODE_MUL
}
 Mappings from SDL_BLENDMODE to ASW BlendMode. More...
 
enum class  asw::TextJustify { asw::Left , asw::Center , asw::Right }
 Text justification options for text rendering. More...
 

Detailed Description

Types used throughout the ASW library.

Author
Allan Legemaate (alege.nosp@m.maat.nosp@m.e@gma.nosp@m.il.c.nosp@m.om)
Date
2023-09-20

Definition in file types.h.