Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
37 lines (30 loc) · 965 Bytes

testnative.h

File metadata and controls

37 lines (30 loc) · 965 Bytes
 
Feb 9, 2009
Feb 9, 2009
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Definitions for platform dependent windowing functions to test SDL
integration with native windows
*/
#include "SDL.h"
/* This header includes all the necessary system headers for native windows */
#include "SDL_syswm.h"
typedef struct
{
const char *tag;
Feb 9, 2009
Feb 9, 2009
14
15
void *(*CreateNativeWindow) (int w, int h);
void (*DestroyNativeWindow) (void *window);
Feb 9, 2009
Feb 9, 2009
16
17
} NativeWindowFactory;
Jan 21, 2011
Jan 21, 2011
18
19
20
#ifdef SDL_VIDEO_DRIVER_WINDOWS
#define TEST_NATIVE_WINDOWS
extern NativeWindowFactory WindowsWindowFactory;
Feb 9, 2009
Feb 9, 2009
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#endif
#ifdef SDL_VIDEO_DRIVER_X11
#define TEST_NATIVE_X11
extern NativeWindowFactory X11WindowFactory;
#endif
#ifdef SDL_VIDEO_DRIVER_COCOA
/* Actually, we don't really do this, since it involves adding Objective C
support to the build system, which is a little tricky. You can uncomment
it manually though and link testnativecocoa.m into the test application.
*/
#if 1
#define TEST_NATIVE_COCOA
extern NativeWindowFactory CocoaWindowFactory;
#endif
#endif