opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
scene_renderer.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <memory>
6#include <span>
7
8namespace osc { class SceneCache; }
9namespace osc { struct SceneRendererParams; }
10namespace osc { class RenderTexture; }
11
12namespace osc
13{
14 // renders the given `SceneDecoration`s with the given `SceneRendererParams`
15 // to a rasterized `RenderTexture`
16 class SceneRenderer final {
17 public:
21 SceneRenderer& operator=(const SceneRenderer&) = delete;
22 SceneRenderer& operator=(SceneRenderer&&) noexcept;
23 ~SceneRenderer() noexcept;
24
25 void render(std::span<const SceneDecoration>, const SceneRendererParams&);
27
28 private:
29 class Impl;
30 std::unique_ptr<Impl> impl_;
31 };
32}
Definition render_texture.h:18
Definition scene_cache.h:25
Definition scene_renderer.h:16
SceneRenderer(const SceneRenderer &)
RenderTexture & upd_render_texture()
void render(std::span< const SceneDecoration >, const SceneRendererParams &)
SceneRenderer(SceneCache &)
SceneRenderer(SceneRenderer &&) noexcept
Definition custom_decoration_generator.h:5
Definition scene_decoration.h:15
Definition scene_renderer_params.h:13