My Project
 
Loading...
Searching...
No Matches
types.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_TYPES_H_
6#define ENGINE_LIB_TYPES_H_
7
8#include <cstdint>
9#include <expected>
10#include <system_error>
11#include <unordered_map>
12
13#include "gl-types.h"
14
16
17enum class ErrorCode : std::uint8_t {
18 // kNoError = 0,
19 kGladLoadGL = 1,
30 kNumErrorCodes // Sentinel value to track enum size
31};
32
33template <typename T>
34using Expected = std::expected<T, std::error_code>;
35
36using ShaderSourceMap = std::unordered_map<gl_types::GLShaderType, std::string>;
37
38} // namespace graphics_engine::types
39
40#endif // ENGINE_LIB_TYPES_H_
Definition types.h:15
ErrorCode
Definition types.h:17
std::unordered_map< gl_types::GLShaderType, std::string > ShaderSourceMap
Definition types.h:36
std::expected< T, std::error_code > Expected
Definition types.h:34