version 3.3

VRS::VertexAttributeDataGL Class Reference

Class for specifying attributes for vertices in vertex arrays. More...

#include <vrs/opengl/vertexattributedatagl.h>

Inheritance diagram for VRS::VertexAttributeDataGL:

VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Types

enum  Type {
  VERTEX, NORMAL, COLOR, SECONDARY_COLOR,
  FOG_COORD, EDGE_FLAG, VERTEX_WEIGHT, TEX_COORD_0,
  TEX_COORD_1, TEX_COORD_2, TEX_COORD_3, TEX_COORD_4,
  TEX_COORD_5, TEX_COORD_6, TEX_COORD_7, TEX_COORD_8,
  TEX_COORD_9, TEX_COORD_10, TEX_COORD_11, TEX_COORD_12,
  TEX_COORD_13, TEX_COORD_14, TEX_COORD_15, NOT_USED
}

Public Member Functions

 VRS_SERIALIZABLE_CLASS_ENUM (Type)
 Specifies the type of the data.
 VertexAttributeDataGL (Type type1=NOT_USED, BaseVertexAttributeBufferObjectGL *object1=NULL, Type type2=NOT_USED, BaseVertexAttributeBufferObjectGL *object2=NULL, Type type3=NOT_USED, BaseVertexAttributeBufferObjectGL *object3=NULL, Type type4=NOT_USED, BaseVertexAttributeBufferObjectGL *object4=NULL, Type type5=NOT_USED, BaseVertexAttributeBufferObjectGL *object5=NULL, Type type6=NOT_USED, BaseVertexAttributeBufferObjectGL *object6=NULL, Type type7=NOT_USED, BaseVertexAttributeBufferObjectGL *object7=NULL, Type type8=NOT_USED, BaseVertexAttributeBufferObjectGL *object8=NULL, Type type9=NOT_USED, BaseVertexAttributeBufferObjectGL *object9=NULL, Type type10=NOT_USED, BaseVertexAttributeBufferObjectGL *object10=NULL, Type type11=NOT_USED, BaseVertexAttributeBufferObjectGL *object11=NULL, Type type12=NOT_USED, BaseVertexAttributeBufferObjectGL *object12=NULL)
 Creates a new vertex attribute set and add the given attributes to it.
BaseVertexAttributeBufferObjectGLgetBufferObject (Type type) const
void setBufferObject (Type type, BaseVertexAttributeBufferObjectGL *object)
void clear ()
 Throws away all internal data, resulting in an empty object.
UINT usedMemory () const
 VRS_TYPEINFO (VertexAttributeDataGL, MonoAttribute)


Detailed Description

Class for specifying attributes for vertices in vertex arrays.

Member Enumeration Documentation

Enumerator:
VERTEX 
NORMAL 
COLOR 
SECONDARY_COLOR 
FOG_COORD 
EDGE_FLAG 
VERTEX_WEIGHT 
TEX_COORD_0 
TEX_COORD_1 
TEX_COORD_2 
TEX_COORD_3 
TEX_COORD_4 
TEX_COORD_5 
TEX_COORD_6 
TEX_COORD_7 
TEX_COORD_8 
TEX_COORD_9 
TEX_COORD_10 
TEX_COORD_11 
TEX_COORD_12 
TEX_COORD_13 
TEX_COORD_14 
TEX_COORD_15 
NOT_USED 


Constructor & Destructor Documentation

VRS::VertexAttributeDataGL::VertexAttributeDataGL ( Type  type1 = NOT_USED,
BaseVertexAttributeBufferObjectGL object1 = NULL,
Type  type2 = NOT_USED,
BaseVertexAttributeBufferObjectGL object2 = NULL,
Type  type3 = NOT_USED,
BaseVertexAttributeBufferObjectGL object3 = NULL,
Type  type4 = NOT_USED,
BaseVertexAttributeBufferObjectGL object4 = NULL,
Type  type5 = NOT_USED,
BaseVertexAttributeBufferObjectGL object5 = NULL,
Type  type6 = NOT_USED,
BaseVertexAttributeBufferObjectGL object6 = NULL,
Type  type7 = NOT_USED,
BaseVertexAttributeBufferObjectGL object7 = NULL,
Type  type8 = NOT_USED,
BaseVertexAttributeBufferObjectGL object8 = NULL,
Type  type9 = NOT_USED,
BaseVertexAttributeBufferObjectGL object9 = NULL,
Type  type10 = NOT_USED,
BaseVertexAttributeBufferObjectGL object10 = NULL,
Type  type11 = NOT_USED,
BaseVertexAttributeBufferObjectGL object11 = NULL,
Type  type12 = NOT_USED,
BaseVertexAttributeBufferObjectGL object12 = NULL 
)

Creates a new vertex attribute set and add the given attributes to it.


Member Function Documentation

VRS::VertexAttributeDataGL::VRS_SERIALIZABLE_CLASS_ENUM ( Type   ) 

Specifies the type of the data.

BaseVertexAttributeBufferObjectGL* VRS::VertexAttributeDataGL::getBufferObject ( Type  type  )  const

Returns the buffer object for the given vertex attribute; returns NULL, if no buffer object was supplied for the given vertex attribute.

void VRS::VertexAttributeDataGL::setBufferObject ( Type  type,
BaseVertexAttributeBufferObjectGL object 
)

Sets the given buffer object for the given vertex attribute; "object" can be NULL which disables the specified vertex attribute.

void VRS::VertexAttributeDataGL::clear (  ) 

Throws away all internal data, resulting in an empty object.

Note that it is faster to use clear an existing VertexAttributeDataGL-object than to instantiate a new VertexAttributeDataGL-object and destruct the old one

UINT VRS::VertexAttributeDataGL::usedMemory (  )  const

Returns the sum of bytes allocated by all buffer objects belonging to this vertex attribute set.

VRS::VertexAttributeDataGL::VRS_TYPEINFO ( VertexAttributeDataGL  ,
MonoAttribute   
)


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

Generated on Wed May 23 06:00:23 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact