コード例 #1
0
GHOST_WindowHandle GHOST_CreateWindow(GHOST_SystemHandle systemhandle,
                                      const char *title,
                                      GHOST_TInt32 left,
                                      GHOST_TInt32 top,
                                      GHOST_TUns32 width,
                                      GHOST_TUns32 height,
                                      GHOST_TWindowState state,
                                      GHOST_TDrawingContextType type,
                                      GHOST_GLSettings glSettings)
{
	GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;

	return (GHOST_WindowHandle) system->createWindow(title, left, top, width, height,
	                                                 state, type, glSettings, false);
}
コード例 #2
0
ファイル: GHOST_C-api.cpp プロジェクト: jinjoh/NOOR
GHOST_WindowHandle GHOST_CreateWindow(GHOST_SystemHandle systemhandle,
									  char* title,
									  GHOST_TInt32 left,
									  GHOST_TInt32 top,
									  GHOST_TUns32 width,
									  GHOST_TUns32 height,
									  GHOST_TWindowState state,
									  GHOST_TDrawingContextType type,
									  const int stereoVisual)
{
	GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
	bool bstereoVisual;

	if(stereoVisual)
		bstereoVisual = true;
	else
		bstereoVisual = false;

	return (GHOST_WindowHandle) system->createWindow(title, left, top, width, height,
		state, type, bstereoVisual);
}