Mercurial > sdl-ios-xcode
comparison src/video/uikit/SDL_uikitvideo.m @ 5134:7b7da52e8775
Fixed spacing
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 01 Feb 2011 08:59:22 -0800 |
parents | 8b7988f42fcb |
children | fb424691cfc7 |
comparison
equal
deleted
inserted
replaced
5133:ec13e48ee0d9 | 5134:7b7da52e8775 |
---|---|
54 /* DUMMY driver bootstrap functions */ | 54 /* DUMMY driver bootstrap functions */ |
55 | 55 |
56 static int | 56 static int |
57 UIKit_Available(void) | 57 UIKit_Available(void) |
58 { | 58 { |
59 return (1); | 59 return (1); |
60 } | 60 } |
61 | 61 |
62 static void UIKit_DeleteDevice(SDL_VideoDevice * device) | 62 static void UIKit_DeleteDevice(SDL_VideoDevice * device) |
63 { | 63 { |
64 SDL_free(device); | 64 SDL_free(device); |
83 device->VideoInit = UIKit_VideoInit; | 83 device->VideoInit = UIKit_VideoInit; |
84 device->VideoQuit = UIKit_VideoQuit; | 84 device->VideoQuit = UIKit_VideoQuit; |
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 device->GetWindowWMInfo = UIKit_GetWindowWMInfo; |
91 | 91 |
92 | 92 |
93 /* OpenGL (ES) functions */ | 93 /* OpenGL (ES) functions */ |
94 device->GL_MakeCurrent = UIKit_GL_MakeCurrent; | 94 device->GL_MakeCurrent = UIKit_GL_MakeCurrent; |
95 device->GL_SwapWindow = UIKit_GL_SwapWindow; | 95 device->GL_SwapWindow = UIKit_GL_SwapWindow; |
96 device->GL_CreateContext = UIKit_GL_CreateContext; | 96 device->GL_CreateContext = UIKit_GL_CreateContext; |
97 device->GL_DeleteContext = UIKit_GL_DeleteContext; | 97 device->GL_DeleteContext = UIKit_GL_DeleteContext; |
98 device->GL_GetProcAddress = UIKit_GL_GetProcAddress; | 98 device->GL_GetProcAddress = UIKit_GL_GetProcAddress; |
99 device->GL_LoadLibrary = UIKit_GL_LoadLibrary; | 99 device->GL_LoadLibrary = UIKit_GL_LoadLibrary; |
100 device->free = UIKit_DeleteDevice; | 100 device->free = UIKit_DeleteDevice; |
101 | 101 |
102 device->gl_config.accelerated = 1; | 102 device->gl_config.accelerated = 1; |
103 | 103 |
104 return device; | 104 return device; |
105 } | 105 } |
106 | 106 |
107 VideoBootStrap UIKIT_bootstrap = { | 107 VideoBootStrap UIKIT_bootstrap = { |
108 UIKITVID_DRIVER_NAME, "SDL UIKit video driver", | 108 UIKITVID_DRIVER_NAME, "SDL UIKit video driver", |