gdk-graphics 0b051eb9b5c1eaa0658babaa4463dd7a80aa9d2c
Loading...
Searching...
No Matches
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
10namespace gdk {
12 class texture_camera : public camera {
13 public:
15 virtual const std::shared_ptr<gdk::texture> get_color_texture(const size_t i = 0) const = 0;
16
18 virtual const std::shared_ptr<gdk::texture> get_depth_texture() const = 0;
19
20 virtual ~texture_camera() = default;
21 };
22}
23
24#endif
25
Definition camera.h:10
texture camera renders to textures instead of the screen
Definition texture_camera.h:12
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