|
Colobot
|
#include <src/graphics/core/vertex.h>
Public Attributes | |
| bool | enabled = false |
| true enables vertex attribute More... | |
| bool | normalized = false |
| true means normalized value (integer types only) More... | |
| unsigned char | size = 0 |
| Type | type = Type::UBYTE |
| Type of values in vertex attribute. More... | |
| int | offset = 0 |
| Offset to the vertex attribute. More... | |
| int | stride = 0 |
| Stride of vertex attribute. More... | |
| float | values [4] = {0.0f, 0.0f, 0.0f, 0.0f} |
| Default values used when attribute is disabled. More... | |
Vertex attribute.
This structure contains parameters for a vertex attribute.
| bool Gfx::VertexAttribute::enabled = false |
true enables vertex attribute
| bool Gfx::VertexAttribute::normalized = false |
true means normalized value (integer types only)
| unsigned char Gfx::VertexAttribute::size = 0 |
Number of elements in the vertex attribute. Valid values are 1, 2, 3, and 4. Depends on specific attribute.
| Type Gfx::VertexAttribute::type = Type::UBYTE |
Type of values in vertex attribute.
| int Gfx::VertexAttribute::offset = 0 |
Offset to the vertex attribute.
| int Gfx::VertexAttribute::stride = 0 |
Stride of vertex attribute.
| float Gfx::VertexAttribute::values[4] = {0.0f, 0.0f, 0.0f, 0.0f} |
Default values used when attribute is disabled.
1.8.13