d63f341d89
Got the builtin basicscene to render. For some reason, it seems like the model matrices are not working correctly. The two shapes that are supposed to be rendering on screen are not moving around as they should be.
21 lines
525 B
C++
21 lines
525 B
C++
#pragma once
|
|
|
|
#include "Prerenderable.h"
|
|
#include "Camera2D.h"
|
|
|
|
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(); }
|
|
};
|
|
}
|
|
} |