test/testnative.h
author Sam Lantinga <slouken@libsdl.org>
Thu, 20 Jan 2011 18:04:05 -0800
changeset 5062 e8916fe9cfc8
parent 3061 94dd49f6b005
child 5535 96594ac5fd1a
permissions -rw-r--r--
Fixed bug #925

Changed "win32" to "windows"
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@3061
    14
    void *(*CreateNativeWindow) (int w, int h);
slouken@3061
    15
    void (*DestroyNativeWindow) (void *window);
slouken@3059
    16
} NativeWindowFactory;
slouken@3059
    17
slouken@5062
    18
#ifdef SDL_VIDEO_DRIVER_WINDOWS
slouken@5062
    19
#define TEST_NATIVE_WINDOWS
slouken@5062
    20
extern NativeWindowFactory WindowsWindowFactory;
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