3#ifndef GDK_GFX_CAMERA_H
4#define GDK_GFX_CAMERA_H
7#include <gdk/graphics_types.h>
21 const float aNearClippingPlane,
22 const float aFarClippingPlane,
23 const float aViewportAspectRatio) = 0;
28 const float aNearClippingPlane,
29 const float aFarClippingPlane,
30 const float aViewportAspectRatio) = 0;
42 const gdk::graphics_quaternion_type &aRotation) = 0;
43 virtual void set_transform(
const gdk::graphics_matrix4x4_type &aMatrix) = 0;
virtual void set_orthographic_projection(const float aWidth, const float aHeight, const float aNearClippingPlane, const float aFarClippingPlane, const float aViewportAspectRatio)=0
sets the projection matrix to an orthographic projection
virtual void set_clear_mode(const clear_mode aClearMode)=0
clear mode decides which buffers to clear. see enum
virtual void set_transform(const gdk::graphics_vector3_type &aWorldPos, const gdk::graphics_quaternion_type &aRotation)=0
checks whether a point in world space is within the camera's frustum
clear_mode
controls which buffers in the active frame buffer object to clear
Definition camera.h:13
@ depth_only
Clear the Depth buffer.
Definition camera.h:16
@ nothing
Do not clear any buffers.
Definition camera.h:14
@ color_and_depth
Clear the color and depth buffers.
Definition camera.h:15
virtual void set_perspective_projection(const float aFieldOfView, const float aNearClippingPlane, const float aFarClippingPlane, const float aViewportAspectRatio)=0
sets the projection matrix to a perspective projection
virtual void set_clear_color(const gdk::color &acolor)=0
sets the clear color, used to fill color buffer after it is cleared.
Represents a 4 channel color: {Red, Green, Blue, Alpha}. TODO: channel values should be limited to th...
Definition color.h:11