本文整理汇总了C++中Stage::Finish方法的典型用法代码示例。如果您正苦于以下问题:C++ Stage::Finish方法的具体用法?C++ Stage::Finish怎么用?C++ Stage::Finish使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Stage
的用法示例。
在下文中一共展示了Stage::Finish方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Update
void TransitionFadeIn::Update()
{
Alpha += FadePerUpdate;
if( Alpha >= SP_ONE )
{
// Swap to new stage
Stage* t = Target;
delete Framework::System->ProgramStages->Pop(); // Remove transition stage (this)
t->Finish();
Framework::System->ProgramStages->Push( t );
} else {
// Allow the target stage to process updates, so any animations will run
Target->Update();
}
}
示例2: Pop
Stage* StageStack::Pop()
{
Stage* result;
// Remove stage from stack
result = this->Current();
result->Finish();
Stack[StackIndex] = 0;
StackIndex--;
// If there's still an item on the stack, resume it
if( StackIndex != -1 )
this->Current()->Resume();
return result;
}
示例3: Update
void TransitionStrips::Update()
{
frameIndex++;
if( frameIndex >= frameMax )
{
Stage* t = Target;
if( FadeToNewStage )
{
// Swap to new stage
delete Framework::System->ProgramStages->Pop(); // Remove transition stage (this)
t->Resume();
t->Finish();
Framework::System->ProgramStages->Push( t );
} else {
// Pop off back to stage
while( Framework::System->ProgramStages->Current() != t )
{
delete Framework::System->ProgramStages->Pop();
}
}
}
}
示例4: Update
void TransitionFade::Update()
{
Alpha += FadePerUpdate;
if( Alpha >= SP_ONE )
{
Stage* t = Target;
if( FadeToNewStage )
{
// Swap to new stage
delete Framework::System->ProgramStages->Pop(); // Remove transition stage (this)
t->Resume();
t->Finish();
Framework::System->ProgramStages->Push( t );
} else {
// Pop off back to stage
while( Framework::System->ProgramStages->Current() != t )
{
delete Framework::System->ProgramStages->Pop();
}
}
}
}