candlewick 0.1.0
A renderer
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
14template <typename T>
15concept Scene = requires(T t, CommandBuffer &cmdBuf, const Camera &camera) {
16 { t.render(cmdBuf, camera) } -> std::same_as<void>;
17 { t.release() } -> std::same_as<void>;
18};
19
20} // namespace candlewick
Definition CommandBuffer.h:17
Definition Scene.h:15
Definition Camera.h:8
The main way of using a camera to render things.
Definition Camera.h:19