CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
IndexType.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
12
14
15#include <cstdint>
16#include <initializer_list>
17
18namespace CeresEngine {
19
20 struct IndexType final : public StructEnum<IndexType> {
24
26 UInt32
27 } raw;
29
30
31 [[nodiscard]] std::size_t getSize() const noexcept;
32 };
33
34} // namespace CeresEngine
#define CE_STRUCT_ENUM_DECL(T)
Definition StructEnum.hpp:49
Definition StructEnum.hpp:18
UInt32 UnderlyingType
Definition StructEnum.hpp:20
Definition Application.hpp:19
std::uint32_t UInt32
Definition DataTypes.hpp:23
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
Definition IndexType.hpp:20
enum CeresEngine::IndexType::@26 raw
@ UInt16
The index buffer is represented as a 16-bit unsigned integer.
Definition IndexType.hpp:23
std::size_t getSize() const noexcept
Gets the size of index.