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


C++ GHOST_ISystem::getMainDisplayDimensions方法代码示例

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


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

示例1: GHOST_GetMainDisplayDimensions

void GHOST_GetMainDisplayDimensions(GHOST_SystemHandle systemhandle,
                                    GHOST_TUns32 *width,
                                    GHOST_TUns32 *height)
{
	GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;
	
	system->getMainDisplayDimensions(*width, *height);
}
开发者ID:floored,项目名称:blender,代码行数:8,代码来源:GHOST_C-api.cpp

示例2: GetDisplayDimensions

void GPG_Canvas::GetDisplayDimensions(int &width, int &height)
 {
	unsigned int uiwidth;
	unsigned int uiheight;

	GHOST_ISystem *system = GHOST_ISystem::getSystem();
	system->getMainDisplayDimensions(uiwidth, uiheight);

	width = uiwidth;
	height = uiheight;
}
开发者ID:Andrewson3D,项目名称:blender-for-vray,代码行数:11,代码来源:GPG_Canvas.cpp

示例3: main


//.........这里部分代码省略.........
                printf("Unknown argument: %s\n", argv[i++]);
                break;
            }
            }
        }
        else
        {
            i++;
        }
    }

    if ((windowWidth < kMinWindowWidth) || (windowHeight < kMinWindowHeight))
    {
        error = true;
        printf("error: window size too small.\n");
    }

    if (error )
    {
        usage(argv[0], isBlenderPlayer);
        return 0;
    }

#ifdef WIN32
    if (scr_saver_mode != SCREEN_SAVER_MODE_CONFIGURATION)
#endif
    {
        // Create the system
        if (GHOST_ISystem::createSystem() == GHOST_kSuccess) {
            GHOST_ISystem* system = GHOST_ISystem::getSystem();
            assertd(system);

            if (!fullScreenWidth || !fullScreenHeight)
                system->getMainDisplayDimensions(fullScreenWidth, fullScreenHeight);
            // process first batch of events. If the user
            // drops a file on top off the blenderplayer icon, we
            // receive an event with the filename

            system->processEvents(0);

            // this bracket is needed for app (see below) to get out
            // of scope before GHOST_ISystem::disposeSystem() is called.
            {
                int exitcode = KX_EXIT_REQUEST_NO_REQUEST;
                STR_String exitstring = "";
                GPG_Application app(system);
                bool firstTimeRunning = true;
                char filename[FILE_MAX];
                char pathname[FILE_MAX];
                char *titlename;

                get_filename(argc_py_clamped, argv, filename);
                if (filename[0])
                    BLI_path_cwd(filename);


                // fill the GlobalSettings with the first scene files
                // those may change during the game and persist after using Game Actuator
                GlobalSettings gs;

                do {
                    // Read the Blender file
                    BlendFileData *bfd;

                    // if we got an exitcode 3 (KX_EXIT_REQUEST_START_OTHER_GAME) load a different file
                    if (exitcode == KX_EXIT_REQUEST_START_OTHER_GAME)
开发者ID:akonneker,项目名称:blensor,代码行数:67,代码来源:GPG_ghost.cpp


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