Пример #1
0
void ofxUISlider_<T>::drawSkinRect( ofPtr<ofBaseDraws> &pDraw, ofRectangle &RFill )
{
	if(pDraw.use_count()>0)
	{
		pDraw->draw(RFill);
	}
	else
	{
		ofxUIDrawRect(RFill.x,RFill.y,RFill.width,RFill.height);
	}
}
Пример #2
0
void ofxUIWidget::drawComponent( ofPtr<ofBaseDraws> &pDraw, ofxUIRectangle* r )
{
	if(pDraw.use_count()>0)
	{
		ofPushMatrix();
		ofRectangle R = r->getAbsoluteRect();
		pDraw->draw(R);
		ofPopMatrix();
	}
	else
	{
		r->draw();
	}
}
Пример #3
0
void testApp::draw() {
	ofBackground(0);
	
	ofPushMatrix();
	float scale = ofMap(mouseX, 0, ofGetWidth(), 0.05, 2, true);	
	ofTranslate(ofGetWidth() / 2, ofGetHeight() / 2);
	
	ofScale(scale, scale);
	ofSetColor(ofColor::white);
	for(int i = 0; i < sick.size(); i++) {
		sick[i]->draw();
	}
	ofPopMatrix();
	
	logOverlay->draw();
}