当前位置: 首页>>代码示例>>C++>>正文


C++ Platform::enterMessagePump方法代码示例

本文整理汇总了C++中Platform::enterMessagePump方法的典型用法代码示例。如果您正苦于以下问题:C++ Platform::enterMessagePump方法的具体用法?C++ Platform::enterMessagePump怎么用?C++ Platform::enterMessagePump使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Platform的用法示例。


在下文中一共展示了Platform::enterMessagePump方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: lua_Platform_enterMessagePump

int lua_Platform_enterMessagePump(lua_State* state)
{
    // Get the number of parameters.
    int paramCount = lua_gettop(state);

    // Attempt to match the parameters to a valid binding.
    switch (paramCount)
    {
        case 1:
        {
            if ((lua_type(state, 1) == LUA_TUSERDATA))
            {
                Platform* instance = getInstance(state);
                int result = instance->enterMessagePump();

                // Push the return value onto the stack.
                lua_pushinteger(state, result);

                return 1;
            }

            lua_pushstring(state, "lua_Platform_enterMessagePump - Failed to match the given parameters to a valid function signature.");
            lua_error(state);
            break;
        }
        default:
        {
            lua_pushstring(state, "Invalid number of parameters (expected 1).");
            lua_error(state);
            break;
        }
    }
    return 0;
}
开发者ID:1timmy,项目名称:GamePlay,代码行数:34,代码来源:lua_Platform.cpp

示例2: WinMain

/**
 * Main entry point.
 */
extern "C" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR cmdLine, int cmdShow)
{
    Game* game = Game::getInstance();
    Platform* platform = Platform::create(game);
    GP_ASSERT(platform);
    int result = platform->enterMessagePump();
    delete platform;
    return result;
}
开发者ID:hgl888,项目名称:RuntimeCanvas,代码行数:12,代码来源:gameplay-main-windows.cpp

示例3: main

/**
 * Main entry point.
 */
int main(int argc, char** argv)
{
    Game* game = Game::getInstance();
    Platform* platform = Platform::create(game);
    GP_ASSERT(platform);
    int result = platform->enterMessagePump();
    delete platform;
    return result;
}
开发者ID:AllenPestaluky,项目名称:GamePlay,代码行数:12,代码来源:gameplay-main-blackberry.cpp

示例4: android_main

/**
 * Main entry point.
 */
void android_main(struct android_app* state)
{
	// Android specific : Dummy function that needs to be called to
	// ensure that the native activity works properly behind the scenes.
	// app_dummy();

	__state = state;
	Game* game = Game::getInstance();
	Platform* platform = Platform::create(game);
	GP_ASSERT(platform);
	platform->enterMessagePump();
	delete platform;

	// Android specific : the process needs to exit to trigger
	// cleanup of global and static resources (such as the game).
	exit(0);
}
开发者ID:ARVOS-APP,项目名称:ArViewerGameplay,代码行数:20,代码来源:gameplay-main-android.cpp


注:本文中的Platform::enterMessagePump方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。