comparison src/video/SDL_sysvideo.h @ 1720:a1ebb17f9c52 SDL-1.3

Cleaned up a bunch of warnings, started adding Win32 event support
author Sam Lantinga <slouken@libsdl.org>
date Fri, 30 Jun 2006 05:42:49 +0000
parents 931d111e737a
children 98a3207ddde8
comparison
equal deleted inserted replaced
1719:5b9f50c957ed 1720:a1ebb17f9c52
23 23
24 #ifndef _SDL_sysvideo_h 24 #ifndef _SDL_sysvideo_h
25 #define _SDL_sysvideo_h 25 #define _SDL_sysvideo_h
26 26
27 #include "SDL_mouse.h" 27 #include "SDL_mouse.h"
28 #define SDL_PROTOTYPES_ONLY
29 #include "SDL_syswm.h"
30 #undef SDL_PROTOTYPES_ONLY
31 28
32 /* The SDL video driver */ 29 /* The SDL video driver */
33 30
34 typedef struct SDL_Window SDL_Window; 31 typedef struct SDL_Window SDL_Window;
35 typedef struct SDL_Texture SDL_Texture; 32 typedef struct SDL_Texture SDL_Texture;
76 void (*UnlockTexture) (SDL_Renderer * renderer, SDL_Texture * texture); 73 void (*UnlockTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
77 void (*DirtyTexture) (SDL_Renderer * renderer, SDL_Texture * texture, 74 void (*DirtyTexture) (SDL_Renderer * renderer, SDL_Texture * texture,
78 int numrects, const SDL_Rect * rects); 75 int numrects, const SDL_Rect * rects);
79 void (*SelectRenderTexture) (SDL_Renderer * renderer, 76 void (*SelectRenderTexture) (SDL_Renderer * renderer,
80 SDL_Texture * texture); 77 SDL_Texture * texture);
81 void (*RenderFill) (SDL_Renderer * renderer, const SDL_Rect * rect, 78 int (*RenderFill) (SDL_Renderer * renderer, const SDL_Rect * rect,
82 Uint32 color); 79 Uint32 color);
83 int (*RenderCopy) (SDL_Renderer * renderer, SDL_Texture * texture, 80 int (*RenderCopy) (SDL_Renderer * renderer, SDL_Texture * texture,
84 const SDL_Rect * srcrect, const SDL_Rect * dstrect, 81 const SDL_Rect * srcrect, const SDL_Rect * dstrect,
85 int blendMode, int scaleMode); 82 int blendMode, int scaleMode);
86 int (*RenderReadPixels) (SDL_Renderer * renderer, const SDL_Rect * rect, 83 int (*RenderReadPixels) (SDL_Renderer * renderer, const SDL_Rect * rect,
87 void *pixels, int pitch); 84 void *pixels, int pitch);
206 void (*SetWindowGrab) (_THIS, SDL_Window * window); 203 void (*SetWindowGrab) (_THIS, SDL_Window * window);
207 void (*DestroyWindow) (_THIS, SDL_Window * window); 204 void (*DestroyWindow) (_THIS, SDL_Window * window);
208 205
209 /* Get some platform dependent window information */ 206 /* Get some platform dependent window information */
210 SDL_bool(*GetWindowWMInfo) (_THIS, SDL_Window * window, 207 SDL_bool(*GetWindowWMInfo) (_THIS, SDL_Window * window,
211 SDL_SysWMinfo * info); 208 struct SDL_SysWMinfo * info);
212 209
213 /* Reverse the effects VideoInit() -- called if VideoInit() fails 210 /* Reverse the effects VideoInit() -- called if VideoInit() fails
214 or if the application is shutting down the video subsystem. 211 or if the application is shutting down the video subsystem.
215 */ 212 */
216 void (*VideoQuit) (_THIS); 213 void (*VideoQuit) (_THIS);
298 void *dll_handle; 295 void *dll_handle;
299 } gl_config; 296 } gl_config;
300 297
301 /* * * */ 298 /* * * */
302 /* Data private to this driver */ 299 /* Data private to this driver */
303 struct SDL_PrivateVideoData *hidden; 300 void *driverdata;
304 struct SDL_PrivateGLData *gl_data; 301 struct SDL_PrivateGLData *gl_data;
305 302
306 /* * * */ 303 /* * * */
307 /* The function used to dispose of this structure */ 304 /* The function used to dispose of this structure */
308 void (*free) (_THIS); 305 void (*free) (_THIS);