zenilib: zenilib/jni/external/sdl/src/video/cocoa/SDL_cocoavideo.m Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_cocoavideo.m
Go to the documentation of this file.
1 /*
2 Simple DirectMedia Layer
3 Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
4
5 This software is provided 'as-is', without any express or implied
6 warranty. In no event will the authors be held liable for any damages
7 arising from the use of this software.
8
9 Permission is granted to anyone to use this software for any purpose,
10 including commercial applications, and to alter it and redistribute it
11 freely, subject to the following restrictions:
12
13 1. The origin of this software must not be misrepresented; you must not
14 claim that you wrote the original software. If you use this software
15 in a product, an acknowledgment in the product documentation would be
16 appreciated but is not required.
17 2. Altered source versions must be plainly marked as such, and must not be
18 misrepresented as being the original software.
19 3. This notice may not be removed or altered from any source distribution.
20 */
21 #include "SDL_config.h"
22
23 #if SDL_VIDEO_DRIVER_COCOA
24
25 #if defined(__APPLE__) && defined(__POWERPC__) && !defined(__APPLE_ALTIVEC__)
26 #include <altivec.h>
27 #undef bool
28 #undef vector
29 #undef pixel
30 #endif
31
32 #include "SDL.h"
33 #include "SDL_endian.h"
34 #include "SDL_cocoavideo.h"
35 #include "SDL_cocoashape.h"
36 #include "SDL_assert.h"
37
38 /* Initialization/Query functions */
39 static int Cocoa_VideoInit(_THIS);
40 static void Cocoa_VideoQuit(_THIS);
41
42 /* Cocoa driver bootstrap functions */
43
44 static int
45 Cocoa_Available(void)
46 {
47 return (1);
48 }
49
50 static void
51 Cocoa_DeleteDevice(SDL_VideoDevice * device)
52 {
53 SDL_free(device->driverdata);
54 SDL_free(device);
55 }
56
57 static SDL_VideoDevice *
58 Cocoa_CreateDevice(int devindex)
59 {
60 SDL_VideoDevice *device;
61 SDL_VideoData *data;
62
63 Cocoa_RegisterApp();
64
65 /* Initialize all variables that we clean on shutdown */
66 device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice));
67 if (device) {
68 data = (struct SDL_VideoData *) SDL_calloc(1, sizeof(SDL_VideoData));
69 } else {
70 data = NULL;
71 }
72 if (!data) {
73 SDL_OutOfMemory();
74 SDL_free(device);
75 return NULL;
76 }
77 device->driverdata = data;
78
79 /* Find out what version of Mac OS X we're running */
80 Gestalt(gestaltSystemVersion, &data->osversion);
81
82 /* Set the function pointers */
83 device->VideoInit = Cocoa_VideoInit;
84 device->VideoQuit = Cocoa_VideoQuit;
85 device->GetDisplayBounds = Cocoa_GetDisplayBounds;
86 device->GetDisplayModes = Cocoa_GetDisplayModes;
87 device->SetDisplayMode = Cocoa_SetDisplayMode;
88 device->PumpEvents = Cocoa_PumpEvents;
89
90 device->CreateWindow = Cocoa_CreateWindow;
91 device->CreateWindowFrom = Cocoa_CreateWindowFrom;
92 device->SetWindowTitle = Cocoa_SetWindowTitle;
93 device->SetWindowIcon = Cocoa_SetWindowIcon;
94 device->SetWindowPosition = Cocoa_SetWindowPosition;
95 device->SetWindowSize = Cocoa_SetWindowSize;
96 device->SetWindowMinimumSize = Cocoa_SetWindowMinimumSize;
97 device->SetWindowMaximumSize = Cocoa_SetWindowMaximumSize;
98 device->ShowWindow = Cocoa_ShowWindow;
99 device->HideWindow = Cocoa_HideWindow;
100 device->RaiseWindow = Cocoa_RaiseWindow;
101 device->MaximizeWindow = Cocoa_MaximizeWindow;
102 device->MinimizeWindow = Cocoa_MinimizeWindow;
103 device->RestoreWindow = Cocoa_RestoreWindow;
104 device->SetWindowBordered = Cocoa_SetWindowBordered;
105 device->SetWindowFullscreen = Cocoa_SetWindowFullscreen;
106 device->SetWindowGammaRamp = Cocoa_SetWindowGammaRamp;
107 device->GetWindowGammaRamp = Cocoa_GetWindowGammaRamp;
108 device->SetWindowGrab = Cocoa_SetWindowGrab;
109 device->DestroyWindow = Cocoa_DestroyWindow;
110 device->GetWindowWMInfo = Cocoa_GetWindowWMInfo;
111
112 device->shape_driver.CreateShaper = Cocoa_CreateShaper;
113 device->shape_driver.SetWindowShape = Cocoa_SetWindowShape;
114 device->shape_driver.ResizeWindowShape = Cocoa_ResizeWindowShape;
115
116 #if SDL_VIDEO_OPENGL_CGL
117 device->GL_LoadLibrary = Cocoa_GL_LoadLibrary;
118 device->GL_GetProcAddress = Cocoa_GL_GetProcAddress;
119 device->GL_UnloadLibrary = Cocoa_GL_UnloadLibrary;
120 device->GL_CreateContext = Cocoa_GL_CreateContext;
121 device->GL_MakeCurrent = Cocoa_GL_MakeCurrent;
122 device->GL_GetDrawableSize = Cocoa_GL_GetDrawableSize;
123 device->GL_SetSwapInterval = Cocoa_GL_SetSwapInterval;
124 device->GL_GetSwapInterval = Cocoa_GL_GetSwapInterval;
125 device->GL_SwapWindow = Cocoa_GL_SwapWindow;
126 device->GL_DeleteContext = Cocoa_GL_DeleteContext;
127 #endif
128
129 device->StartTextInput = Cocoa_StartTextInput;
130 device->StopTextInput = Cocoa_StopTextInput;
131 device->SetTextInputRect = Cocoa_SetTextInputRect;
132
133 device->SetClipboardText = Cocoa_SetClipboardText;
134 device->GetClipboardText = Cocoa_GetClipboardText;
135 device->HasClipboardText = Cocoa_HasClipboardText;
136
137 device->free = Cocoa_DeleteDevice;
138
139 return device;
140 }
141
142 VideoBootStrap COCOA_bootstrap = {
143 "cocoa", "SDL Cocoa video driver",
144 Cocoa_Available, Cocoa_CreateDevice
145 };
146
147
148 int
149 Cocoa_VideoInit(_THIS)
150 {
151 Cocoa_InitModes(_this);
152 Cocoa_InitKeyboard(_this);
153 Cocoa_InitMouse(_this);
154 return 0;
155 }
156
157 void
158 Cocoa_VideoQuit(_THIS)
159 {
160 Cocoa_QuitModes(_this);
161 Cocoa_QuitKeyboard(_this);
162 Cocoa_QuitMouse(_this);
163 }
164
165 /* This function assumes that it's called from within an autorelease pool */
166 NSImage *
167 Cocoa_CreateImage(SDL_Surface * surface)
168 {
169 SDL_Surface *converted;
170 NSBitmapImageRep *imgrep;
171 Uint8 *pixels;
172 int i;
173 NSImage *img;
174
175 converted = SDL_ConvertSurfaceFormat(surface,
176 #if SDL_BYTEORDER == SDL_BIG_ENDIAN
177 SDL_PIXELFORMAT_RGBA8888,
178 #else
179 SDL_PIXELFORMAT_ABGR8888,
180 #endif
181 0);
182 if (!converted) {
183 return nil;
184 }
185
186 imgrep = [[[NSBitmapImageRep alloc] initWithBitmapDataPlanes: NULL
187 pixelsWide: converted->w
188 pixelsHigh: converted->h
189 bitsPerSample: 8
190 samplesPerPixel: 4
191 hasAlpha: YES
192 isPlanar: NO
193 colorSpaceName: NSDeviceRGBColorSpace
194 bytesPerRow: converted->pitch
195 bitsPerPixel: converted->format->BitsPerPixel] autorelease];
196 if (imgrep == nil) {
197 SDL_FreeSurface(converted);
198 return nil;
199 }
200
201 /* Copy the pixels */
202 pixels = [imgrep bitmapData];
203 SDL_memcpy(pixels, converted->pixels, converted->h * converted->pitch);
204 SDL_FreeSurface(converted);
205
206 /* Premultiply the alpha channel */
207 for (i = (surface->h * surface->w); i--; ) {
208 Uint8 alpha = pixels[3];
209 pixels[0] = (Uint8)(((Uint16)pixels[0] * alpha) / 255);
210 pixels[1] = (Uint8)(((Uint16)pixels[1] * alpha) / 255);
211 pixels[2] = (Uint8)(((Uint16)pixels[2] * alpha) / 255);
212 pixels += 4;
213 }
214
215 img = [[[NSImage alloc] initWithSize: NSMakeSize(surface->w, surface->h)] autorelease];
216 if (img != nil) {
217 [img addRepresentation: imgrep];
218 }
219 return img;
220 }
221
222 /*
223 * Mac OS X log support.
224 *
225 * This doesn't really have aything to do with the interfaces of the SDL video
226 * subsystem, but we need to stuff this into an Objective-C source code file.
227 */
228
229 void SDL_NSLog(const char *text)
230 {
231 NSLog(@"%s", text);
232 }
233
234 #endif /* SDL_VIDEO_DRIVER_COCOA */
235
236 /* vim: set ts=4 sw=4 expandtab: */
SDL_VideoDevice::SetWindowMaximumSize
void(* SetWindowMaximumSize)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:190
SDL_VideoDevice::GetDisplayModes
void(* GetDisplayModes)(_THIS, SDL_VideoDisplay *display)
Definition: SDL_sysvideo.h:169
Cocoa_GetDisplayModes
void Cocoa_GetDisplayModes(_THIS, SDL_VideoDisplay *display)
Cocoa_CreateWindowFrom
int Cocoa_CreateWindowFrom(_THIS, SDL_Window *window, const void *data)
SDL_VideoDevice::MinimizeWindow
void(* MinimizeWindow)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:195
Cocoa_SetTextInputRect
void Cocoa_SetTextInputRect(_THIS, SDL_Rect *rect)
Cocoa_RegisterApp
void Cocoa_RegisterApp(void)
Cocoa_InitMouse
void Cocoa_InitMouse(_THIS)
SDL_VideoDevice::GetWindowWMInfo
SDL_bool(* GetWindowWMInfo)(_THIS, SDL_Window *window, struct SDL_SysWMinfo *info)
Definition: SDL_sysvideo.h:215
SDL_FreeSurface
DECLSPEC void SDLCALL SDL_FreeSurface(SDL_Surface *surface)
Definition: SDL_surface.c:1053
SDL_VideoDevice::RaiseWindow
void(* RaiseWindow)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:193
Cocoa_GetClipboardText
char * Cocoa_GetClipboardText(_THIS)
SDL_VideoDevice::SetClipboardText
int(* SetClipboardText)(_THIS, const char *text)
Definition: SDL_sysvideo.h:254
SDL_calloc
DECLSPEC void *SDLCALL SDL_calloc(size_t nmemb, size_t size)
Cocoa_MinimizeWindow
void Cocoa_MinimizeWindow(_THIS, SDL_Window *window)
SDL_PIXELFORMAT_ABGR8888
Definition: SDL_pixels.h:230
NULL
#define NULL
Definition: ftobjs.h:61
SDL_Surface::h
int h
Definition: SDL_surface.h:73
SDL_VideoDevice::HideWindow
void(* HideWindow)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:192
Cocoa_SetWindowIcon
void Cocoa_SetWindowIcon(_THIS, SDL_Window *window, SDL_Surface *icon)
SDL_VideoDevice::GL_MakeCurrent
int(* GL_MakeCurrent)(_THIS, SDL_Window *window, SDL_GLContext context)
Definition: SDL_sysvideo.h:226
Cocoa_SetWindowMaximumSize
void Cocoa_SetWindowMaximumSize(_THIS, SDL_Window *window)
SDL_VideoDevice::GetWindowGammaRamp
int(* GetWindowGammaRamp)(_THIS, SDL_Window *window, Uint16 *ramp)
Definition: SDL_sysvideo.h:200
SDL_VideoDevice::StopTextInput
void(* StopTextInput)(_THIS)
Definition: SDL_sysvideo.h:244
Cocoa_SetWindowBordered
void Cocoa_SetWindowBordered(_THIS, SDL_Window *window, SDL_bool bordered)
SDL_VideoDevice::GetDisplayBounds
int(* GetDisplayBounds)(_THIS, SDL_VideoDisplay *display, SDL_Rect *rect)
Definition: SDL_sysvideo.h:164
surface
EGLSurface surface
Definition: eglext.h:74
SDL_Surface
A collection of pixels used in software blitting.
Definition: SDL_surface.h:69
SDL_VideoDevice::driverdata
void * driverdata
Definition: SDL_sysvideo.h:314
SDL_free
DECLSPEC void SDLCALL SDL_free(void *mem)
SDL_VideoDevice::SetWindowGrab
void(* SetWindowGrab)(_THIS, SDL_Window *window, SDL_bool grabbed)
Definition: SDL_sysvideo.h:201
SDL_VideoDevice::SetWindowIcon
void(* SetWindowIcon)(_THIS, SDL_Window *window, SDL_Surface *icon)
Definition: SDL_sysvideo.h:186
Cocoa_SetWindowTitle
void Cocoa_SetWindowTitle(_THIS, SDL_Window *window)
SDL_VideoDevice::CreateWindowFrom
int(* CreateWindowFrom)(_THIS, SDL_Window *window, const void *data)
Definition: SDL_sysvideo.h:184
Cocoa_SetWindowPosition
void Cocoa_SetWindowPosition(_THIS, SDL_Window *window)
SDL_Surface::w
int w
Definition: SDL_surface.h:73
Cocoa_StartTextInput
void Cocoa_StartTextInput(_THIS)
SDL_config.h
SDL_VideoDevice::free
void(* free)(_THIS)
Definition: SDL_sysvideo.h:327
SDL_cocoavideo.h
Cocoa_QuitKeyboard
void Cocoa_QuitKeyboard(_THIS)
SDL_VideoDevice::GL_SetSwapInterval
int(* GL_SetSwapInterval)(_THIS, int interval)
Definition: SDL_sysvideo.h:228
_this
static SDL_VideoDevice * _this
Definition: SDL_video.c:92
Cocoa_RestoreWindow
void Cocoa_RestoreWindow(_THIS, SDL_Window *window)
Cocoa_SetClipboardText
int Cocoa_SetClipboardText(_THIS, const char *text)
Cocoa_HasClipboardText
SDL_bool Cocoa_HasClipboardText(_THIS)
SDL_VideoDevice::CreateWindow
int(* CreateWindow)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:183
Cocoa_SetWindowShape
int Cocoa_SetWindowShape(SDL_WindowShaper *shaper, SDL_Surface *shape, SDL_WindowShapeMode *shape_mode)
SDL_VideoDevice::GL_UnloadLibrary
void(* GL_UnloadLibrary)(_THIS)
Definition: SDL_sysvideo.h:224
Cocoa_ShowWindow
void Cocoa_ShowWindow(_THIS, SDL_Window *window)
SDL_VideoDevice::GL_GetDrawableSize
void(* GL_GetDrawableSize)(_THIS, SDL_Window *window, int *w, int *h)
Definition: SDL_sysvideo.h:227
Cocoa_SetDisplayMode
int Cocoa_SetDisplayMode(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode)
Cocoa_CreateImage
NSImage * Cocoa_CreateImage(SDL_Surface *surface)
data
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl2ext.h:848
SDL_ShapeDriver::SetWindowShape
int(* SetWindowShape)(SDL_WindowShaper *shaper, SDL_Surface *shape, SDL_WindowShapeMode *shape_mode)
Definition: SDL_sysvideo.h:59
SDL_Surface::pixels
void * pixels
Definition: SDL_surface.h:75
SDL_VideoDevice::VideoInit
int(* VideoInit)(_THIS)
Definition: SDL_sysvideo.h:148
Cocoa_QuitMouse
void Cocoa_QuitMouse(_THIS)
_THIS
#define _THIS
Definition: SDL_alsa_audio.h:31
Cocoa_PumpEvents
void Cocoa_PumpEvents(_THIS)
Cocoa_SetWindowGammaRamp
int Cocoa_SetWindowGammaRamp(_THIS, SDL_Window *window, const Uint16 *ramp)
Cocoa_DestroyWindow
void Cocoa_DestroyWindow(_THIS, SDL_Window *window)
VideoBootStrap
Definition: SDL_sysvideo.h:330
Cocoa_RaiseWindow
void Cocoa_RaiseWindow(_THIS, SDL_Window *window)
Cocoa_GetWindowWMInfo
SDL_bool Cocoa_GetWindowWMInfo(_THIS, SDL_Window *window, struct SDL_SysWMinfo *info)
SDL_VideoDevice::SetWindowGammaRamp
int(* SetWindowGammaRamp)(_THIS, SDL_Window *window, const Uint16 *ramp)
Definition: SDL_sysvideo.h:199
SDL_VideoData::osversion
SInt32 osversion
Definition: SDL_cocoavideo.h:48
Cocoa_CreateShaper
SDL_WindowShaper * Cocoa_CreateShaper(SDL_Window *window)
SDL_VideoDevice::SetWindowPosition
void(* SetWindowPosition)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:187
alpha
GLclampf GLclampf GLclampf alpha
Definition: glew.h:1506
SDL_VideoDevice::PumpEvents
void(* PumpEvents)(_THIS)
Definition: SDL_sysvideo.h:237
Cocoa_SetWindowFullscreen
void Cocoa_SetWindowFullscreen(_THIS, SDL_Window *window, SDL_VideoDisplay *display, SDL_bool fullscreen)
SDL_VideoDevice::SetWindowMinimumSize
void(* SetWindowMinimumSize)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:189
SDL_endian.h
SDL_ConvertSurfaceFormat
DECLSPEC SDL_Surface *SDLCALL SDL_ConvertSurfaceFormat(SDL_Surface *src, Uint32 pixel_format, Uint32 flags)
Definition: SDL_surface.c:928
SDL_ShapeDriver::CreateShaper
SDL_WindowShaper *(* CreateShaper)(SDL_Window *window)
Definition: SDL_sysvideo.h:58
SDL_VideoDevice::GL_GetSwapInterval
int(* GL_GetSwapInterval)(_THIS)
Definition: SDL_sysvideo.h:229
img
GLint GLvoid * img
Definition: glew.h:1371
SDL_OutOfMemory
#define SDL_OutOfMemory()
Definition: SDL_error.h:52
SDL_VideoDevice::GL_DeleteContext
void(* GL_DeleteContext)(_THIS, SDL_GLContext context)
Definition: SDL_sysvideo.h:231
SDL_VideoDevice::MaximizeWindow
void(* MaximizeWindow)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:194
pixels
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
Definition: gl2ext.h:845
SDL_VideoDevice::DestroyWindow
void(* DestroyWindow)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:202
Cocoa_CreateWindow
int Cocoa_CreateWindow(_THIS, SDL_Window *window)
Cocoa_GetWindowGammaRamp
int Cocoa_GetWindowGammaRamp(_THIS, SDL_Window *window, Uint16 *ramp)
SDL_VideoDevice::SetTextInputRect
void(* SetTextInputRect)(_THIS, SDL_Rect *rect)
Definition: SDL_sysvideo.h:245
SDL_memcpy
DECLSPEC void *SDLCALL SDL_memcpy(void *dst, const void *src, size_t len)
Definition: SDL_string.c:293
SDL_VideoDevice::SetWindowSize
void(* SetWindowSize)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:188
SDL_VideoDevice::SetDisplayMode
int(* SetDisplayMode)(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode)
Definition: SDL_sysvideo.h:177
Uint8
uint8_t Uint8
An unsigned 8-bit integer type.
Definition: SDL_stdinc.h:129
Cocoa_SetWindowSize
void Cocoa_SetWindowSize(_THIS, SDL_Window *window)
SDL_BIG_ENDIAN
#define SDL_BIG_ENDIAN
Definition: SDL_endian.h:38
SDL_PIXELFORMAT_RGBA8888
Definition: SDL_pixels.h:227
SDL_VideoDevice::GetClipboardText
char *(* GetClipboardText)(_THIS)
Definition: SDL_sysvideo.h:255
SDL_VideoDevice::GL_CreateContext
SDL_GLContext(* GL_CreateContext)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:225
Cocoa_InitKeyboard
void Cocoa_InitKeyboard(_THIS)
Cocoa_ResizeWindowShape
int Cocoa_ResizeWindowShape(SDL_Window *window)
Cocoa_StopTextInput
void Cocoa_StopTextInput(_THIS)
SDL_VideoDevice::GL_LoadLibrary
int(* GL_LoadLibrary)(_THIS, const char *path)
Definition: SDL_sysvideo.h:222
SDL_Surface::pitch
int pitch
Definition: SDL_surface.h:74
SDL_VideoDevice::GL_SwapWindow
void(* GL_SwapWindow)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:230
SDL_VideoDevice
Definition: SDL_sysvideo.h:135
SDL_VideoDevice::VideoQuit
void(* VideoQuit)(_THIS)
Definition: SDL_sysvideo.h:154
SDL_VideoDevice::ShowWindow
void(* ShowWindow)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:191
SDL_VideoData
Definition: SDL_androidvideo.h:35
SDL_VideoDevice::shape_driver
SDL_ShapeDriver shape_driver
Definition: SDL_sysvideo.h:212
Uint16
uint16_t Uint16
An unsigned 16-bit integer type.
Definition: SDL_stdinc.h:137
SDL_VideoDevice::HasClipboardText
SDL_bool(* HasClipboardText)(_THIS)
Definition: SDL_sysvideo.h:256
Cocoa_HideWindow
void Cocoa_HideWindow(_THIS, SDL_Window *window)
Cocoa_GetDisplayBounds
int Cocoa_GetDisplayBounds(_THIS, SDL_VideoDisplay *display, SDL_Rect *rect)
SDL_VideoDevice::SetWindowTitle
void(* SetWindowTitle)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:185
Cocoa_SetWindowGrab
void Cocoa_SetWindowGrab(_THIS, SDL_Window *window, SDL_bool grabbed)
SDL_VideoDevice::SetWindowBordered
void(* SetWindowBordered)(_THIS, SDL_Window *window, SDL_bool bordered)
Definition: SDL_sysvideo.h:197
SDL_VideoDevice::StartTextInput
void(* StartTextInput)(_THIS)
Definition: SDL_sysvideo.h:243
i
int i
Definition: pngrutil.c:1377
SDL_VideoDevice::SetWindowFullscreen
void(* SetWindowFullscreen)(_THIS, SDL_Window *window, SDL_VideoDisplay *display, SDL_bool fullscreen)
Definition: SDL_sysvideo.h:198
Cocoa_QuitModes
void Cocoa_QuitModes(_THIS)
SDL_cocoashape.h
Cocoa_InitModes
void Cocoa_InitModes(_THIS)
SDL_BYTEORDER
#define SDL_BYTEORDER
Definition: SDL_config_pandora.h:36
SDL_VideoDevice::GL_GetProcAddress
void *(* GL_GetProcAddress)(_THIS, const char *proc)
Definition: SDL_sysvideo.h:223
Cocoa_MaximizeWindow
void Cocoa_MaximizeWindow(_THIS, SDL_Window *window)
SDL_ShapeDriver::ResizeWindowShape
int(* ResizeWindowShape)(SDL_Window *window)
Definition: SDL_sysvideo.h:60
SDL_VideoDevice::RestoreWindow
void(* RestoreWindow)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:196
SDL_assert.h
Cocoa_SetWindowMinimumSize
void Cocoa_SetWindowMinimumSize(_THIS, SDL_Window *window)