gdk-graphics  1b6d84e044c2c953fd7c9501e628a67e80f4da0d
Public Member Functions | List of all members
gdk::webgl1es2_texture_camera Class Referencefinal

webgl1es2_camera implementation of texture_camera More...

#include <webgl1es2_texture_camera.h>

Inheritance diagram for gdk::webgl1es2_texture_camera:
gdk::texture_camera gdk::webgl1es2_camera gdk::camera

Public Member Functions

 webgl1es2_texture_camera (const graphics_intvector2_type &textureSize={1024, 1024})
 
external interface
virtual void set_perspective_projection (const float aFieldOfView, const float aNearClippingPlane, const float aFarClippingPlane, const float aViewportAspectRatio) override
 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) override
 sets the projection matrix to an orthographic projection
 
virtual void set_clear_color (const gdk::color &acolor) override
 sets the clear color, used to fill color buffer after it is cleared.
 
virtual void set_clear_mode (const clear_mode aClearMode) override
 clear mode decides which buffers to clear. see enum
 
virtual void set_view_matrix (const gdk::graphics_vector3_type &aWorldPos, const gdk::graphics_quaternion_type &aRotation) override
 rebuilds the view matrix from a 3d position and rotation
 
virtual const std::shared_ptr< gdk::textureget_color_texture (size_t i) const override
 get a texture attached to the color buffer
 
virtual const std::shared_ptr< gdk::textureget_depth_texture () const override
 get the texture attached to the depth buffer
 
internal interface
void activate () const
 
- Public Member Functions inherited from gdk::webgl1es2_camera
 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
 
graphics_mat4x4_type get_view_matrix () const
 gets the view matrix
 
graphics_mat4x4_type get_projection_matrix () const
 gets the projection matrix
 

Additional Inherited Members

- Public Types inherited from gdk::camera
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...
 
- Protected Member Functions inherited from gdk::webgl1es2_camera
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_view_matrix (const gdk::graphics_vector3_type &aWorldPos, const gdk::graphics_quaternion_type &aRotation)
 
void activate_clear_mode () const
 
camera::clear_mode get_clearmode () const
 
gdk::color get_clearcolor () const
 

Detailed Description

webgl1es2_camera implementation of texture_camera


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