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
6
namespace
candlewick
{
7
11
template
<
typename
T>
12
concept
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
Core.h
candlewick::CommandBuffer
Definition
CommandBuffer.h:17
candlewick::Scene
The Scene concept requires that there exist functions to render the scene. Provided a command buffer ...
Definition
Scene.h:12
candlewick
Definition
Camera.h:8
candlewick::Camera
The main way of using a camera to render things.
Definition
Camera.h:19
src
candlewick
core
Scene.h
Generated by
1.13.2