comparison src/video/uikit/SDL_uikitwindow.h @ 2399:d904584ea86d gsoc2008_iphone

Added SDL_WindowData for UIKit video driver. Now looks up instances here instead of assuming we're referring to a singleton.
author Holmes Futrell <hfutrell@umail.ucsb.edu>
date Tue, 22 Jul 2008 22:59:59 +0000
parents 2e4fea4a4416
children
comparison
equal deleted inserted replaced
2398:92de010929a6 2399:d904584ea86d
23 23
24 #ifndef _SDL_uikitwindow_h 24 #ifndef _SDL_uikitwindow_h
25 #define _SDL_uikitwindow_h 25 #define _SDL_uikitwindow_h
26 26
27 #include "../SDL_sysvideo.h" 27 #include "../SDL_sysvideo.h"
28 #import "SDL_uikitopenglview.h"
29
30 typedef struct SDL_WindowData SDL_WindowData;
28 31
29 extern int UIKit_CreateWindow(_THIS, SDL_Window *window); 32 extern int UIKit_CreateWindow(_THIS, SDL_Window *window);
30 extern void UIKit_DestroyWindow(_THIS, SDL_Window * window); 33 extern void UIKit_DestroyWindow(_THIS, SDL_Window * window);
31 34
35 @class UIWindow;
36
37 struct SDL_WindowData
38 {
39 SDL_WindowID windowID;
40 UIWindow *uiwindow;
41 SDL_uikitopenglview *view;
42 };
43
44
32 #endif /* _SDL_uikitwindow_h */ 45 #endif /* _SDL_uikitwindow_h */
33 46
34 /* vi: set ts=4 sw=4 expandtab: */ 47 /* vi: set ts=4 sw=4 expandtab: */