candlewick 0.6.0
A tiny cross-platform renderer based on SDL3
Loading...
Searching...
No Matches
Scene.h
Go to the documentation of this file.
1#pragma once
2
3#include "Core.h"
4#include <concepts>
5
6namespace candlewick {
7
11template <typename T>
12concept Scene = requires(T t, CommandBuffer &cmdBuf, const Camera &camera) {
13 { t.render(cmdBuf, camera) } -> std::same_as<void>;
14 { t.release() } -> std::same_as<void>;
15};
16
17} // namespace candlewick
Definition CommandBuffer.h:17
The Scene concept requires that there exist functions to render the scene. Provided a command buffer ...
Definition Scene.h:12
Definition Camera.h:8
The main way of using a camera to render things.
Definition Camera.h:19