charcoal/OpenGLEngine/Poseable2D.h

23 lines
468 B
C
Raw Normal View History

#pragma once
#include <glm/glm.hpp>
#include "Poseable.h"
namespace charcoal
{
class Poseable2D : private Poseable
{
public:
// TODO: Implementation??
Poseable2D(const vec2& position = vec2(0.0f, 0.0f));
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(); }
};
}