3 #ifndef GDK_GFX_WEBGL1ES2_CAMERA_H 4 #define GDK_GFX_WEBGL1ES2_CAMERA_H 6 #include <gdk/camera.h> 8 #include <gdk/graphics_types.h> 9 #include <gdk/webgl1es2_texture.h> 11 #include <jfc/unique_handle.h> 53 void set_perspective_projection(
const float aFieldOfView,
54 const float aNearClippingPlane,
55 const float aFarClippingPlane,
56 const float aViewportAspectRatio);
58 void set_orthographic_projection(
const float aWidth,
60 const float aNearClippingPlane,
61 const float aFarClippingPlane,
62 const float aViewportAspectRatio);
64 void set_clear_color(
const gdk::color& acolor);
68 void set_view_matrix(
const gdk::graphics_vector3_type& aWorldPos,
69 const gdk::graphics_quaternion_type& aRotation);
71 void activate_clear_mode()
const;
78 graphics_mat4x4_type m_ViewMatrix = graphics_mat4x4_type::Identity;
79 graphics_mat4x4_type m_ProjectionMatrix = graphics_mat4x4_type::Identity;
graphics_mat4x4_type get_view_matrix() const
gets the view matrix
static const color CornflowerBlue
an opaque pastel blue color
Definition: color.h:61
webgl1es2_camera & operator=(const webgl1es2_camera &a)=default
copy semantics
Clear the color and depth buffers.
webgl1es2_camera()
constructs with reasonable default values
clear_mode
Describes camera clear behaviour: which buffers in the current FBO should be cleared?
Definition: camera.h:16
webgl1es2_camera implementation of camera
Definition: webgl1es2_camera.h:21
graphics_mat4x4_type get_projection_matrix() const
gets the projection matrix
Represents a 4 channel color: {Red, Green, Blue, Alpha}.
Definition: color.h:11