7cbe8acf30
Now the code is being compiled through .lib files!
27 lines
646 B
C++
27 lines
646 B
C++
#pragma once
|
|
|
|
#include <charcoal/Prerenderable.h>
|
|
#include <charcoal/Camera3D.h>
|
|
|
|
namespace charcoal
|
|
{
|
|
namespace builtin
|
|
{
|
|
class Camera3D : public Prerenderable, public charcoal::Camera3D
|
|
{
|
|
public:
|
|
Camera3D(
|
|
float fov_y,
|
|
float aspect_ratio,
|
|
float znear,
|
|
float zfar,
|
|
const vec3& position,
|
|
const vec3& forward = vec3(0.0f, 0.0f, 1.0f),
|
|
const vec3& up = vec3(0.0f, 1.0f, 0.0f),
|
|
const vec3& right = vec3(0.0f) // Zero for auto-calculated
|
|
) : charcoal::Camera3D(fov_y, aspect_ratio, znear, zfar, position, forward, up, right) {}
|
|
|
|
void prerender() override { charcoal::Camera3D::prerender(); }
|
|
};
|
|
}
|
|
} |