本文整理汇总了C++中FScope::NextArgInteger方法的典型用法代码示例。如果您正苦于以下问题:C++ FScope::NextArgInteger方法的具体用法?C++ FScope::NextArgInteger怎么用?C++ FScope::NextArgInteger使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FScope
的用法示例。
在下文中一共展示了FScope::NextArgInteger方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Configure
//
// Configure the cursor
//
void Configure(FScope *fScope)
{
FScope *sScope;
while ((sScope = fScope->NextFunction()) != NULL)
{
switch (sScope->NameCrc())
{
case 0x207C29E1: // "FrameRate"
speed = 1000 / Clamp<U32>(1, sScope->NextArgInteger(), 1000);
break;
case 0xD13EA311: // "AddFrame"
AddFrame(sScope);
break;
}
}
}
示例2: AddFrame
// Add a frame
void AddFrame(FScope *fScope)
{
FrameInfo *frame = new FrameInfo;
FScope *sScope;
// Read image info
sScope = fScope->GetFunction("Texture");
IFace::FScopeToTextureInfo(sScope, frame->tex);
// Optional hotspot
if ((sScope = fScope->GetFunction("Hotspot", FALSE)) != NULL)
{
frame->hotspot.x = sScope->NextArgInteger();
frame->hotspot.y = sScope->NextArgInteger();
}
else
{
frame->hotspot.Set(0, 0);
}
// Add frame to list
frames.Append(frame);
}
示例3: ExecBlock
//
// Execute a block of commands
//
void Cineractive::ExecBlock(FScope *fScope)
{
FScope *sScope;
while ((sScope = fScope->NextFunction()) != NULL)
{
LOG_VIEWER(("Exec: [%s]", sScope->NameStr()))
switch (sScope->NameCrc())
{
case 0x9D71F205: // "Movie"
{
// Disable movies in multiplayer campaigns
if (!MultiPlayer::Data::Online())
{
if (moviePrim)
{
delete moviePrim;
}
moviePrim = new Movie(this, sScope);
}
break;
}
case 0x0DA67726: // "AlphaNear"
Vid::renderState.status.alphaNear = alphaNear = sScope->NextArgInteger();
break;
case 0x70600744: // "DisableIFace"
{
DisableIFace(sScope->NextArgInteger());
break;
}
case 0x72C1779F: // "DisableHUD"
{
DisableHUD(sScope->NextArgInteger());
break;
}
case 0x288F19CB: // "DisableInput"
{
DisableInput(sScope->NextArgInteger());
break;
}
case 0xAA268B85: // "DisableShroud"
{
DisableShroud(sScope->NextArgInteger());
break;
}
case 0x47518EE4: // "EndCineractive"
{
Terminate();
break;
}
case 0x7E8E3E05: // "SkipPoint"
{
RestoreDisplay();
break;
}
case 0xEA4227E1: // "SetBookmark"
{
SetBookmark(sScope);
break;
}
case 0xDDD6437A: // "DefaultCamera"
{
LOG_VIEWER(("DefaultCamera"))
if (Demo::IsPlaying())
{
SetCurrent("Playback0", StdLoad::TypeU32(sScope, U32(FALSE), Range<U32>::flag), sScope);
}
else
{
SetCurrent("default", StdLoad::TypeU32(sScope, U32(FALSE), Range<U32>::flag), sScope);
}
break;
}
case 0xF4356EC8: // "SetCamera"
{
SetCurrent(sScope->NextArgString(), FALSE, sScope);
break;
}
case 0x9805A0A6: // "Mesh"
{
AddPrim(primitiveList, new Mesh(this, sScope));
break;
}
//.........这里部分代码省略.........