Пример #1
0
void LedCounter::draw( ci::Vec2f pos )
{
	int i = 0;
	for( vector<LedDigit>::iterator p = mLedDigits.begin(); p != mLedDigits.end(); ++p )
	{
		Vec2f posDigit = _getPosDigit( i++, pos );
		p->draw( posDigit );
	}
}
Пример #2
0
void LedTimer::draw( ci::Vec2f pos )
{
	for( int i = 0; i < DIGIT_NUMBER; i++ )
	{
		Vec2f posDigit = _getPosDigit( i, pos );
		mLedDigits[i].draw( posDigit );
	}

	Vec2f posSeparator = _getPosSeparator( pos );
	mLedSeparator.draw( posSeparator );
}