Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ion::gfx::BufferObject::Spec Struct Reference

#include "bufferobject.h"

Collaboration diagram for ion::gfx::BufferObject::Spec:

Public Member Functions

 Spec ()
 Default constructor for STL. More...
 
 Spec (const ComponentType type_in, const size_t count_in, const size_t offset_in)
 
bool operator== (const Spec &other) const
 

Public Attributes

size_t component_count
 The number of components. More...
 
size_t byte_offset
 The offset of the element defined by this Spec in the data type. More...
 
ComponentType type
 The type of each component. More...
 

Detailed Description

Definition at line 140 of file bufferobject.h.

Constructor & Destructor Documentation

ion::gfx::BufferObject::Spec::Spec ( )
inline

Default constructor for STL.

Definition at line 142 of file bufferobject.h.

ion::gfx::BufferObject::Spec::Spec ( const ComponentType  type_in,
const size_t  count_in,
const size_t  offset_in 
)
inline

Definition at line 147 of file bufferobject.h.

Member Function Documentation

bool ion::gfx::BufferObject::Spec::operator== ( const Spec other) const
inline

Definition at line 153 of file bufferobject.h.

References byte_offset, component_count, type, and type.

Member Data Documentation

size_t ion::gfx::BufferObject::Spec::byte_offset

The offset of the element defined by this Spec in the data type.

Definition at line 162 of file bufferobject.h.

Referenced by ion::gfxutils::BuildWireframeIndexBuffer(), and operator==().

size_t ion::gfx::BufferObject::Spec::component_count

The number of components.

Definition at line 160 of file bufferobject.h.

Referenced by operator==().

ComponentType ion::gfx::BufferObject::Spec::type

The type of each component.

Definition at line 164 of file bufferobject.h.

Referenced by ion::gfxutils::BuildWireframeIndexBuffer(), and operator==().


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