![]() |
gdk-graphics
1b6d84e044c2c953fd7c9501e628a67e80f4da0d
|
texture camera renders to textures instead of the screen More...
#include <texture_camera.h>
Public Member Functions | |
virtual const std::shared_ptr< gdk::texture > | get_color_texture (size_t i=0) const =0 |
get a texture attached to the color buffer | |
virtual const std::shared_ptr< gdk::texture > | get_depth_texture () const =0 |
get the texture attached to the depth buffer | |
![]() | |
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 | |
![]() | |
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... | |
texture camera renders to textures instead of the screen