Rebel Fork Framework
Urho3D::VertexElement Struct Reference

Vertex element description for arbitrary vertex declarations. More...

#include <Urho3D/Graphics/GraphicsDefs.h>

Public Member Functions

 VertexElement () noexcept
 VertexElement (VertexElementType type, VertexElementSemantic semantic, unsigned char index=0, unsigned stepRate=0) noexcept
 Construct with type, semantic, index and whether is per-instance data.
bool operator== (const VertexElement &rhs) const
 Test for equality with another vertex element. Offset is intentionally not compared, as it's relevant only when an element exists within a vertex buffer.
bool operator!= (const VertexElement &rhs) const
 Test for inequality with another vertex element.
unsigned ToHash () const
 Return hash value of the vertex element.

Public Attributes

VertexElementType type_
 Data type of element.
VertexElementSemantic semantic_
 Semantic of element.
unsigned char index_
 Semantic index of element, for example multi-texcoords.
unsigned stepRate_
 Instancing data steprate.
unsigned offset_
 Offset of element from vertex start. Filled by VertexBuffer once the vertex declaration is built.

Detailed Description

Vertex element description for arbitrary vertex declarations.

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