Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_SystemWin32.cpp
| Show First 20 Lines • Show All 295 Lines • ▼ Show 20 Lines | GHOST_IWindow *GHOST_SystemWin32::createWindow(const STR_String &title, | ||||
| return window; | return window; | ||||
| } | } | ||||
| /** | /** | ||||
| * Create a new offscreen context. | * Create a new offscreen context. | ||||
| * Never explicitly delete the window, use #disposeContext() instead. | * Never explicitly delete the window, use #disposeContext() instead. | ||||
| * \return The new context (or 0 if creation failed). | * \return The new context (or 0 if creation failed). | ||||
| */ | */ | ||||
| GHOST_IContext *GHOST_SystemWin32::createOffscreenContext() | GHOST_IContext *GHOST_SystemWin32::createOffscreenContext( | ||||
| GHOST_PlatformSupportCallbackPtr platform_support_callback) | |||||
| { | { | ||||
| bool debug_context = false; /* TODO: inform as a parameter */ | bool debug_context = false; /* TODO: inform as a parameter */ | ||||
| GHOST_Context *context; | GHOST_Context *context; | ||||
| HWND wnd = CreateWindowA("STATIC", | HWND wnd = CreateWindowA("STATIC", | ||||
| "BlenderGLEW", | "BlenderGLEW", | ||||
brecht: Define a constant for this rather than hardcoding 1024. | |||||
| WS_OVERLAPPEDWINDOW | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, | WS_OVERLAPPEDWINDOW | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, | ||||
| 0, | 0, | ||||
| 0, | 0, | ||||
| 64, | 64, | ||||
| 64, | 64, | ||||
| NULL, | NULL, | ||||
| NULL, | NULL, | ||||
| GetModuleHandle(NULL), | GetModuleHandle(NULL), | ||||
| ▲ Show 20 Lines • Show All 1,554 Lines • Show Last 20 Lines | |||||
Define a constant for this rather than hardcoding 1024.