コード例 #1
0
ファイル: InteractScene.cpp プロジェクト: Achammem/TuttleOFX
bool InteractScene::draw( const OFX::DrawArgs& args )
{
	bool result = false;

	result |= drawSelection( args );

	IsActiveFunctorVector::iterator itActive = _isActive.begin();
	ColorVector::iterator itColor = _colors.begin();

	for( InteractObjectsVector::iterator it = _objects.begin(), itEnd = _objects.end();
	     it != itEnd;
	     ++it, ++itActive, ++itColor )
	{
		if( itActive->active() )
		{
			OfxRGBAColourD color = itColor->getColor( args.time );
			glColor4d( color.r, color.g, color.b, color.a );
			result |= it->draw( args );
		}
	}
	return result;
}