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_Chunk>
 Alias for a shared pointer to an Mix_Chunk.
 
using asw::Music = std::shared_ptr<Mix_Music>
 Alias for a shared pointer to an Mix_Music.
 
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.
 
using asw::Color = SDL_Color
 Alias for an SDL_Color.
 

Enumerations

enum class  asw::BlendMode {
  asw::NONE = SDL_BLENDMODE_NONE , asw::BLEND = SDL_BLENDMODE_BLEND , asw::BLEND_PREMULTIPLIED = SDL_BLENDMODE_BLEND_PREMULTIPLIED , asw::ADD = SDL_BLENDMODE_ADD ,
  asw::ADD_PREMULTIPLIED = SDL_BLENDMODE_ADD_PREMULTIPLIED , asw::MODULATE = SDL_BLENDMODE_MOD , asw::MULTIPLY = SDL_BLENDMODE_MUL
}
 Mappings from SDL_BLENDMODE to ASW BlendMode. 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.