opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Classes | Public Member Functions | Friends | List of all members
osc::VertexFormat Class Referencefinal

#include <vertex_format.h>

Classes

class  VertexAttributeLayout
 
class  VertexAttributeLayoutIterator
 
class  VertexAttributeLayoutRange
 

Public Member Functions

 VertexFormat ()=default
 
 VertexFormat (std::span< const VertexAttributeDescriptor >)
 
 VertexFormat (std::initializer_list< VertexAttributeDescriptor > il)
 
void clear ()
 
bool empty () const
 
bool contains (VertexAttribute attribute) const
 
size_t num_attributes () const
 
VertexAttributeLayoutRange attribute_layouts () const
 
std::optional< VertexAttributeLayoutattribute_layout (VertexAttribute attribute) const
 
size_t stride () const
 
void insert (const VertexAttributeDescriptor &)
 
void erase (VertexAttribute)
 

Friends

bool operator== (const VertexFormat &, const VertexFormat &)=default
 

Constructor & Destructor Documentation

◆ VertexFormat() [1/3]

osc::VertexFormat::VertexFormat ( )
default

◆ VertexFormat() [2/3]

osc::VertexFormat::VertexFormat ( std::span< const VertexAttributeDescriptor )
explicit

◆ VertexFormat() [3/3]

osc::VertexFormat::VertexFormat ( std::initializer_list< VertexAttributeDescriptor il)
inline

Member Function Documentation

◆ attribute_layout()

std::optional< VertexAttributeLayout > osc::VertexFormat::attribute_layout ( VertexAttribute  attribute) const
inline

◆ attribute_layouts()

VertexAttributeLayoutRange osc::VertexFormat::attribute_layouts ( ) const
inline

◆ clear()

void osc::VertexFormat::clear ( )
inline

◆ contains()

bool osc::VertexFormat::contains ( VertexAttribute  attribute) const
inline

◆ empty()

bool osc::VertexFormat::empty ( ) const
inline

◆ erase()

void osc::VertexFormat::erase ( VertexAttribute  )

◆ insert()

void osc::VertexFormat::insert ( const VertexAttributeDescriptor )

◆ num_attributes()

size_t osc::VertexFormat::num_attributes ( ) const
inline

◆ stride()

size_t osc::VertexFormat::stride ( ) const
inline

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const VertexFormat ,
const VertexFormat  
)
friend

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