예제 #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
파일: testApp.cpp 프로젝트: I33N/ofxSick
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();
}