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()
slouken@3057
     1
slouken@3057
     2
#include "testnative.h"
slouken@3057
     3
slouken@3057
     4
#ifdef TEST_NATIVE_WIN32
slouken@3057
     5
slouken@3057
     6
static void *CreateWindowWin32(int w, int h);
slouken@3057
     7
static void DestroyWindowWin32(void *window);
slouken@3057
     8
slouken@3057
     9
NativeWindowFactory Win32WindowFactory = {
slouken@3057
    10
    "win32",
slouken@3057
    11
    CreateWindowWin32,
slouken@3057
    12
    DestroyWindowWin32
slouken@3057
    13
};
slouken@3057
    14
slouken@3057
    15
static Display *dpy;
slouken@3057
    16
slouken@3057
    17
static void *
slouken@3057
    18
CreateWindowWin32(int w, int h)
slouken@3057
    19
{
slouken@3057
    20
    return NULL;
slouken@3057
    21
}
slouken@3057
    22
slouken@3057
    23
static void
slouken@3057
    24
DestroyWindowWin32(void *window)
slouken@3057
    25
{
slouken@3057
    26
}
slouken@3057
    27
slouken@3057
    28
#endif