Hymn to Beauty
C++ 3D Engine
StaticVertex.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <glm/glm.hpp>
4
5namespace Video {
6class LowLevelRenderer;
7class Buffer;
8class VertexDescription;
9
10namespace Geometry {
11namespace VertexType {
15 glm::vec3 position;
16
19
21 glm::vec3 normal;
22
24 glm::vec3 tangent;
25
27
34 static Buffer* GenerateVertexBuffer(LowLevelRenderer* lowLevelRenderer, StaticVertex* vertices, unsigned int vertexCount);
35
37
43};
44} // namespace VertexType
45} // namespace Geometry
46} // namespace Video
A buffer containing GPU accessible data.
Definition: Buffer.hpp:8
Low level renderer abstracting the underlaying graphics API (OpenGL or Vulkan).
Definition: LowLevelRenderer.hpp:27
Describes how a vertex buffer is accessed by a shader.
Definition: VertexDescription.hpp:8
Definition: AssetEditor.hpp:5
Definition: Editor.hpp:18
Vertex type used for static meshes.
Definition: StaticVertex.hpp:13
glm::vec3 position
Position.
Definition: StaticVertex.hpp:15
static VertexDescription * GenerateVertexDescription(LowLevelRenderer *lowLevelRenderer)
Generate vertex description.
Definition: StaticVertex.cpp:12
glm::vec3 tangent
Tangent vector.
Definition: StaticVertex.hpp:24
static Buffer * GenerateVertexBuffer(LowLevelRenderer *lowLevelRenderer, StaticVertex *vertices, unsigned int vertexCount)
Generate vertex buffer.
Definition: StaticVertex.cpp:8
glm::vec3 normal
Normal.
Definition: StaticVertex.hpp:21
glm::vec2 textureCoordinate
Texture coordinate.
Definition: StaticVertex.hpp:18