gdk-graphics  1b6d84e044c2c953fd7c9501e628a67e80f4da0d
texture_camera.h
1 // © Joseph Cameron - All Rights Reserved
2 
3 #ifndef GDK_GFX_TEXTURE_CAMERA_H
4 #define GDK_GFX_TEXTURE_CAMERA_H
5 
6 #include <gdk/camera.h>
7 #include <gdk/graphics_types.h>
8 #include <gdk/texture.h>
9 
10 namespace gdk
11 {
13  class texture_camera : public camera
14  {
15  public:
17  virtual const std::shared_ptr<gdk::texture> get_color_texture(size_t i = 0) const = 0;
18 
20  virtual const std::shared_ptr<gdk::texture> get_depth_texture() const = 0;
21 
22  virtual ~texture_camera() = default;
23  };
24 }
25 
26 #endif
27 
texture camera renders to textures instead of the screen
Definition: texture_camera.h:13
Definition: camera.h:9
virtual const std::shared_ptr< gdk::texture > get_color_texture(size_t i=0) const =0
get a texture attached to the color buffer
Definition: camera.h:11
virtual const std::shared_ptr< gdk::texture > get_depth_texture() const =0
get the texture attached to the depth buffer