2018-10-08 19:19:48 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <glm/glm.hpp>
|
|
|
|
|
|
|
|
#include "Poseable.h"
|
|
|
|
|
|
|
|
namespace charcoal
|
|
|
|
{
|
2018-10-09 15:42:17 +00:00
|
|
|
class Poseable2D : private Poseable
|
2018-10-08 19:19:48 +00:00
|
|
|
{
|
|
|
|
public:
|
2018-10-09 15:42:17 +00:00
|
|
|
// TODO: Implementation??
|
|
|
|
Poseable2D(const vec2& position = vec2(0.0f, 0.0f));
|
2018-10-08 19:19:48 +00:00
|
|
|
|
|
|
|
void update_position(const vec2& position);
|
|
|
|
void update_rotation(float angle);
|
|
|
|
|
|
|
|
void translate(const vec2& translation);
|
|
|
|
void rotate(float angle);
|
|
|
|
|
|
|
|
const mat4& get_orientation_matrix() const { return Poseable::get_orientation_matrix(); }
|
|
|
|
};
|
|
|
|
}
|