![]() |
gdk-graphics 0b051eb9b5c1eaa0658babaa4463dd7a80aa9d2c
|
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 (const 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_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 | |
Additional Inherited Members | |
![]() | |
enum class | clear_mode { nothing , color_and_depth , depth_only } |
controls which buffers in the active frame buffer object to clear More... | |
texture camera renders to textures instead of the screen
|
pure virtual |
get a texture attached to the color buffer
Implemented in gdk::webgl1es2_texture_camera.
|
pure virtual |
get the texture attached to the depth buffer
Implemented in gdk::webgl1es2_texture_camera.