test/testnativew32.c
author Sam Lantinga <slouken@libsdl.org>
Mon, 09 Feb 2009 05:32:12 +0000
changeset 3057 089a77aebb7d
child 3060 4cf533f434d8
permissions -rw-r--r--
Added test program for SDL_CreateWindowFrom()
Make sure OpenGL library is loaded before working with OpenGL windows,
even those created with SDL_CreateWindowFrom()
     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