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
asw Namespace Reference

Namespaces

namespace  assets
 
namespace  core
 
namespace  display
 
namespace  draw
 
namespace  game
 
namespace  input
 
namespace  random
 
namespace  scene
 
namespace  sound
 
namespace  util
 

Classes

class  Quad
 A 2D rectangle in space. More...
 
class  Vec2
 A 2D vector in space. More...
 

Typedefs

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

Enumerations

enum class  BlendMode {
  NONE = SDL_BLENDMODE_NONE , BLEND = SDL_BLENDMODE_BLEND , BLEND_PREMULTIPLIED = SDL_BLENDMODE_BLEND_PREMULTIPLIED , ADD = SDL_BLENDMODE_ADD ,
  ADD_PREMULTIPLIED = SDL_BLENDMODE_ADD_PREMULTIPLIED , MODULATE = SDL_BLENDMODE_MOD , MULTIPLY = SDL_BLENDMODE_MUL
}
 Mappings from SDL_BLENDMODE to ASW BlendMode. More...
 

Typedef Documentation

◆ Color

using asw::Color = SDL_Color

Alias for an SDL_Color.

Definition at line 38 of file types.h.

◆ Font

using asw::Font = std::shared_ptr<TTF_Font>

Alias for a shared pointer to an TTF_Font.

Definition at line 23 of file types.h.

◆ Music

using asw::Music = std::shared_ptr<Mix_Music>

Alias for a shared pointer to an Mix_Music.

Definition at line 29 of file types.h.

◆ Renderer

using asw::Renderer = SDL_Renderer

Alias for a shared pointer to an SDL_Renderer.

Definition at line 32 of file types.h.

◆ Sample

using asw::Sample = std::shared_ptr<Mix_Chunk>

Alias for a shared pointer to an Mix_Chunk.

Definition at line 26 of file types.h.

◆ Texture

using asw::Texture = std::shared_ptr<SDL_Texture>

Alias for a shared pointer to an SDL_Texture.

Definition at line 20 of file types.h.

◆ Window

using asw::Window = SDL_Window

Alias for a shared pointer to an SDL_Window.

Definition at line 35 of file types.h.

Enumeration Type Documentation

◆ BlendMode

enum class asw::BlendMode
strong

Mappings from SDL_BLENDMODE to ASW BlendMode.

Enumerator
NONE 
BLEND 
BLEND_PREMULTIPLIED 
ADD 
ADD_PREMULTIPLIED 
MODULATE 
MULTIPLY 

Definition at line 41 of file types.h.