gdk-graphics 0a0aef92e917cfbac53dffbc32c295e4de914093
Loading...
Searching...
No Matches
texture_camera.h
1// © Joseph Cameron - MIT License
2
3#ifndef GDK_GRAPHICS_TEXTURE_CAMERA_H
4#define GDK_GRAPHICS_TEXTURE_CAMERA_H
5
6#include <gdk/graphics/camera.h>
7#include <gdk/graphics/types.h>
8#include <gdk/graphics/texture.h>
9
10namespace gdk::graphics {
12 class texture_camera : public camera {
13 public:
15 [[nodiscard]] virtual texture_ptr_type color_texture() const = 0;
16
19 [[nodiscard]] virtual texture_ptr_type depth_texture() const = 0;
20
21 virtual ~texture_camera() = default;
22 };
23}
24
25#endif
26
a point of view a scene is drawn from. A camera starts at the origin looking down -Z,...
Definition camera.h:12
texture camera renders to textures instead of the screen
Definition texture_camera.h:12
virtual texture_ptr_type color_texture() const =0
the texture the camera draws colour into
virtual texture_ptr_type depth_texture() const =0
the texture the camera draws depth into