#include "Sprite.h" namespace charcoal { Sprite::Sprite(const vec2& position) : Poseable(vec3(position, 0.0f)) {} void Sprite::update_position(const vec2& position) { Poseable::update_position(vec3(position, 0.0f)); } void Sprite::update_rotation(float angle) { Poseable::reset_orientation(); rotate(angle); } void Sprite::translate(const vec2& translation) { Poseable::translate(vec3(translation, 0.0f)); } void Sprite::rotate(float angle) { Poseable::rotate(vec3(0.0f, 0.0f, 1.0f), angle); } }