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 } |