CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
MeshMetadata.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
10#include "PrimitiveTopology.hpp"
11
12namespace CeresEngine {
13
15 using VertexCount = unsigned int;
16
18 using IndexCount = unsigned int;
19
30
31} // namespace CeresEngine
Definition Application.hpp:19
unsigned int VertexCount
A type that represents the number vertices in a mesh.
Definition Mesh.hpp:40
unsigned int IndexCount
A type that represents the number indices in a mesh.
Definition MeshMetadata.hpp:18
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
Definition MeshMetadata.hpp:20
IndexCount indexCount
The total number of indices in the mesh.
Definition MeshMetadata.hpp:28
PrimitiveTopology primitiveTopology
The primitive topology used to render the mesh.
Definition MeshMetadata.hpp:22
VertexCount vertexCount
The total number of vertices in the mesh.
Definition MeshMetadata.hpp:25
Primitive topology enumeration.
Definition PrimitiveTopology.hpp:21
@ Triangles
Triangle list, where each set of three vertices represent a single triangle primitive.
Definition PrimitiveTopology.hpp:50