Cogs.Core
Public Member Functions | Public Attributes | List of all members
Cogs::Core::Mesh::StreamReference Struct Referencefinal

Utility structure containing reference to a data stream in a mesh. More...

#include <Mesh.h>

Public Member Functions

template<typename T >
T & getDataAt (uint32_t index)
 Gets reference to data at given index. No index or data type checking.
 
template<typename T >
const T & getDataAt (const size_t index) const
 Gets const reference to data at given index. No index or data type checking.
 
constexpr bool isValid () const
 Checks if the stream is valid.
 

Public Attributes

uint8_t * ptr = nullptr
 
uint32_t count = 0
 
uint32_t stride = 0
 

Detailed Description

Utility structure containing reference to a data stream in a mesh.

Definition at line 959 of file Mesh.h.

Member Function Documentation

◆ getDataAt() [1/2]

template<typename T >
const T & Cogs::Core::Mesh::StreamReference::getDataAt ( const size_t  index) const
inline

Gets const reference to data at given index. No index or data type checking.

Definition at line 971 of file Mesh.h.

◆ getDataAt() [2/2]

template<typename T >
T & Cogs::Core::Mesh::StreamReference::getDataAt ( uint32_t  index)
inline

Gets reference to data at given index. No index or data type checking.

Definition at line 964 of file Mesh.h.

◆ isValid()

constexpr bool Cogs::Core::Mesh::StreamReference::isValid ( ) const
inlineconstexpr

Checks if the stream is valid.

Definition at line 977 of file Mesh.h.

Member Data Documentation

◆ count

uint32_t Cogs::Core::Mesh::StreamReference::count = 0

Definition at line 980 of file Mesh.h.

◆ ptr

uint8_t* Cogs::Core::Mesh::StreamReference::ptr = nullptr

Definition at line 979 of file Mesh.h.

◆ stride

uint32_t Cogs::Core::Mesh::StreamReference::stride = 0

Definition at line 981 of file Mesh.h.


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