comparison test/testnativew32.c @ 3057:089a77aebb7d

Added test program for SDL_CreateWindowFrom() Make sure OpenGL library is loaded before working with OpenGL windows, even those created with SDL_CreateWindowFrom()
author Sam Lantinga <slouken@libsdl.org>
date Mon, 09 Feb 2009 05:32:12 +0000
parents
children 4cf533f434d8
comparison
equal deleted inserted replaced
3056:a434fe6360df 3057:089a77aebb7d
1
2 #include "testnative.h"
3
4 #ifdef TEST_NATIVE_WIN32
5
6 static void *CreateWindowWin32(int w, int h);
7 static void DestroyWindowWin32(void *window);
8
9 NativeWindowFactory Win32WindowFactory = {
10 "win32",
11 CreateWindowWin32,
12 DestroyWindowWin32
13 };
14
15 static Display *dpy;
16
17 static void *
18 CreateWindowWin32(int w, int h)
19 {
20 return NULL;
21 }
22
23 static void
24 DestroyWindowWin32(void *window)
25 {
26 }
27
28 #endif