Hymn to Beauty
C++ 3D Engine
VertexDescription.hpp
Go to the documentation of this file.
1#pragma once
2
3namespace Video {
4
5class Buffer;
6
9 public:
11 enum class AttributeType {
13 INT,
14 FLOAT
15 };
16
18 struct Attribute {
20 unsigned int size;
21
24
27 };
28
31
33 virtual ~VertexDescription() {}
34
35 private:
36 VertexDescription(const VertexDescription& other) = delete;
37};
38
39}
Describes how a vertex buffer is accessed by a shader.
Definition: VertexDescription.hpp:8
VertexDescription()
Create a new vertex description.
Definition: VertexDescription.hpp:30
AttributeType
The type of a vertex attribute.
Definition: VertexDescription.hpp:11
virtual ~VertexDescription()
Destructor.
Definition: VertexDescription.hpp:33
Definition: Editor.hpp:18
Describes an attribute used in a vertex shader.
Definition: VertexDescription.hpp:18
bool normalized
Whether the values should be normalized when accessed.
Definition: VertexDescription.hpp:26
unsigned int size
The number of components in the attribute.
Definition: VertexDescription.hpp:20
AttributeType type
The type of each component in the attribute.
Definition: VertexDescription.hpp:23