MCPcopy Create free account
hub / github.com/ImageEngine/cortex / getVertexBuffer

Method getVertexBuffer

src/IECoreGL/Primitive.cpp:385–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385ConstBufferPtr Primitive::getVertexBuffer( const std::string &name ) const
386{
387 const AttributeMap::const_iterator it = m_vertexAttributes.find( name );
388 return ( it != m_vertexAttributes.end() )
389 ? IECore::runTimeCast< const Buffer >( CachedConverter::defaultCachedConverter()->convert( it->second.get() ) )
390 : ConstBufferPtr();
391}
392
393size_t Primitive::getVertexCount() const
394{

Callers

nothing calls this directly

Calls 4

findMethod · 0.45
endMethod · 0.45
convertMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected