| 663 | } |
| 664 | |
| 665 | void 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 | |
| 679 | uint8_t Rect::getAttribDims( Attrib attr ) const |
| 680 | { |
no test coverage detected