comparison src/video/cocoa/SDL_cocoawindow.h @ 1936:83946ee0ff1f

Implemented OpenGL support on Mac OS X The OpenGL renderer works without changes, yay! :)
author Sam Lantinga <slouken@libsdl.org>
date Tue, 25 Jul 2006 06:22:42 +0000
parents 7ee5297340f7
children 7177581dc9fa
comparison
equal deleted inserted replaced
1935:8a9b367a80f3 1936:83946ee0ff1f
24 #ifndef _SDL_cocoawindow_h 24 #ifndef _SDL_cocoawindow_h
25 #define _SDL_cocoawindow_h 25 #define _SDL_cocoawindow_h
26 26
27 typedef struct SDL_WindowData SDL_WindowData; 27 typedef struct SDL_WindowData SDL_WindowData;
28 28
29 /* *INDENT-OFF* */
29 @interface Cocoa_WindowListener:NSResponder { 30 @interface Cocoa_WindowListener:NSResponder {
30 SDL_WindowData *_data; 31 SDL_WindowData *_data;
31 } 32 }
32 33
33 -(void) listen:(SDL_WindowData *) data; 34 -(void) listen:(SDL_WindowData *) data;
56 -(void) scrollWheel:(NSEvent *) theEvent; 57 -(void) scrollWheel:(NSEvent *) theEvent;
57 -(void) mouseEntered:(NSEvent *) theEvent; 58 -(void) mouseEntered:(NSEvent *) theEvent;
58 -(void) mouseExited:(NSEvent *) theEvent; 59 -(void) mouseExited:(NSEvent *) theEvent;
59 -(void) keyDown:(NSEvent *) theEvent; 60 -(void) keyDown:(NSEvent *) theEvent;
60 -(void) keyUp:(NSEvent *) theEvent; 61 -(void) keyUp:(NSEvent *) theEvent;
61 @end struct SDL_WindowData 62 @end
63 /* *INDENT-ON* */
64
65 struct SDL_WindowData
62 { 66 {
63 SDL_WindowID windowID; 67 SDL_WindowID windowID;
64 NSWindow *window; 68 NSWindow *window;
65 BOOL created; 69 BOOL created;
66 Cocoa_WindowListener *listener; 70 Cocoa_WindowListener *listener;