本文整理汇总了C++中AppWindow::RenderGrid方法的典型用法代码示例。如果您正苦于以下问题:C++ AppWindow::RenderGrid方法的具体用法?C++ AppWindow::RenderGrid怎么用?C++ AppWindow::RenderGrid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AppWindow
的用法示例。
在下文中一共展示了AppWindow::RenderGrid方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ProcessMessage
//.........这里部分代码省略.........
// Create some entities.
Entity * entity = MapMan.CreateEntity("NormalMapSprite", ModelMan.GetModel("sprite.obj"), TexMan.GetTexture("0x77"), Vector3f(0,0,0));
GraphicsQueue.Add(new GMSetEntityTexture(entity, NORMAL_MAP, "normalMapTest2"));
}
if (msg == "AcceptInput:false")
inputState->acceptInput = false;
else if (msg.Contains("InputMan.printHoverElement"))
InputMan.printHoverElement = !InputMan.printHoverElement;
else if (msg == "SetGlobalState:NULL")
StateMan.SetGlobalState(NULL);
else if (msg == "SetActiveState:NULL")
StateMan.SetActiveState(NULL);
else if (msg == "StateMan.DeleteStates")
StateMan.DeleteStates();
else if (msg == "NetworkMan.Shutdown")
NetworkMan.Shutdown();
else if (msg == "StateMan.Shutdown")
StateMan.shouldLive = false;
else if (msg == "MultimediaMan.Shutdown")
MultimediaMan.Shutdown();
else if (msg == "AudioMan.Shutdown")
AudioMan.QueueMessage(new AMGlobal(AM_SHUTDOWN));
else if (msg == "GraphicsMan.Shutdown")
Graphics.QueueMessage(new GraphicsMessage(GM_SHUTDOWN));
else if (msg == "PrintScreenshot")
{
Graphics.QueueMessage(new GraphicsMessage(GM_PRINT_SCREENSHOT));
}
else if (msg.Contains("SetOutOfFocusSleepThread("))
{
int sleepTime = msg.Tokenize("()")[1].ParseInt();
GraphicsMan.QueueMessage(new GMSeti(GM_SET_OUT_OF_FOCUS_SLEEP_TIME, sleepTime));
}
else if (msg.StartsWith("RenderGrid"))
{
// Disable it, everywhere?
for (int i = 0; i < WindowMan.GetWindows().Size(); ++i)
{
AppWindow * w = WindowMan.GetWindows()[i];
w->RenderGrid(false);
}
}
else if (msg.Contains("PrintHttpOutput("))
{
bool value = msg.Tokenize("()")[1].ParseBool();
printHttpOutput = value;
}
else if (msg.Contains("SetHttpTool:"))
{
httpTool = msg.Tokenize(":")[1].ParseInt();
}
else if (msg.Contains("HttpGet:"))
{
String url = msg - "HttpGet:";
HttpGet(url);
}
else if (msg == "ResumePhysics")
{
PhysicsMan.Resume();
}
else if (msg.Contains("PlayBGM:"))
{
String source = msg - "PlayBGM:";
source.RemoveSurroundingWhitespaces();
AudioMan.QueueMessage(new AMPlayBGM(source, 1.f));
}