Mercurial > sdl-ios-xcode
comparison src/video/quartz/SDL_QuartzVideo.h @ 1668:4da1ee79c9af SDL-1.3
more tweaking indent options
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 29 May 2006 04:04:35 +0000 |
parents | 782fd950bd46 |
children |
comparison
equal
deleted
inserted
replaced
1667:1fddae038bc8 | 1668:4da1ee79c9af |
---|---|
70 | 70 |
71 /* | 71 /* |
72 This is a workaround to directly access NSOpenGLContext's CGL context | 72 This is a workaround to directly access NSOpenGLContext's CGL context |
73 We need this to check for errors NSOpenGLContext doesn't support | 73 We need this to check for errors NSOpenGLContext doesn't support |
74 */ | 74 */ |
75 @ interface NSOpenGLContext (CGLContextAccess) - (CGLContextObj) cglContext; | 75 @ interface NSOpenGLContext(CGLContextAccess) - (CGLContextObj) cglContext; |
76 @end | 76 @end |
77 /* Main driver structure to store required state information */ | 77 /* Main driver structure to store required state information */ |
78 typedef struct SDL_PrivateVideoData | 78 typedef struct SDL_PrivateVideoData |
79 { | 79 { |
80 | 80 |
218 QZ_SHOWCURSOR | 218 QZ_SHOWCURSOR |
219 }; | 219 }; |
220 | 220 |
221 /* Gamma Functions */ | 221 /* Gamma Functions */ |
222 int | 222 int |
223 QZ_SetGamma (_THIS, float red, float green, float blue); | 223 QZ_SetGamma(_THIS, float red, float green, float blue); |
224 int | 224 int |
225 QZ_GetGamma (_THIS, float *red, float *green, float *blue); | 225 QZ_GetGamma(_THIS, float *red, float *green, float *blue); |
226 int | 226 int |
227 QZ_SetGammaRamp (_THIS, Uint16 * ramp); | 227 QZ_SetGammaRamp(_THIS, Uint16 * ramp); |
228 int | 228 int |
229 QZ_GetGammaRamp (_THIS, Uint16 * ramp); | 229 QZ_GetGammaRamp(_THIS, Uint16 * ramp); |
230 | 230 |
231 /* OpenGL functions */ | 231 /* OpenGL functions */ |
232 int | 232 int |
233 QZ_SetupOpenGL (_THIS, int bpp, Uint32 flags); | 233 QZ_SetupOpenGL(_THIS, int bpp, Uint32 flags); |
234 void | 234 void |
235 QZ_TearDownOpenGL (_THIS); | 235 QZ_TearDownOpenGL(_THIS); |
236 void * | 236 void * |
237 QZ_GL_GetProcAddress (_THIS, const char *proc); | 237 QZ_GL_GetProcAddress(_THIS, const char *proc); |
238 int | 238 int |
239 QZ_GL_GetAttribute (_THIS, SDL_GLattr attrib, int *value); | 239 QZ_GL_GetAttribute(_THIS, SDL_GLattr attrib, int *value); |
240 int | 240 int |
241 QZ_GL_MakeCurrent (_THIS); | 241 QZ_GL_MakeCurrent(_THIS); |
242 void | 242 void |
243 QZ_GL_SwapBuffers (_THIS); | 243 QZ_GL_SwapBuffers(_THIS); |
244 int | 244 int |
245 QZ_GL_LoadLibrary (_THIS, const char *location); | 245 QZ_GL_LoadLibrary(_THIS, const char *location); |
246 | 246 |
247 /* Cursor and Mouse functions */ | 247 /* Cursor and Mouse functions */ |
248 void | 248 void |
249 QZ_FreeWMCursor (_THIS, WMcursor * cursor); | 249 QZ_FreeWMCursor(_THIS, WMcursor * cursor); |
250 WMcursor * | 250 WMcursor * |
251 QZ_CreateWMCursor (_THIS, Uint8 * data, Uint8 * mask, | 251 QZ_CreateWMCursor(_THIS, Uint8 * data, Uint8 * mask, |
252 int w, int h, int hot_x, int hot_y); | 252 int w, int h, int hot_x, int hot_y); |
253 int | 253 int |
254 QZ_ShowWMCursor (_THIS, WMcursor * cursor); | 254 QZ_ShowWMCursor(_THIS, WMcursor * cursor); |
255 void | 255 void |
256 QZ_WarpWMCursor (_THIS, Uint16 x, Uint16 y); | 256 QZ_WarpWMCursor(_THIS, Uint16 x, Uint16 y); |
257 void | 257 void |
258 QZ_MoveWMCursor (_THIS, int x, int y); | 258 QZ_MoveWMCursor(_THIS, int x, int y); |
259 void | 259 void |
260 QZ_CheckMouseMode (_THIS); | 260 QZ_CheckMouseMode(_THIS); |
261 void | 261 void |
262 QZ_UpdateMouse (_THIS); | 262 QZ_UpdateMouse(_THIS); |
263 | 263 |
264 /* Event functions */ | 264 /* Event functions */ |
265 void | 265 void |
266 QZ_InitOSKeymap (_THIS); | 266 QZ_InitOSKeymap(_THIS); |
267 void | 267 void |
268 QZ_PumpEvents (_THIS); | 268 QZ_PumpEvents(_THIS); |
269 | 269 |
270 /* Window Manager functions */ | 270 /* Window Manager functions */ |
271 void | 271 void |
272 QZ_SetCaption (_THIS, const char *title, const char *icon); | 272 QZ_SetCaption(_THIS, const char *title, const char *icon); |
273 void | 273 void |
274 QZ_SetIcon (_THIS, SDL_Surface * icon, Uint8 * mask); | 274 QZ_SetIcon(_THIS, SDL_Surface * icon, Uint8 * mask); |
275 int | 275 int |
276 QZ_IconifyWindow (_THIS); | 276 QZ_IconifyWindow(_THIS); |
277 SDL_GrabMode | 277 SDL_GrabMode |
278 QZ_GrabInput (_THIS, SDL_GrabMode grab_mode); | 278 QZ_GrabInput(_THIS, SDL_GrabMode grab_mode); |
279 /*int QZ_GetWMInfo (_THIS, SDL_SysWMinfo *info);*/ | 279 /*int QZ_GetWMInfo (_THIS, SDL_SysWMinfo *info);*/ |
280 | 280 |
281 /* YUV functions */ | 281 /* YUV functions */ |
282 SDL_Overlay *QZ_CreateYUVOverlay (_THIS, int width, int height, | 282 SDL_Overlay *QZ_CreateYUVOverlay(_THIS, int width, int height, |
283 Uint32 format, SDL_Surface * display); | 283 Uint32 format, SDL_Surface * display); |
284 | 284 |
285 | 285 |
286 /* Private functions (used internally) */ | 286 /* Private functions (used internally) */ |
287 void QZ_PrivateWarpCursor (_THIS, int x, int y); | 287 void QZ_PrivateWarpCursor(_THIS, int x, int y); |
288 void QZ_ChangeGrabState (_THIS, int action); | 288 void QZ_ChangeGrabState(_THIS, int action); |
289 void QZ_RegisterForSleepNotifications (_THIS); | 289 void QZ_RegisterForSleepNotifications(_THIS); |
290 void QZ_ShowMouse (_THIS); | 290 void QZ_ShowMouse(_THIS); |
291 void QZ_HideMouse (_THIS); | 291 void QZ_HideMouse(_THIS); |
292 void QZ_PrivateGlobalToLocal (_THIS, NSPoint * p); | 292 void QZ_PrivateGlobalToLocal(_THIS, NSPoint * p); |
293 void QZ_PrivateCocoaToSDL (_THIS, NSPoint * p); | 293 void QZ_PrivateCocoaToSDL(_THIS, NSPoint * p); |
294 BOOL | 294 BOOL |
295 QZ_IsMouseInWindow (_THIS); | 295 QZ_IsMouseInWindow(_THIS); |
296 void QZ_DoActivate (_THIS); | 296 void QZ_DoActivate(_THIS); |
297 void QZ_DoDeactivate (_THIS); | 297 void QZ_DoDeactivate(_THIS); |
298 /* vi: set ts=4 sw=4 expandtab: */ | 298 /* vi: set ts=4 sw=4 expandtab: */ |