예제 #1
0
void main(void) {
	if(CheckForceUpdate()) {
		HandleUpdate();
	} else {
		CallApplication();
	}
}
예제 #2
0
파일: Widget.cpp 프로젝트: Cruel/SFGUI
void Widget::Update( float seconds ) {
	if( m_invalidated ) {
		m_invalidated = false;
		m_parent_notified = false;

		m_drawable = InvalidateImpl();

		if( m_drawable ) {
			m_drawable->SetPosition( GetAbsolutePosition() );
			m_drawable->SetLevel( m_hierarchy_level );
			m_drawable->SetZOrder( m_z_order );
			m_drawable->Show( IsGloballyVisible() );

			// We don't want to propagate container viewports for Canvases,
			// they have their own special viewport for drawing.
			if( m_drawable->GetPrimitives().empty() || !m_drawable->GetPrimitives()[0]->GetCustomDrawCallback() ) {
				m_drawable->SetViewport( m_viewport );
			}
		}
	}

	HandleUpdate( seconds );
}
예제 #3
0
 void StaticWorldObject::Update (const Time& dt)
 {
   HandleUpdate (dt);
 }
예제 #4
0
 void BattlePhase::Update (const Time& dt)
 {
   nextPhase_ = state_; 
   HandleUpdate (dt);
 }
예제 #5
0
 void DynamicWorldObject::Update (const Time& dt)
 {
   HandleUpdate (dt);
 }