gdk-graphics 0b051eb9b5c1eaa0658babaa4463dd7a80aa9d2c
Loading...
Searching...
No Matches
gdk::webgl1es2_camera Class Reference

webgl1es2_camera implementation of camera More...

#include <webgl1es2_camera.h>

Inheritance diagram for gdk::webgl1es2_camera:
gdk::webgl1es2_screen_camera gdk::webgl1es2_texture_camera

Public Member Functions

 webgl1es2_camera (const webgl1es2_camera &a)=default
 copy semantics
 
webgl1es2_cameraoperator= (const webgl1es2_camera &a)=default
 copy semantics
 
 webgl1es2_camera (webgl1es2_camera &&)=default
 move semantics
 
webgl1es2_cameraoperator= (webgl1es2_camera &&a)=default
 move semantics
 
 webgl1es2_camera ()
 constructs with reasonable default values
 
internal interface
graphics_matrix4x4_type get_world_matrix () const
 position and rotation of the camera in worldspace, same as an entity model matrix
 
graphics_matrix4x4_type get_view_matrix () const
 gets the view matrix
 
graphics_matrix4x4_type get_projection_matrix () const
 gets the projection matrix
 

Protected Member Functions

descendant's interface
void set_perspective_projection (const float aFieldOfView, const float aNearClippingPlane, const float aFarClippingPlane, const float aViewportAspectRatio)
 
void set_orthographic_projection (const float aWidth, const float aHeight, const float aNearClippingPlane, const float aFarClippingPlane, const float aViewportAspectRatio)
 
void set_clear_color (const gdk::color &acolor)
 
void set_clear_mode (const gdk::camera::clear_mode aClearMode)
 
void set_transform (const gdk::graphics_vector3_type &aWorldPos, const gdk::graphics_quaternion_type &aRotation)
 
void set_transform (const gdk::graphics_matrix4x4_type &aMatrix)
 
void activate_clear_mode () const
 
camera::clear_mode get_clearmode () const
 
gdk::color get_clearcolor () const
 

Detailed Description

webgl1es2_camera implementation of camera

Member Function Documentation

◆ get_view_matrix()

graphics_matrix4x4_type gdk::webgl1es2_camera::get_view_matrix ( ) const

gets the view matrix

Note
the view matrix is the inverse of the world matrix

The documentation for this class was generated from the following file: