Cogs.Rendering
Loading...
Searching...
No Matches
Public Attributes | List of all members
Cogs::VertexFormat Struct Reference

Vertex format structure used to describe a single vertex for the input assembler. More...

#include <VertexFormat.h>

Public Attributes

std::vector< VertexElementelements
 Vector containing all vertex elements of this format.
 
size_t hash = 0
 Hash code of the vertex format.
 
uint32_t size = 0
 Calculated size of the vertex format.
 

Detailed Description

Vertex format structure used to describe a single vertex for the input assembler.

A vertex consists of a set of elements.

Member Data Documentation

◆ elements

std::vector<VertexElement> Cogs::VertexFormat::elements

Vector containing all vertex elements of this format.

Referenced by Cogs::VertexFormats::createVertexFormat(), and Cogs::hash().

◆ hash

size_t Cogs::VertexFormat::hash = 0

Hash code of the vertex format.

Referenced by Cogs::VertexFormats::createVertexFormat(), and Cogs::getHash().

◆ size

uint32_t Cogs::VertexFormat::size = 0

Calculated size of the vertex format.

Referenced by Cogs::VertexFormats::createVertexFormat(), and Cogs::getSize().


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