My Project
 
Loading...
Searching...
No Matches
engine.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_ENGINE_H_
6#define ENGINE_LIB_ENGINE_H_
7
8#include "dll-export.h"
9#include "glm/vec4.hpp"
10#include "types.h"
11
13
17
20DLLEXPORT [[nodiscard]] auto Render() -> types::Expected<void>;
21
24DLLEXPORT auto SetBackgroundColor(const glm::vec4& color) -> void;
25
26} // namespace graphics_engine::engine
27
28#endif // ENGINE_LIB_ENGINE_H_
#define DLLEXPORT
Definition dll-export.h:19
Definition engine.h:12
DLLEXPORT auto Render() -> types::Expected< void >
Render everything in the graphics engine.
DLLEXPORT auto SetBackgroundColor(const glm::vec4 &color) -> void
Sets the background color for the rendering engine.
DLLEXPORT auto InitializeEngine() -> types::Expected< void >
Initialize the graphics engine.
std::expected< T, std::error_code > Expected
Definition types.h:34