Colobot
Public Attributes | List of all members
Gfx::VertexAttribute Struct Reference

Vertex attribute. More...

#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...
 

Detailed Description

Vertex attribute.

This structure contains parameters for a vertex attribute.

Member Data Documentation

◆ enabled

bool Gfx::VertexAttribute::enabled = false

true enables vertex attribute

◆ normalized

bool Gfx::VertexAttribute::normalized = false

true means normalized value (integer types only)

◆ size

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

Type Gfx::VertexAttribute::type = Type::UBYTE

Type of values in vertex attribute.

◆ offset

int Gfx::VertexAttribute::offset = 0

Offset to the vertex attribute.

◆ stride

int Gfx::VertexAttribute::stride = 0

Stride of vertex attribute.

◆ values

float Gfx::VertexAttribute::values[4] = {0.0f, 0.0f, 0.0f, 0.0f}

Default values used when attribute is disabled.


The documentation for this struct was generated from the following file: