MCPcopy Create free account
hub / github.com/cinder/Cinder / loadInto

Method loadInto

src/cinder/GeomIo.cpp:665–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

663}
664
665void Rect::loadInto( Target *target, const AttribSet &requestedAttribs ) const
666{
667 if( requestedAttribs.count( Attrib::POSITION ) )
668 target->copyAttrib( Attrib::POSITION, 2, 0, (const float*)mPositions.data(), 4 );
669 if( requestedAttribs.count( Attrib::NORMAL ) )
670 target->copyAttrib( Attrib::NORMAL, 3, 0, sRectNormals, 4 );
671 if( requestedAttribs.count( Attrib::TEX_COORD_0 ) )
672 target->copyAttrib( Attrib::TEX_COORD_0, 2, 0, (const float*)mTexCoords.data(), 4 );
673 if( requestedAttribs.count( Attrib::COLOR ) )
674 target->copyAttrib( Attrib::COLOR, 4, 0, (const float*)mColors.data(), 4 );
675 if( requestedAttribs.count( Attrib::TANGENT ) )
676 target->copyAttrib( Attrib::TANGENT, 3, 0, sRectTangents, 4 );
677}
678
679uint8_t Rect::getAttribDims( Attrib attr ) const
680{

Callers 2

preloadMethod · 0.45
processUpstreamMethod · 0.45

Calls 15

cosFunction · 0.85
sinFunction · 0.85
generateFaceFunction · 0.85
calculateTangentsFunction · 0.85
calcIndicesRequiredBytesFunction · 0.85
sqrtFunction · 0.85
attribToStringFunction · 0.85
atMethod · 0.80
preloadMethod · 0.80
combineMethod · 0.80
backMethod · 0.80
pop_backMethod · 0.80

Tested by

no test coverage detected