gdk-graphics 0b051eb9b5c1eaa0658babaa4463dd7a80aa9d2c
Loading...
Searching...
No Matches
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 class  clear_mode { nothing , color_and_depth , depth_only }
 controls which buffers in the active frame buffer object to clear 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_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
 
virtual void set_transform (const gdk::graphics_matrix4x4_type &aMatrix)=0
 
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

enum class gdk::camera::clear_mode
strong

controls which buffers in the active frame buffer object to clear

Enumerator
nothing 

Do not clear any buffers.

color_and_depth 

Clear the color and depth buffers.

depth_only 

Clear the Depth buffer.

Member Function Documentation

◆ set_clear_color()

virtual void gdk::camera::set_clear_color ( const gdk::color & acolor)
pure virtual

sets the clear color, used to fill color buffer after it is cleared.

Implemented in gdk::webgl1es2_screen_camera, and gdk::webgl1es2_texture_camera.

◆ set_clear_mode()

virtual void gdk::camera::set_clear_mode ( const clear_mode aClearMode)
pure virtual

clear mode decides which buffers to clear. see enum

Implemented in gdk::webgl1es2_screen_camera, and gdk::webgl1es2_texture_camera.

◆ set_orthographic_projection()

virtual void gdk::camera::set_orthographic_projection ( const float aWidth,
const float aHeight,
const float aNearClippingPlane,
const float aFarClippingPlane,
const float aViewportAspectRatio )
pure virtual

sets the projection matrix to an orthographic projection

Implemented in gdk::webgl1es2_screen_camera, and gdk::webgl1es2_texture_camera.

◆ set_perspective_projection()

virtual void gdk::camera::set_perspective_projection ( const float aFieldOfView,
const float aNearClippingPlane,
const float aFarClippingPlane,
const float aViewportAspectRatio )
pure virtual

sets the projection matrix to a perspective projection

Implemented in gdk::webgl1es2_screen_camera, and gdk::webgl1es2_texture_camera.

◆ set_transform()

virtual void gdk::camera::set_transform ( const gdk::graphics_vector3_type & aWorldPos,
const gdk::graphics_quaternion_type & aRotation )
pure virtual

checks whether a point in world space is within the camera's frustum

sets the camera's world and view matrix

Implemented in gdk::webgl1es2_screen_camera, and gdk::webgl1es2_texture_camera.


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