-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathvertexattribute.hpp
More file actions
46 lines (44 loc) · 1.33 KB
/
vertexattribute.hpp
File metadata and controls
46 lines (44 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once
#include <fea/config.hpp>
#include <cstdint>
#include <cstddef>
#include <string>
#include <vector>
namespace fea
{
enum VertexAttributeType{AVEC2, AVEC4};
struct FEA_API VertexAttribute
{
VertexAttribute(std::string name, uint32_t floatAmount, std::vector<float> data);
std::string mName;
uint32_t mAttributeFloatAmount;
std::vector<float> mData;
};
/** @addtogroup Render2D
*@{
* @class VertexAttribute
* @enum VertexAttributeType
*@}
***
* @class VertexAttribute
* @brief Defines a vertex attribute.
***
* @enum VertexAttributeType
* @brief Type of the attribute.
***
* @fn VertexAttribute::VertexAttribute(std::string name, uint32_t floatAmount, std::vector<float> data)
* @brief Construct a vertex attribute.
* @param mName name;
* @param mAttributeFloatAmount Amount of floats per attribute
* @param mData Float array.
***
* @var VertexAttribute::mName
* @brief Name of the attribute.
***
* @var VertexAttribute::mAttributeFloatAmount
* @brief The amount of floats per attribute. For example, a 2D coordinate would have 2 (x and y), and a colour would have 4 (r, g, b and a).
***
* @var VertexAttribute::mData
* @brief Data array.
***/
}