My Project
 
Loading...
Searching...
No Matches
scene.h
Go to the documentation of this file.
1// Copyright (c) 2025 Milton McDonald
2// This source code is licensed under the MIT License. See LICENSE file in the
3// project root for details.
4
5#ifndef ENGINE_LIB_SCENE_H_
6#define ENGINE_LIB_SCENE_H_
7
8#include <memory>
9
10#include "types.h"
11
13
14class Scene {
15 public:
16 virtual ~Scene() = default;
17 [[nodiscard]] virtual auto Render() const -> types::Expected<void> = 0;
18};
19
20using ScenePtr = std::unique_ptr<Scene>;
21
22} // namespace graphics_engine::scene
23
24#endif // ENGINE_LIB_SCENE_H_
Definition scene.h:14
virtual auto Render() const -> types::Expected< void >=0
Definition scene.h:12
std::unique_ptr< Scene > ScenePtr
Definition scene.h:20