Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
cinder::dx::VboMesh::Layout Struct Reference

#include <DxVbo.h>

Public Types

enum  CustomAttr {
  CUSTOM_ATTR_FLOAT, CUSTOM_ATTR_FLOAT2, CUSTOM_ATTR_FLOAT3, CUSTOM_ATTR_FLOAT4,
  TOTAL_CUSTOM_ATTR_TYPES
}
 

Public Member Functions

 Layout ()
 
bool isDefaults () const
 
bool hasNormals () const
 
bool hasStaticNormals () const
 
bool hasDynamicNormals () const
 
void setStaticNormals ()
 
void setDynamicNormals ()
 
bool hasColorsRGB () const
 
bool hasStaticColorsRGB () const
 
bool hasDynamicColorsRGB () const
 
void setStaticColorsRGB ()
 
void setDynamicColorsRGB ()
 
bool hasColorsRGBA () const
 
bool hasStaticColorsRGBA () const
 
bool hasDynamicColorsRGBA () const
 
void setStaticColorsRGBA ()
 
void setDynamicColorsRGBA ()
 
bool hasTexCoords2d (size_t unit=0) const
 
bool hasStaticTexCoords2d (size_t unit=0) const
 
bool hasDynamicTexCoords2d (size_t unit=0) const
 
void setStaticTexCoords2d (size_t unit=0)
 
void setDynamicTexCoords2d (size_t unit=0)
 
bool hasStaticTexCoords () const
 
bool hasDynamicTexCoords () const
 
bool hasTexCoords (size_t unit) const
 
bool hasTexCoords3d (size_t unit=0) const
 
bool hasStaticTexCoords3d (size_t unit=0) const
 
bool hasDynamicTexCoords3d (size_t unit=0) const
 
void setStaticTexCoords3d (size_t unit=0)
 
void setDynamicTexCoords3d (size_t unit=0)
 
bool hasIndices () const
 
bool hasStaticIndices () const
 
bool hasDynamicIndices () const
 
void setStaticIndices ()
 
void setDynamicIndices ()
 
bool hasPositions () const
 
bool hasStaticPositions () const
 
bool hasDynamicPositions () const
 
void setStaticPositions ()
 
void setDynamicPositions ()
 
void addDynamicCustomFloat ()
 
void addDynamicCustomVec2f ()
 
void addDynamicCustomVec3f ()
 
void addDynamicCustomVec4f ()
 

Public Attributes

int mAttributes [ATTR_TOTAL]
 
std::vector< std::pair
< CustomAttr, size_t > > 
mCustomDynamic
 
std::vector< std::pair
< CustomAttr, size_t > > 
mCustomStatic
 

Static Public Attributes

static int sCustomAttrSizes [TOTAL_CUSTOM_ATTR_TYPES] = { 4, 8, 12, 16 }
 
static GLint sCustomAttrNumComponents [TOTAL_CUSTOM_ATTR_TYPES] = { 1, 2, 3, 4 }
 
static GLenum sCustomAttrTypes [TOTAL_CUSTOM_ATTR_TYPES] = { GL_FLOAT, GL_FLOAT, GL_FLOAT, GL_FLOAT }
 

Member Enumeration Documentation

enum cinder::dx::VboMesh::Layout::CustomAttr
Enumerator
CUSTOM_ATTR_FLOAT 
CUSTOM_ATTR_FLOAT2 
CUSTOM_ATTR_FLOAT3 
CUSTOM_ATTR_FLOAT4 
TOTAL_CUSTOM_ATTR_TYPES 

Constructor & Destructor Documentation

cinder::dx::VboMesh::Layout::Layout ( )

Member Function Documentation

bool cinder::dx::VboMesh::Layout::isDefaults ( ) const
Returns
is the Layout unspecified, presumably TBG by a constructor for VboMesh
bool cinder::dx::VboMesh::Layout::hasNormals ( ) const
bool cinder::dx::VboMesh::Layout::hasStaticNormals ( ) const
bool cinder::dx::VboMesh::Layout::hasDynamicNormals ( ) const
void cinder::dx::VboMesh::Layout::setStaticNormals ( )
void cinder::dx::VboMesh::Layout::setDynamicNormals ( )
bool cinder::dx::VboMesh::Layout::hasColorsRGB ( ) const
bool cinder::dx::VboMesh::Layout::hasStaticColorsRGB ( ) const
bool cinder::dx::VboMesh::Layout::hasDynamicColorsRGB ( ) const
void cinder::dx::VboMesh::Layout::setStaticColorsRGB ( )
void cinder::dx::VboMesh::Layout::setDynamicColorsRGB ( )
bool cinder::dx::VboMesh::Layout::hasColorsRGBA ( ) const
bool cinder::dx::VboMesh::Layout::hasStaticColorsRGBA ( ) const
bool cinder::dx::VboMesh::Layout::hasDynamicColorsRGBA ( ) const
void cinder::dx::VboMesh::Layout::setStaticColorsRGBA ( )
void cinder::dx::VboMesh::Layout::setDynamicColorsRGBA ( )
bool cinder::dx::VboMesh::Layout::hasTexCoords2d ( size_t  unit = 0) const
bool cinder::dx::VboMesh::Layout::hasStaticTexCoords2d ( size_t  unit = 0) const
bool cinder::dx::VboMesh::Layout::hasDynamicTexCoords2d ( size_t  unit = 0) const
void cinder::dx::VboMesh::Layout::setStaticTexCoords2d ( size_t  unit = 0)
void cinder::dx::VboMesh::Layout::setDynamicTexCoords2d ( size_t  unit = 0)
bool cinder::dx::VboMesh::Layout::hasStaticTexCoords ( ) const
Returns
are there any texture units with static texCoords
bool cinder::dx::VboMesh::Layout::hasDynamicTexCoords ( ) const
Returns
are there any texture units with dynamic texCoords
bool cinder::dx::VboMesh::Layout::hasTexCoords ( size_t  unit) const
Returns
if texture unit
  • unit is enabled
bool cinder::dx::VboMesh::Layout::hasTexCoords3d ( size_t  unit = 0) const
bool cinder::dx::VboMesh::Layout::hasStaticTexCoords3d ( size_t  unit = 0) const
bool cinder::dx::VboMesh::Layout::hasDynamicTexCoords3d ( size_t  unit = 0) const
void cinder::dx::VboMesh::Layout::setStaticTexCoords3d ( size_t  unit = 0)
void cinder::dx::VboMesh::Layout::setDynamicTexCoords3d ( size_t  unit = 0)
bool cinder::dx::VboMesh::Layout::hasIndices ( ) const
bool cinder::dx::VboMesh::Layout::hasStaticIndices ( ) const
bool cinder::dx::VboMesh::Layout::hasDynamicIndices ( ) const
void cinder::dx::VboMesh::Layout::setStaticIndices ( )
void cinder::dx::VboMesh::Layout::setDynamicIndices ( )
bool cinder::dx::VboMesh::Layout::hasPositions ( ) const
bool cinder::dx::VboMesh::Layout::hasStaticPositions ( ) const
bool cinder::dx::VboMesh::Layout::hasDynamicPositions ( ) const
void cinder::dx::VboMesh::Layout::setStaticPositions ( )
void cinder::dx::VboMesh::Layout::setDynamicPositions ( )
void cinder::dx::VboMesh::Layout::addDynamicCustomFloat ( )
void cinder::dx::VboMesh::Layout::addDynamicCustomVec2f ( )
void cinder::dx::VboMesh::Layout::addDynamicCustomVec3f ( )
void cinder::dx::VboMesh::Layout::addDynamicCustomVec4f ( )

Member Data Documentation

int cinder::dx::VboMesh::Layout::sCustomAttrSizes = { 4, 8, 12, 16 }
static
GLint cinder::dx::VboMesh::Layout::sCustomAttrNumComponents = { 1, 2, 3, 4 }
static
GLenum cinder::dx::VboMesh::Layout::sCustomAttrTypes = { GL_FLOAT, GL_FLOAT, GL_FLOAT, GL_FLOAT }
static
int cinder::dx::VboMesh::Layout::mAttributes[ATTR_TOTAL]
std::vector<std::pair<CustomAttr,size_t> > cinder::dx::VboMesh::Layout::mCustomDynamic
std::vector<std::pair<CustomAttr,size_t> > cinder::dx::VboMesh::Layout::mCustomStatic

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