1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
void fgOpenWindow( SFG_Window* window, const char* title,
GLboolean positionUse, int x, int y,
GLboolean sizeUse, int w, int h,
GLboolean gameMode, GLboolean isSubWindow )
{
#if defined(_WIN32_WCE)
…
#else
window->Window.Handle = CreateWindowEx(
exFlags, // = 0
_T("FREEGLUT"),
title, // = “Chapter 1”
flags, // = 382664704
x, // = 0x08000 0000
y, // = 0x08000 0000
w, h, // w = 816, h = 638
(HWND) window->Parent == NULL ? // window_Parent == NULL
NULL : // must be selecting this option
window->Parent->Window.Handle,
(HMENU) NULL,
fgDisplay.Instance, // 0x00fc0000
(LPVOID) window // 0x00771290
);
#endif
|