2018-09-13 23:21:34 +00:00
|
|
|
#pragma once
|
|
|
|
|
2018-10-11 05:26:24 +00:00
|
|
|
#include <charcoal/Prerenderable.h>
|
|
|
|
#include <charcoal/Camera2D.h>
|
2018-09-13 23:21:34 +00:00
|
|
|
|
|
|
|
namespace charcoal
|
|
|
|
{
|
|
|
|
namespace builtin
|
|
|
|
{
|
|
|
|
class Camera2D : public Prerenderable, public charcoal::Camera2D
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Camera2D(const vec2& size, const vec2& position = vec2(0.0f, 0.0f))
|
|
|
|
: charcoal::Camera2D(size, position) {}
|
|
|
|
Camera2D(const vec3& size = vec3(2.0f, 2.0f, 2.0f), const vec3& position = vec3(0.0f, 0.0f, 0.0f))
|
|
|
|
: charcoal::Camera2D(size, position) {}
|
|
|
|
|
|
|
|
void prerender() override { charcoal::Camera2D::prerender(); }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|