test/testnative.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 09 Feb 2009 06:28:45 +0000
changeset 3059 79b061c4f316
child 3061 94dd49f6b005
permissions -rw-r--r--
Whoops, missed a file
slouken@3059
     1
slouken@3059
     2
/* Definitions for platform dependent windowing functions to test SDL
slouken@3059
     3
   integration with native windows
slouken@3059
     4
*/
slouken@3059
     5
slouken@3059
     6
#include "SDL.h"
slouken@3059
     7
slouken@3059
     8
/* This header includes all the necessary system headers for native windows */
slouken@3059
     9
#include "SDL_syswm.h"
slouken@3059
    10
slouken@3059
    11
typedef struct
slouken@3059
    12
{
slouken@3059
    13
    const char *tag;
slouken@3059
    14
    void *(*CreateWindow) (int w, int h);
slouken@3059
    15
    void (*DestroyWindow) (void *window);
slouken@3059
    16
} NativeWindowFactory;
slouken@3059
    17
slouken@3059
    18
#ifdef SDL_VIDEO_DRIVER_WIN32
slouken@3059
    19
#define TEST_NATIVE_WIN32
slouken@3059
    20
extern NativeWindowFactory Win32WindowFactory;
slouken@3059
    21
#endif
slouken@3059
    22
slouken@3059
    23
#ifdef SDL_VIDEO_DRIVER_X11
slouken@3059
    24
#define TEST_NATIVE_X11
slouken@3059
    25
extern NativeWindowFactory X11WindowFactory;
slouken@3059
    26
#endif
slouken@3059
    27
slouken@3059
    28
#ifdef SDL_VIDEO_DRIVER_COCOA
slouken@3059
    29
/* Actually, we don't really do this, since it involves adding Objective C
slouken@3059
    30
   support to the build system, which is a little tricky.  You can uncomment
slouken@3059
    31
   it manually though and link testnativecocoa.m into the test application.
slouken@3059
    32
*/
slouken@3059
    33
#if 1
slouken@3059
    34
#define TEST_NATIVE_COCOA
slouken@3059
    35
extern NativeWindowFactory CocoaWindowFactory;
slouken@3059
    36
#endif
slouken@3059
    37
#endif