gdk-graphics 0b051eb9b5c1eaa0658babaa4463dd7a80aa9d2c
Loading...
Searching...
No Matches
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 (const 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_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

- Public Types inherited from gdk::camera
enum class  clear_mode { nothing , color_and_depth , depth_only }
 controls which buffers in the active frame buffer object to clear More...
 

Detailed Description

texture camera renders to textures instead of the screen

Member Function Documentation

◆ get_color_texture()

virtual const std::shared_ptr< gdk::texture > gdk::texture_camera::get_color_texture ( const size_t i = 0) const
pure virtual

get a texture attached to the color buffer

Implemented in gdk::webgl1es2_texture_camera.

◆ get_depth_texture()

virtual const std::shared_ptr< gdk::texture > gdk::texture_camera::get_depth_texture ( ) const
pure virtual

get the texture attached to the depth buffer

Implemented in gdk::webgl1es2_texture_camera.


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