comparison include/SDL_video.h @ 1020:5b1cb1e9140d

Allow SDL to be loaded by Matlab
author Sam Lantinga <slouken@libsdl.org>
date Sun, 02 Jan 2005 05:11:16 +0000
parents 04a403e4ccf5
children c9b51268668f
comparison
equal deleted inserted replaced
1019:e3b3130f3af8 1020:5b1cb1e9140d
86 /* RGB color key information */ 86 /* RGB color key information */
87 Uint32 colorkey; 87 Uint32 colorkey;
88 /* Alpha value information (per-surface alpha) */ 88 /* Alpha value information (per-surface alpha) */
89 Uint8 alpha; 89 Uint8 alpha;
90 } SDL_PixelFormat; 90 } SDL_PixelFormat;
91
92 /* typedef for private surface blitting functions */
93 struct SDL_Surface;
94 typedef int (*SDL_blit)(struct SDL_Surface *src, SDL_Rect *srcrect,
95 struct SDL_Surface *dst, SDL_Rect *dstrect);
96 91
97 /* This structure should be treated as read-only, except for 'pixels', 92 /* This structure should be treated as read-only, except for 'pixels',
98 which, if not NULL, contains the raw pixel data for the surface. 93 which, if not NULL, contains the raw pixel data for the surface.
99 */ 94 */
100 typedef struct SDL_Surface { 95 typedef struct SDL_Surface {
149 144
150 /* Evaluates to true if the surface needs to be locked before access */ 145 /* Evaluates to true if the surface needs to be locked before access */
151 #define SDL_MUSTLOCK(surface) \ 146 #define SDL_MUSTLOCK(surface) \
152 (surface->offset || \ 147 (surface->offset || \
153 ((surface->flags & (SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_RLEACCEL)) != 0)) 148 ((surface->flags & (SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_RLEACCEL)) != 0))
149
150 /* typedef for private surface blitting functions */
151 typedef int (*SDL_blit)(struct SDL_Surface *src, SDL_Rect *srcrect,
152 struct SDL_Surface *dst, SDL_Rect *dstrect);
154 153
155 154
156 /* Useful for determining the video hardware capabilities */ 155 /* Useful for determining the video hardware capabilities */
157 typedef struct SDL_VideoInfo { 156 typedef struct SDL_VideoInfo {
158 Uint32 hw_available :1; /* Flag: Can you create hardware surfaces? */ 157 Uint32 hw_available :1; /* Flag: Can you create hardware surfaces? */