public abstract

Inheritance Graph

graph BT
	ColorAttributeAccessor
	ColorAttributeAccessor --> VertexAttributeAccessor
	click ColorAttributeAccessor "classRendering_1_1ColorAttributeAccessor"
	click VertexAttributeAccessor "classRendering_1_1VertexAttributeAccessor"

Description

ColorAttributeAccessor > VertexAttributeAccessor Abstract accessor for colors.

Protected Functions

   
   
  ColorAttributeAccessor( MeshVertexData & _vData, const VertexAttribute & _attribute)

Public Static Functions

   
   
Util::Reference < ColorAttributeAccessor > create( MeshVertexData & _vData, Util::StringIdentifier name)

Public Functions

   
   
  ~ColorAttributeAccessor()
   
Util::Color4f getColor4f(uint32_t index) const
   
Util::Color4ub getColor4ub(uint32_t index) const
   
void setColor(uint32_t index, const Util::Color4f & c)
   
void setColor(uint32_t index, const Util::Color4ub & c)

Documentation

function
Rendering::ColorAttributeAccessor::ColorAttributeAccessor

protected inline
     
     
ColorAttributeAccessor( MeshVertexData & _vData,
  const VertexAttribute & _attribute
)    

Defined in Rendering/Mesh/VertexAttributeAccessors.h:70


function
Rendering::ColorAttributeAccessor::create

public static
     
     
Util::Reference < ColorAttributeAccessor > create( MeshVertexData & _vData,
  Util::StringIdentifier name
)    

(static factory) Create a ColorAttributeAccessor for the given MeshVertexData ‘s attribute having the given name. If no Accessor can be created, an std::invalid_argument exception is thrown.

Defined in Rendering/Mesh/VertexAttributeAccessors.h:76


function
Rendering::ColorAttributeAccessor::~ColorAttributeAccessor

public inline virtual
   
   
~ColorAttributeAccessor( )

Defined in Rendering/Mesh/VertexAttributeAccessors.h:78


function
Rendering::ColorAttributeAccessor::getColor4f

public const virtual
     
     
Util::Color4f getColor4f( uint32_t index ) const

Defined in Rendering/Mesh/VertexAttributeAccessors.h:80


function
Rendering::ColorAttributeAccessor::getColor4ub

public const virtual
     
     
Util::Color4ub getColor4ub( uint32_t index ) const

Defined in Rendering/Mesh/VertexAttributeAccessors.h:81


function
Rendering::ColorAttributeAccessor::setColor

public virtual
     
     
void setColor( uint32_t index,
  const Util::Color4f & c
)    

Defined in Rendering/Mesh/VertexAttributeAccessors.h:82


function
Rendering::ColorAttributeAccessor::setColor

public virtual
     
     
void setColor( uint32_t index,
  const Util::Color4ub & c
)    

Defined in Rendering/Mesh/VertexAttributeAccessors.h:83