charcoal/OpenGLEngine/Poseable2D.h
elipzer b7456401e0 Almost able to render the image
Added image scene to render an image in a scene. There is also now
a testing image that is an uber meme. Currently the problem is
that the spritebatch cannot use the offsetof macro because it is a
templated class. Possible solutions to this are changing it to be
specifyable or implemented per vertex type as the other batches
have been.
2018-10-09 11:42:17 -04:00

23 lines
468 B
C++

#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(); }
};
}