Urho3D::VertexElement Struct Reference

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

#include <Urho3D/Graphics/GraphicsDefs.h>

Public Member Functions

 VertexElement ()
 Default-construct.
 
 VertexElement (VertexElementType type, VertexElementSemantic semantic, unsigned char index=0, bool perInstance=false)
 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.
 

Public Attributes

VertexElementType type_
 Data type of element.
 
VertexElementSemantic semantic_
 Semantic of element.
 
unsigned char index_
 Semantic index of element, for example multi-texcoords.
 
bool perInstance_
 Per-instance flag.
 
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:
  • Source/Urho3D/Graphics/GraphicsDefs.h