comparison src/video/uikit/SDL_uikitvideo.m @ 5056:8b7988f42fcb

Added the ability to get the UIKit window through the SDL API. You can also do this through the native API: UIWindow *window = [[UIApplication sharedApplication] keyWindow]; Also needed to name the union for events and window info.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 20 Jan 2011 16:05:59 -0800
parents 8b03a20b320f
children 7b7da52e8775
comparison
equal deleted inserted replaced
5055:2936fc46b015 5056:8b7988f42fcb
85 device->GetDisplayModes = UIKit_GetDisplayModes; 85 device->GetDisplayModes = UIKit_GetDisplayModes;
86 device->SetDisplayMode = UIKit_SetDisplayMode; 86 device->SetDisplayMode = UIKit_SetDisplayMode;
87 device->PumpEvents = UIKit_PumpEvents; 87 device->PumpEvents = UIKit_PumpEvents;
88 device->CreateWindow = UIKit_CreateWindow; 88 device->CreateWindow = UIKit_CreateWindow;
89 device->DestroyWindow = UIKit_DestroyWindow; 89 device->DestroyWindow = UIKit_DestroyWindow;
90 device->GetWindowWMInfo = UIKit_GetWindowWMInfo;
90 91
91 92
92 /* OpenGL (ES) functions */ 93 /* OpenGL (ES) functions */
93 device->GL_MakeCurrent = UIKit_GL_MakeCurrent; 94 device->GL_MakeCurrent = UIKit_GL_MakeCurrent;
94 device->GL_SwapWindow = UIKit_GL_SwapWindow; 95 device->GL_SwapWindow = UIKit_GL_SwapWindow;