Mercurial > sdl-ios-xcode
comparison Xcode/TemplatesForXcode/SDL Custom Cocoa Application/MyController.h @ 2213:59a667370c57
make indent
author | Bob Pendleton <bob@pendleton.com> |
---|---|
date | Tue, 24 Jul 2007 18:46:45 +0000 |
parents | d63e9f5944ae |
children | 23a2cb765052 |
comparison
equal
deleted
inserted
replaced
2212:fdadda42d4d4 | 2213:59a667370c57 |
---|---|
7 // | 7 // |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 #import "SDL.h" | 10 #import "SDL.h" |
11 | 11 |
12 extern id gController; // instance of this class from nib | 12 extern id gController; // instance of this class from nib |
13 | 13 |
14 // Declare SDL_QuartzWindowDelegate (defined in SDL.framework) | 14 // Declare SDL_QuartzWindowDelegate (defined in SDL.framework) |
15 @interface SDL_QuartzWindowDelegate : NSObject | 15 @interface SDL_QuartzWindowDelegate: NSObject @ end @ interface MyController:NSObject { |
16 // Interface Builder Outlets | |
17 IBOutlet id _framesPerSecond; | |
18 IBOutlet id _numSprites; | |
19 IBOutlet id _window; | |
20 IBOutlet id _view; | |
21 | |
22 // Private instance variables | |
23 int _nSprites; | |
24 int _max_speed; | |
25 int _doFlip; | |
26 Uint8 *_mem; | |
27 | |
28 SDL_Surface *_screen; | |
29 SDL_Surface *_sprite; | |
30 SDL_Rect *_sprite_rects; | |
31 SDL_Rect *_positions; | |
32 SDL_Rect *_velocities; | |
33 int _sprites_visible; | |
34 Uint16 _sprite_w, _sprite_h; | |
35 | |
36 int _mouse_x, _mouse_y; | |
37 } | |
38 | |
39 // Interface Builder Actions | |
40 -(IBAction) changeNumberOfSprites:(id) sender; | |
41 -(IBAction) selectUpdateMode:(id) sender; | |
16 @end | 42 @end |
17 | |
18 @interface MyController : NSObject | |
19 { | |
20 // Interface Builder Outlets | |
21 IBOutlet id _framesPerSecond; | |
22 IBOutlet id _numSprites; | |
23 IBOutlet id _window; | |
24 IBOutlet id _view; | |
25 | |
26 // Private instance variables | |
27 int _nSprites; | |
28 int _max_speed; | |
29 int _doFlip; | |
30 Uint8* _mem; | |
31 | |
32 SDL_Surface* _screen; | |
33 SDL_Surface* _sprite; | |
34 SDL_Rect* _sprite_rects; | |
35 SDL_Rect* _positions; | |
36 SDL_Rect* _velocities; | |
37 int _sprites_visible; | |
38 Uint16 _sprite_w, _sprite_h; | |
39 | |
40 int _mouse_x, _mouse_y; | |
41 } | |
42 // Interface Builder Actions | |
43 - (IBAction)changeNumberOfSprites:(id)sender; | |
44 - (IBAction)selectUpdateMode:(id)sender; | |
45 @end | |
46 |