Mercurial > sdl-ios-xcode
comparison src/video/windows/SDL_windowsvideo.h @ 5157:fb424691cfc7
Moved the rendering code out to a separate directory in the hope that it can someday be completely decoupled from the rest of the library and be expanded to an awesome 2D on 3D library.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 02 Feb 2011 14:34:54 -0800 |
parents | 57851a238c8f |
children | 572a73d71b5f |
comparison
equal
deleted
inserted
replaced
5156:3e4086b3bcd2 | 5157:fb424691cfc7 |
---|---|
37 #include <imm.h> | 37 #include <imm.h> |
38 | 38 |
39 #define MAX_CANDLIST 10 | 39 #define MAX_CANDLIST 10 |
40 #define MAX_CANDLENGTH 256 | 40 #define MAX_CANDLENGTH 256 |
41 | 41 |
42 #if SDL_VIDEO_RENDER_D3D | |
43 //#include <d3d9.h> | |
44 #define D3D_DEBUG_INFO | |
45 #include "d3d9.h" | |
46 #endif | |
47 | |
48 #include "SDL_windowsclipboard.h" | 42 #include "SDL_windowsclipboard.h" |
49 #include "SDL_windowsevents.h" | 43 #include "SDL_windowsevents.h" |
50 #include "SDL_windowsgamma.h" | 44 #include "SDL_windowsgamma.h" |
51 #include "SDL_windowskeyboard.h" | 45 #include "SDL_windowskeyboard.h" |
52 #include "SDL_windowsmodes.h" | 46 #include "SDL_windowsmodes.h" |
54 #include "SDL_windowsopengl.h" | 48 #include "SDL_windowsopengl.h" |
55 #include "SDL_windowswindow.h" | 49 #include "SDL_windowswindow.h" |
56 #include "SDL_events.h" | 50 #include "SDL_events.h" |
57 #include "SDL_loadso.h" | 51 #include "SDL_loadso.h" |
58 | 52 |
59 | |
60 enum { RENDER_NONE, RENDER_D3D }; | |
61 | 53 |
62 #if WINVER < 0x0601 | 54 #if WINVER < 0x0601 |
63 /* Touch input definitions */ | 55 /* Touch input definitions */ |
64 #define TWF_FINETOUCH 1 | 56 #define TWF_FINETOUCH 1 |
65 #define TWF_WANTPALM 2 | 57 #define TWF_WANTPALM 2 |
123 | 115 |
124 typedef struct SDL_VideoData | 116 typedef struct SDL_VideoData |
125 { | 117 { |
126 int render; | 118 int render; |
127 | 119 |
128 #if SDL_VIDEO_RENDER_D3D | |
129 void* d3dDLL; | |
130 IDirect3D9 *d3d; | |
131 #endif | |
132 #ifdef _WIN32_WCE | 120 #ifdef _WIN32_WCE |
133 void* hAygShell; | 121 void* hAygShell; |
134 PFNSHFullScreen SHFullScreen; | 122 PFNSHFullScreen SHFullScreen; |
135 PFCoordTransform CoordTransform; | 123 PFCoordTransform CoordTransform; |
136 #endif | 124 #endif |
164 DWORD ime_candsel; | 152 DWORD ime_candsel; |
165 UINT ime_candpgsize; | 153 UINT ime_candpgsize; |
166 int ime_candlistindexbase; | 154 int ime_candlistindexbase; |
167 SDL_bool ime_candvertical; | 155 SDL_bool ime_candvertical; |
168 | 156 |
169 SDL_Texture *ime_candtex; | |
170 SDL_bool ime_dirty; | 157 SDL_bool ime_dirty; |
171 SDL_Rect ime_rect; | 158 SDL_Rect ime_rect; |
172 SDL_Rect ime_candlistrect; | 159 SDL_Rect ime_candlistrect; |
173 int ime_winwidth; | 160 int ime_winwidth; |
174 int ime_winheight; | 161 int ime_winheight; |