| 355 | } |
| 356 | |
| 357 | void Primitive::addPrimitiveVariablesToShaderSetup( Shader::Setup *shaderSetup, const std::string &vertexPrefix, GLuint vertexDivisor ) const |
| 358 | { |
| 359 | for( AttributeMap::const_iterator it = m_vertexAttributes.begin(), eIt = m_vertexAttributes.end(); it != eIt; it++ ) |
| 360 | { |
| 361 | shaderSetup->addVertexAttribute( vertexPrefix + it->first, it->second, vertexDivisor ); |
| 362 | shaderSetup->addUniformParameter( vertexPrefix + it->first + "Active", new IECore::BoolData( true ) ); |
| 363 | } |
| 364 | for( AttributeMap::const_iterator it = m_uniformAttributes.begin(), eIt = m_uniformAttributes.end(); it != eIt; it++ ) |
| 365 | { |
| 366 | shaderSetup->addUniformParameter( it->first, it->second ); |
| 367 | } |
| 368 | } |
| 369 | |
| 370 | void Primitive::render( const State *currentState, IECore::TypeId style ) const |
| 371 | { |
no test coverage detected