public |
Inheritance Graph
graph BT
VertexDescription
VertexDescription --> ResourceFormat
click VertexDescription "classRendering_1_1VertexDescription"
click ResourceFormat "classUtil_1_1ResourceFormat"
Description
Public Functions
const VertexAttribute & | appendFloatAttribute(const Util::StringIdentifier & nameId, uint8_t numValues) Add an attribute with the given name and the given number of float values. |
const VertexAttribute & | appendUnsignedIntAttribute(const Util::StringIdentifier & nameId, uint8_t numValues, bool convertToFloat) Add an attribute with the given name and the given number of unsigned int values. |
const VertexAttribute & | appendColorRGBAByte() Add an RGBA color attribute. It is stored as four unsigned byte values. |
const VertexAttribute & | appendColorRGBFloat() Add an RGB color attribute. It is stored as three float values. |
const VertexAttribute & | appendColorRGBAFloat() Add an RGBA color attribute. It is stored as four float values. |
const VertexAttribute & | appendNormalByte() Add a three-dimensional normal attribute. It is stored as four byte values. |
const VertexAttribute & | appendNormalFloat() Add a three-dimensional normal attribute. It is stored as three float values. |
const VertexAttribute & | appendPosition2D() Add a two-dimensional position attribute. It is stored as two float values. |
const VertexAttribute & | appendPosition3D() Add a three-dimensional position attribute. It is stored as three float values. |
const VertexAttribute & | appendPosition4D() Add a three-dimensional position attribute. It is stored as four float values. |
const VertexAttribute & | appendPosition4DHalf() Add a three-dimensional position attribute. It is stored as four half float values. |
const VertexAttribute & | appendTexCoord(uint_fast8_t textureUnit) Add a texture coordinate attribute. It is stored as two float values. |
size_t | getVertexSize() const |
Documentation
function
Rendering::VertexDescription::appendFloatAttribute
public | inline |
const VertexAttribute & appendFloatAttribute( | const Util::StringIdentifier & | nameId, |
uint8_t | numValues | |
) |
Add an attribute with the given name and the given number of float values.
Defined in Rendering/Mesh/VertexDescription.h:39
function
Rendering::VertexDescription::appendUnsignedIntAttribute
public | inline |
const VertexAttribute & appendUnsignedIntAttribute( | const Util::StringIdentifier & | nameId, |
uint8_t | numValues, | |
bool | convertToFloat | |
) |
Add an attribute with the given name and the given number of unsigned int values.
Defined in Rendering/Mesh/VertexDescription.h:44
function
Rendering::VertexDescription::appendColorRGBAByte
public | inline |
const VertexAttribute & appendColorRGBAByte( | ) |
Add an RGBA color attribute. It is stored as four unsigned byte values.
Defined in Rendering/Mesh/VertexDescription.h:49
function
Rendering::VertexDescription::appendColorRGBFloat
public | inline |
const VertexAttribute & appendColorRGBFloat( | ) |
Add an RGB color attribute. It is stored as three float values.
Defined in Rendering/Mesh/VertexDescription.h:54
function
Rendering::VertexDescription::appendColorRGBAFloat
public | inline |
const VertexAttribute & appendColorRGBAFloat( | ) |
Add an RGBA color attribute. It is stored as four float values.
Defined in Rendering/Mesh/VertexDescription.h:59
function
Rendering::VertexDescription::appendNormalByte
public | inline |
const VertexAttribute & appendNormalByte( | ) |
Add a three-dimensional normal attribute. It is stored as four byte values.
Defined in Rendering/Mesh/VertexDescription.h:64
function
Rendering::VertexDescription::appendNormalFloat
public | inline |
const VertexAttribute & appendNormalFloat( | ) |
Add a three-dimensional normal attribute. It is stored as three float values.
Defined in Rendering/Mesh/VertexDescription.h:69
function
Rendering::VertexDescription::appendPosition2D
public | inline |
const VertexAttribute & appendPosition2D( | ) |
Add a two-dimensional position attribute. It is stored as two float values.
Defined in Rendering/Mesh/VertexDescription.h:74
function
Rendering::VertexDescription::appendPosition3D
public | inline |
const VertexAttribute & appendPosition3D( | ) |
Add a three-dimensional position attribute. It is stored as three float values.
Defined in Rendering/Mesh/VertexDescription.h:79
function
Rendering::VertexDescription::appendPosition4D
public | inline |
const VertexAttribute & appendPosition4D( | ) |
Add a three-dimensional position attribute. It is stored as four float values.
Defined in Rendering/Mesh/VertexDescription.h:84
function
Rendering::VertexDescription::appendPosition4DHalf
public | inline |
const VertexAttribute & appendPosition4DHalf( | ) |
Add a three-dimensional position attribute. It is stored as four half float values.
Defined in Rendering/Mesh/VertexDescription.h:89
function
Rendering::VertexDescription::appendTexCoord
public | inline |
const VertexAttribute & appendTexCoord( | uint_fast8_t | textureUnit ) |
Add a texture coordinate attribute. It is stored as two float values.
Defined in Rendering/Mesh/VertexDescription.h:94
function
Rendering::VertexDescription::getVertexSize
public | const | inline |
size_t getVertexSize( | ) const |
Defined in Rendering/Mesh/VertexDescription.h:98