comparison src/video/win32/SDL_win32video.h @ 1730:e70477157db9 SDL-1.3

Starting support for Direct3D render driver.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 08 Jul 2006 18:06:02 +0000
parents 98a3207ddde8
children 0b1070f2f94d
comparison
equal deleted inserted replaced
1729:0ef52d56e8bb 1730:e70477157db9
26 26
27 #include "../SDL_sysvideo.h" 27 #include "../SDL_sysvideo.h"
28 28
29 #define WIN32_LEAN_AND_MEAN 29 #define WIN32_LEAN_AND_MEAN
30 #define UNICODE 30 #define UNICODE
31 #define WINVER 0x500 // Need 0x410 for AlphaBlend() and 0x500 for EnumDisplayDevices() 31 #define WINVER 0x500 /* Need 0x410 for AlphaBlend() and 0x500 for EnumDisplayDevices() */
32 #include <windows.h> 32 #include <windows.h>
33
34 #if SDL_VIDEO_RENDER_D3D
35 #include <d3d9.h>
36 #endif
33 37
34 #include "SDL_win32events.h" 38 #include "SDL_win32events.h"
35 #include "SDL_win32keyboard.h" 39 #include "SDL_win32keyboard.h"
36 #include "SDL_win32modes.h" 40 #include "SDL_win32modes.h"
37 #include "SDL_win32mouse.h" 41 #include "SDL_win32mouse.h"
47 51
48 /* Private display data */ 52 /* Private display data */
49 53
50 typedef struct SDL_VideoData 54 typedef struct SDL_VideoData
51 { 55 {
56 #if SDL_VIDEO_RENDER_D3D
57 HANDLE d3dDLL;
58 IDirect3D9 *d3d;
59 #endif
52 int mouse; 60 int mouse;
53 int keyboard; 61 int keyboard;
54 } SDL_VideoData; 62 } SDL_VideoData;
55 63
56 #endif /* _SDL_win32video_h */ 64 #endif /* _SDL_win32video_h */