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  color
 Color constants.
 
namespace  core
 
namespace  display
 
namespace  draw
 
namespace  easing
 
namespace  game
 
namespace  input
 
namespace  log
 
namespace  random
 
namespace  scene
 
namespace  sound
 
namespace  ui
 
namespace  util
 

Classes

struct  Color
 RGBA color struct with 8-bit channels. More...
 
struct  ParticleConfig
 Configuration for particle emitters. More...
 
class  ParticleEmitter
 Particle emitter that integrates with the scene system. More...
 
class  Quad
 A 2D rectangle in space. More...
 
class  Vec2
 A 2D vector in space. More...
 
class  Vec3
 A 3D 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.
 

Enumerations

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

Typedef Documentation

◆ Font

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

Alias for a shared pointer to an TTF_Font.

Definition at line 41 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 47 of file types.h.

◆ Renderer

using asw::Renderer = SDL_Renderer

Alias for a shared pointer to an SDL_Renderer.

Definition at line 50 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 44 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 38 of file types.h.

◆ Window

using asw::Window = SDL_Window

Alias for a shared pointer to an SDL_Window.

Definition at line 53 of file types.h.

Enumeration Type Documentation

◆ BlendMode

enum class asw::BlendMode
strong

Mappings from SDL_BLENDMODE to ASW BlendMode.

Enumerator
None 
Blend 
BlendPremultiplied 
Add 
AddPremultiplied 
Modulate 
Multiply 

Definition at line 20 of file types.h.

◆ TextJustify

enum class asw::TextJustify
strong

Text justification options for text rendering.

Enumerator
Left 
Center 
Right 

Definition at line 31 of file types.h.