LibCarna Version 3.4.0
Loading...
Searching...
No Matches
VertexAttributes.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2010 - 2016 Leonid Kostrykin
3 *
4 * Chair of Medical Engineering (mediTEC)
5 * RWTH Aachen University
6 * Pauwelsstr. 20
7 * 52074 Aachen
8 * Germany
9 *
10 *
11 * Copyright (C) 2021 - 2025 Leonid Kostrykin
12 *
13 */
14
15#ifndef VERTEXATTRIBUTES_H_6014714286
16#define VERTEXATTRIBUTES_H_6014714286
17
18#include <LibCarna/LibCarna.hpp>
19#include <vector>
20
26namespace LibCarna
27{
28
29namespace base
30{
31
32
33
34// ----------------------------------------------------------------------------------
35// VertexAttributes
36// ----------------------------------------------------------------------------------
37
44{
45
49 const static unsigned int TYPE_FLOAT;
50
54 const static unsigned int TYPE_INT;
55
59 const static unsigned int TYPE_UINT;
60
63 std::size_t position;
64
68 std::size_t componentsCount;
69
74 unsigned int type;
75
91 VertexAttribute( std::size_t position, std::size_t componentsCount, unsigned int type )
94 , type( type )
95 {
96 }
97
98}; // VertexAttribute
99
100
104typedef std::vector< VertexAttribute > VertexAttributes;
105
106
107
108} // namespace LibCarna :: base
109
110} // namespace LibCarna
111
112#endif // VERTEXATTRIBUTES_H_6014714286
Contains forward-declarations.
std::vector< VertexAttribute > VertexAttributes
Defines VertexAttribute vector.
Declares a vertex attribute.
VertexAttribute(std::size_t position, std::size_t componentsCount, unsigned int type)
static const unsigned int TYPE_FLOAT
Indicates vertex attribute of GL_FLOAT type.
static const unsigned int TYPE_INT
Indicates vertex attribute of GL_INT type.
static const unsigned int TYPE_UINT
Indicates vertex attribute of GL_UNSIGNED_INT type.