93 const std::string&
text,
105 const std::string&
text,
117 const std::string&
text,
void setBlendMode(const asw::Texture &texture, asw::BlendMode mode)
Set the blend mode of a texture.
void sprite(const asw::Texture &tex, const asw::Vec2< float > &position)
Draw a sprite.
void stretchSprite(const asw::Texture &tex, const asw::Quad< float > &position)
Draw a sprite with the option to stretch it.
void rotateSprite(const asw::Texture &tex, const asw::Vec2< float > &position, double angle)
Draw a sprite with the option to rotate it.
void stretchSpriteRotateBlit(const asw::Texture &tex, const asw::Quad< float > &source, const asw::Quad< float > &dest, double angle)
Draw a sprite with the option to stretch and rotate a portion of it.
void textCenter(const asw::Font &font, const std::string &text, const asw::Vec2< float > &position, asw::Color color)
Draw text center aligned.
void line(const asw::Vec2< float > &position1, const asw::Vec2< float > &position2, asw::Color color)
Draw a line.
void rectFill(const asw::Quad< float > &position, asw::Color color)
Draw a filled rectangle.
void stretchSpriteBlit(const asw::Texture &tex, const asw::Quad< float > &source, const asw::Quad< float > &dest)
Draw a sprite with the option to stretch a portion of it.
void setAlpha(const asw::Texture &texture, float alpha)
Set the alpha of a texture.
void rect(const asw::Quad< float > &position, asw::Color color)
Draw a rectangle.
void circle(const asw::Vec2< float > &position, float radius, asw::Color color)
Draw a circle.
void spriteFlip(const asw::Texture &tex, const asw::Vec2< float > &position, bool flipX, bool flipY)
Draw a sprite with the option to flip it.
void circleFill(const asw::Vec2< float > &position, float radius, asw::Color color)
Draw a filled circle.
void point(const asw::Vec2< float > &position, asw::Color color)
Draw a point.
void textRight(const asw::Font &font, const std::string &text, const asw::Vec2< float > &position, asw::Color color)
Draw text right aligned.
void clearColor(asw::Color color)
Clear the screen to a color.
void text(const asw::Font &font, const std::string &text, const asw::Vec2< float > &position, asw::Color color)
Draw text left aligned.
std::shared_ptr< TTF_Font > Font
Alias for a shared pointer to an TTF_Font.
std::shared_ptr< SDL_Texture > Texture
Alias for a shared pointer to an SDL_Texture.
BlendMode
Mappings from SDL_BLENDMODE to ASW BlendMode.
SDL_Color Color
Alias for an SDL_Color.
Types used throughout the ASW library.