|
Cogs.Core
|
Contains a stream of data used by Mesh resources. More...
#include <Mesh.h>
Public Member Functions | |
| DataStream ()=default | |
| Construct a default data stream. | |
| DataStream (const DataStream &other)=delete | |
| Disable copy constructing data streams. | |
| DataStream (DataStream &&other)=default | |
| Move construct the data stream from other. | |
| COGSCORE_DLL_API void * | data () |
| COGSCORE_DLL_API const void * | data () const |
| COGSCORE_DLL_API size_t | size () const |
Public Attributes | |
| Cogs::Core::ResourceBufferHandle | buffer |
| Data buffer. | |
| VertexFormatHandle | format |
| A pointer to the format describing the contents of the byte buffer. | |
| uint32_t | offset = 0 |
| Byte offset from the start of the buffer. | |
| uint32_t | stride = 0 |
| Element stride. | |
| uint32_t | numElements = 0 |
| Number of elements of the type given by format contained in data. | |
| VertexDataType::EVertexDataType | type = VertexDataType::Reserved |
| Type index used to index streams in a Mesh resource. | |
Contains a stream of data used by Mesh resources.
A data stream contains a byte buffer and description of the type of contents in the buffer.
| Cogs::Core::ResourceBufferHandle Cogs::Core::DataStream::buffer |
Data buffer.
Definition at line 96 of file Mesh.h.
Referenced by Cogs::Core::Mesh::getStream(), and Cogs::Core::Mesh::mapStream().
| VertexFormatHandle Cogs::Core::DataStream::format |
A pointer to the format describing the contents of the byte buffer.
Definition at line 99 of file Mesh.h.
Referenced by Cogs::Core::Mesh::getSemanticStream(), and Cogs::Core::Mesh::mapStream().
| uint32_t Cogs::Core::DataStream::numElements = 0 |
Number of elements of the type given by format contained in data.
Definition at line 108 of file Mesh.h.
Referenced by Cogs::Core::generateMeshNormals(), Cogs::Core::Mesh::getSemanticStream(), and Cogs::Core::Mesh::mapStream().
| uint32_t Cogs::Core::DataStream::offset = 0 |
| uint32_t Cogs::Core::DataStream::stride = 0 |
| VertexDataType::EVertexDataType Cogs::Core::DataStream::type = VertexDataType::Reserved |
Type index used to index streams in a Mesh resource.
Definition at line 111 of file Mesh.h.
Referenced by Cogs::Core::Mesh::getStream().