public

Inheritance Graph

graph BT
	VertexAccessor
	VertexAccessor --> ResourceAccessor
	click VertexAccessor "classRendering_1_1VertexAccessor"
	click ResourceAccessor "classUtil_1_1ResourceAccessor"

Description

Utility class to access all vertex attributes of a mesh. Directly maps the vertex data of a mesh in GPU memory if it uploaded.

Note: Do not upload or render the mesh while the Accessor is active.

See also: VertexAttributeAccessor

Public Functions

   
   
  ~VertexAccessor()
   
Geometry::Vec3 getPosition(uint32_t index, Util::StringIdentifier name) const
   
Geometry::Vec3 getPosition(uint32_t index, uint16_t location) const
   
void setPosition(uint32_t index, const Geometry::Vec3 & p, Util::StringIdentifier name)
   
void setPosition(uint32_t index, const Geometry::Vec3 & p, uint16_t location)
   
Geometry::Vec3 getNormal(uint32_t index, Util::StringIdentifier name) const
   
Geometry::Vec3 getNormal(uint32_t index, uint16_t location) const
   
void setNormal(uint32_t index, const Geometry::Vec3 & n, Util::StringIdentifier name)
   
void setNormal(uint32_t index, const Geometry::Vec3 & n, uint16_t location)
   
Util::Color4f getColor4f(uint32_t index, Util::StringIdentifier name) const
   
Util::Color4f getColor4ub(uint32_t index, Util::StringIdentifier name) const
   
Util::Color4f getColor4f(uint32_t index, uint16_t location) const
   
Util::Color4ub getColor4ub(uint32_t index, uint16_t location) const
   
void setColor(uint32_t index, const Util::Color4f & c, Util::StringIdentifier name)
   
void setColor(uint32_t index, const Util::Color4ub & c, Util::StringIdentifier name)
   
void setColor(uint32_t index, const Util::Color4f & c, uint16_t location)
   
void setColor(uint32_t index, const Util::Color4ub & c, uint16_t location)
   
Geometry::Vec2 getTexCoord(uint32_t index, Util::StringIdentifier name) const
   
Geometry::Vec2 getTexCoord(uint32_t index, uint16_t location) const
   
void setTexCoord(uint32_t index, const Geometry::Vec2 & p, Util::StringIdentifier name)
   
void setTexCoord(uint32_t index, const Geometry::Vec2 & p, uint16_t location)
   
Geometry::Vec4 getVec4(uint32_t index, Util::StringIdentifier name) const
   
Geometry::Vec4 getVec4(uint32_t index, uint16_t location) const
   
void setVec4(uint32_t index, const Geometry::Vec4 & p, Util::StringIdentifier name)
   
void setVec4(uint32_t index, const Geometry::Vec4 & p, uint16_t location)

Public Static Functions

   
   
Util::Reference < VertexAccessor > create( MeshVertexData & _vData)
   
Util::Reference < VertexAccessor > create( Mesh * mesh)

Documentation

function
Rendering::VertexAccessor::~VertexAccessor

public virtual
   
   
~VertexAccessor( )

Defined in Rendering/Mesh/VertexAccessor.h:52


function
Rendering::VertexAccessor::getPosition

public const inline
     
     
Geometry::Vec3 getPosition( uint32_t index,
  Util::StringIdentifier name
) const    

Defined in Rendering/Mesh/VertexAccessor.h:57


function
Rendering::VertexAccessor::getPosition

public const inline
     
     
Geometry::Vec3 getPosition( uint32_t index,
  uint16_t location
) const    

Defined in Rendering/Mesh/VertexAccessor.h:62


function
Rendering::VertexAccessor::setPosition

public inline
     
     
void setPosition( uint32_t index,
  const Geometry::Vec3 & p,
  Util::StringIdentifier name
)    

Defined in Rendering/Mesh/VertexAccessor.h:67


function
Rendering::VertexAccessor::setPosition

public inline
     
     
void setPosition( uint32_t index,
  const Geometry::Vec3 & p,
  uint16_t location
)    

Defined in Rendering/Mesh/VertexAccessor.h:70


function
Rendering::VertexAccessor::getNormal

public const inline
     
     
Geometry::Vec3 getNormal( uint32_t index,
  Util::StringIdentifier name
) const    

Defined in Rendering/Mesh/VertexAccessor.h:74


function
Rendering::VertexAccessor::getNormal

public const inline
     
     
Geometry::Vec3 getNormal( uint32_t index,
  uint16_t location
) const    

Defined in Rendering/Mesh/VertexAccessor.h:77


function
Rendering::VertexAccessor::setNormal

public inline
     
     
void setNormal( uint32_t index,
  const Geometry::Vec3 & n,
  Util::StringIdentifier name
)    

Defined in Rendering/Mesh/VertexAccessor.h:80


function
Rendering::VertexAccessor::setNormal

public inline
     
     
void setNormal( uint32_t index,
  const Geometry::Vec3 & n,
  uint16_t location
)    

Defined in Rendering/Mesh/VertexAccessor.h:83


function
Rendering::VertexAccessor::getColor4f

public const inline
     
     
Util::Color4f getColor4f( uint32_t index,
  Util::StringIdentifier name
) const    

Defined in Rendering/Mesh/VertexAccessor.h:87


function
Rendering::VertexAccessor::getColor4ub

public const inline
     
     
Util::Color4f getColor4ub( uint32_t index,
  Util::StringIdentifier name
) const    

Defined in Rendering/Mesh/VertexAccessor.h:91


function
Rendering::VertexAccessor::getColor4f

public const inline
     
     
Util::Color4f getColor4f( uint32_t index,
  uint16_t location
) const    

Defined in Rendering/Mesh/VertexAccessor.h:94


function
Rendering::VertexAccessor::getColor4ub

public const inline
     
     
Util::Color4ub getColor4ub( uint32_t index,
  uint16_t location
) const    

Defined in Rendering/Mesh/VertexAccessor.h:98


function
Rendering::VertexAccessor::setColor

public inline
     
     
void setColor( uint32_t index,
  const Util::Color4f & c,
  Util::StringIdentifier name
)    

Defined in Rendering/Mesh/VertexAccessor.h:101


function
Rendering::VertexAccessor::setColor

public inline
     
     
void setColor( uint32_t index,
  const Util::Color4ub & c,
  Util::StringIdentifier name
)    

Defined in Rendering/Mesh/VertexAccessor.h:104


function
Rendering::VertexAccessor::setColor

public inline
     
     
void setColor( uint32_t index,
  const Util::Color4f & c,
  uint16_t location
)    

Defined in Rendering/Mesh/VertexAccessor.h:107


function
Rendering::VertexAccessor::setColor

public inline
     
     
void setColor( uint32_t index,
  const Util::Color4ub & c,
  uint16_t location
)    

Defined in Rendering/Mesh/VertexAccessor.h:110


function
Rendering::VertexAccessor::getTexCoord

public const inline
     
     
Geometry::Vec2 getTexCoord( uint32_t index,
  Util::StringIdentifier name
) const    

Defined in Rendering/Mesh/VertexAccessor.h:114


function
Rendering::VertexAccessor::getTexCoord

public const inline
     
     
Geometry::Vec2 getTexCoord( uint32_t index,
  uint16_t location
) const    

Defined in Rendering/Mesh/VertexAccessor.h:119


function
Rendering::VertexAccessor::setTexCoord

public inline
     
     
void setTexCoord( uint32_t index,
  const Geometry::Vec2 & p,
  Util::StringIdentifier name
)    

Defined in Rendering/Mesh/VertexAccessor.h:124


function
Rendering::VertexAccessor::setTexCoord

public inline
     
     
void setTexCoord( uint32_t index,
  const Geometry::Vec2 & p,
  uint16_t location
)    

Defined in Rendering/Mesh/VertexAccessor.h:127


function
Rendering::VertexAccessor::getVec4

public const inline
     
     
Geometry::Vec4 getVec4( uint32_t index,
  Util::StringIdentifier name
) const    

Defined in Rendering/Mesh/VertexAccessor.h:131


function
Rendering::VertexAccessor::getVec4

public const inline
     
     
Geometry::Vec4 getVec4( uint32_t index,
  uint16_t location
) const    

Defined in Rendering/Mesh/VertexAccessor.h:136


function
Rendering::VertexAccessor::setVec4

public inline
     
     
void setVec4( uint32_t index,
  const Geometry::Vec4 & p,
  Util::StringIdentifier name
)    

Defined in Rendering/Mesh/VertexAccessor.h:141


function
Rendering::VertexAccessor::setVec4

public inline
     
     
void setVec4( uint32_t index,
  const Geometry::Vec4 & p,
  uint16_t location
)    

Defined in Rendering/Mesh/VertexAccessor.h:144


function
Rendering::VertexAccessor::create

public static
     
     
Util::Reference < VertexAccessor > create( MeshVertexData & _vData )

Defined in Rendering/Mesh/VertexAccessor.h:54


function
Rendering::VertexAccessor::create

public static
     
     
Util::Reference < VertexAccessor > create( Mesh * mesh )

Defined in Rendering/Mesh/VertexAccessor.h:55