class
vertex_stream_tvertex_
stream should be used in scenarios where something could contain various, but functionaly similar arrays of float. see core::
types
typedefs
member-functions
Function documentation
size_t core:: vertex_stream_t:: size() const noexcept
Brief
returns the size of the stream (in unique element count).
Details
depending on the contained type, one "element" is bigger/smaller. This method returns the size of one element. for example if the stream contains vec2 data, one element is equal to 2 floats, and so the size() would be 2 if there were 4 floats present. similarly if the stream contained vec3 data, one element would be equivalent to 3 floats, and so a size() of 4 would be equal to 12 floats.
Returns | the element count. |
---|
size_t core:: vertex_stream_t:: bytesize() const noexcept
Brief
returns the total size of the memory stream in bytes.
Returns | the total size of the memory stream in bytes. |
---|
void* core:: vertex_stream_t:: data() noexcept
Brief
returns the pointer to the head of the memory stream.
Returns | the pointer to the head of the memory stream. |
---|
const void* core:: vertex_stream_t:: data() const noexcept
Brief
returns the constant pointer to the head of the memory stream.
Returns | the constant pointer to the head of the memory stream. |
---|