charcoal/OpenGLEngine/BuiltinCamera3D.h

27 lines
628 B
C
Raw Normal View History

#pragma once
#include "Prerenderable.h"
#include "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(); }
};
}
}