gdk-graphics  1b6d84e044c2c953fd7c9501e628a67e80f4da0d
Classes | Public Types | Public Member Functions | List of all members
vertex_data Class Referencefinal

used to construct a model. Vertex data represents a set of vertex data in system memory More...

#include <vertex_data.h>

Classes

struct  interleaved_data_view
 

Public Types

enum  PrimitiveMode { Triangles }
 
using index_value_type = unsigned short
 
using attribute_data_type = std::unordered_map< std::string, attribute_data_view >
 

Public Member Functions

PrimitiveMode getPrimitiveMode () const
 
const std::vector< attribute_data_view::attribute_component_type > & getData () const
 
const std::vector< std::pair< std::string, std::size_t > > & attribute_format () const
 
size_t attribute_offset (const std::string &aName) const
 
size_t vertex_size () const
 
size_t interleaved_data_size () const
 
std::vector< index_value_type > getIndexData () const
 
void operator+= (const vertex_data &&other)
 
void push_back (const vertex_data &&other)
 
void clear ()
 clears all state from this vertex_data instance
 
 vertex_data (const attribute_data_type &aAttributeData)
 
interleaved_data_view view_to_interleaved_data ()
 

Detailed Description

used to construct a model. Vertex data represents a set of vertex data in system memory

Member Function Documentation

◆ operator+=()

void vertex_data::operator+= ( const vertex_data &&  other)

append a different vertex_data to this vertex_data must be same format

◆ push_back()

void vertex_data::push_back ( const vertex_data &&  other)

append a different vertex_data to this vertex_data must be same format


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