gdk-graphics  1b6d84e044c2c953fd7c9501e628a67e80f4da0d
Public Member Functions | List of all members
gdk::texture_camera Class Referenceabstract

texture camera renders to textures instead of the screen More...

#include <texture_camera.h>

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

Public Member Functions

virtual const std::shared_ptr< gdk::textureget_color_texture (size_t i=0) const =0
 get a texture attached to the color buffer
 
virtual const std::shared_ptr< gdk::textureget_depth_texture () const =0
 get the texture attached to the depth buffer
 
- Public Member Functions inherited from gdk::camera
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
 

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...
 

Detailed Description

texture camera renders to textures instead of the screen


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