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
Documentation
function
 Rendering::VertexAccessor::~VertexAccessor
Defined in Rendering/Mesh/VertexAccessor.h:52
function
 Rendering::VertexAccessor::getPosition
Defined in Rendering/Mesh/VertexAccessor.h:57
function
 Rendering::VertexAccessor::getPosition
Defined in Rendering/Mesh/VertexAccessor.h:62
function
 Rendering::VertexAccessor::setPosition
Defined in Rendering/Mesh/VertexAccessor.h:67
function
 Rendering::VertexAccessor::setPosition
Defined in Rendering/Mesh/VertexAccessor.h:70
function
 Rendering::VertexAccessor::getNormal
Defined in Rendering/Mesh/VertexAccessor.h:74
function
 Rendering::VertexAccessor::getNormal
Defined in Rendering/Mesh/VertexAccessor.h:77
function
 Rendering::VertexAccessor::setNormal
Defined in Rendering/Mesh/VertexAccessor.h:80
function
 Rendering::VertexAccessor::setNormal
Defined in Rendering/Mesh/VertexAccessor.h:83
function
 Rendering::VertexAccessor::getColor4f
Defined in Rendering/Mesh/VertexAccessor.h:87
function
 Rendering::VertexAccessor::getColor4ub
Defined in Rendering/Mesh/VertexAccessor.h:91
function
 Rendering::VertexAccessor::getColor4f
Defined in Rendering/Mesh/VertexAccessor.h:94
function
 Rendering::VertexAccessor::getColor4ub
Defined in Rendering/Mesh/VertexAccessor.h:98
function
 Rendering::VertexAccessor::setColor
Defined in Rendering/Mesh/VertexAccessor.h:101
function
 Rendering::VertexAccessor::setColor
Defined in Rendering/Mesh/VertexAccessor.h:104
function
 Rendering::VertexAccessor::setColor
Defined in Rendering/Mesh/VertexAccessor.h:107
function
 Rendering::VertexAccessor::setColor
Defined in Rendering/Mesh/VertexAccessor.h:110
function
 Rendering::VertexAccessor::getTexCoord
Defined in Rendering/Mesh/VertexAccessor.h:114
function
 Rendering::VertexAccessor::getTexCoord
Defined in Rendering/Mesh/VertexAccessor.h:119
function
 Rendering::VertexAccessor::setTexCoord
Defined in Rendering/Mesh/VertexAccessor.h:124
function
 Rendering::VertexAccessor::setTexCoord
Defined in Rendering/Mesh/VertexAccessor.h:127
function
 Rendering::VertexAccessor::getVec4
Defined in Rendering/Mesh/VertexAccessor.h:131
function
 Rendering::VertexAccessor::getVec4
Defined in Rendering/Mesh/VertexAccessor.h:136
function
 Rendering::VertexAccessor::setVec4
Defined in Rendering/Mesh/VertexAccessor.h:141
function
 Rendering::VertexAccessor::setVec4
Defined in Rendering/Mesh/VertexAccessor.h:144
function
 Rendering::VertexAccessor::create
Defined in Rendering/Mesh/VertexAccessor.h:54
function
 Rendering::VertexAccessor::create
Defined in Rendering/Mesh/VertexAccessor.h:55