gdk-graphics  1b6d84e044c2c953fd7c9501e628a67e80f4da0d
Public Types | Public Member Functions | List of all members
gdk::camera Class Referenceabstract
Inheritance diagram for gdk::camera:
gdk::screen_camera gdk::texture_camera gdk::webgl1es2_screen_camera gdk::webgl1es2_texture_camera

Public Types

enum  clear_mode { clear_mode::nothing, clear_mode::color_and_depth, clear_mode::depth_only }
 Describes camera clear behaviour: which buffers in the current FBO should be cleared? More...
 

Public Member Functions

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_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_view_matrix (const gdk::graphics_vector3_type &aWorldPos, const gdk::graphics_quaternion_type &aRotation)=0
 rebuilds the view matrix from a 3d position and rotation
 
virtual void set_clear_color (const gdk::color &acolor)=0
 sets the clear color, used to fill color buffer after it is cleared.
 
virtual void set_clear_mode (const clear_mode aClearMode)=0
 clear mode decides which buffers to clear. see enum
 

Member Enumeration Documentation

◆ clear_mode

Describes camera clear behaviour: which buffers in the current FBO should be cleared?

Enumerator
nothing 

Do not clear any buffers.

color_and_depth 

Clear the color and depth buffers.

depth_only 

Clear the Depth buffer.


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