make indent
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402573
This commit is contained in:
parent
3c6eee13ae
commit
7d8af0a113
31 changed files with 817 additions and 738 deletions
|
@ -9,38 +9,34 @@
|
|||
#import <Cocoa/Cocoa.h>
|
||||
#import "SDL.h"
|
||||
|
||||
extern id gController; // instance of this class from nib
|
||||
extern id gController; // instance of this class from nib
|
||||
|
||||
// Declare SDL_QuartzWindowDelegate (defined in SDL.framework)
|
||||
@interface SDL_QuartzWindowDelegate : NSObject
|
||||
@end
|
||||
|
||||
@interface MyController : NSObject
|
||||
{
|
||||
@interface SDL_QuartzWindowDelegate: NSObject @ end @ interface MyController:NSObject {
|
||||
// Interface Builder Outlets
|
||||
IBOutlet id _framesPerSecond;
|
||||
IBOutlet id _numSprites;
|
||||
IBOutlet id _window;
|
||||
IBOutlet id _view;
|
||||
|
||||
// Private instance variables
|
||||
int _nSprites;
|
||||
int _max_speed;
|
||||
int _doFlip;
|
||||
Uint8* _mem;
|
||||
|
||||
SDL_Surface* _screen;
|
||||
SDL_Surface* _sprite;
|
||||
SDL_Rect* _sprite_rects;
|
||||
SDL_Rect* _positions;
|
||||
SDL_Rect* _velocities;
|
||||
int _sprites_visible;
|
||||
Uint16 _sprite_w, _sprite_h;
|
||||
|
||||
int _mouse_x, _mouse_y;
|
||||
}
|
||||
// Interface Builder Actions
|
||||
- (IBAction)changeNumberOfSprites:(id)sender;
|
||||
- (IBAction)selectUpdateMode:(id)sender;
|
||||
@end
|
||||
IBOutlet id _framesPerSecond;
|
||||
IBOutlet id _numSprites;
|
||||
IBOutlet id _window;
|
||||
IBOutlet id _view;
|
||||
|
||||
// Private instance variables
|
||||
int _nSprites;
|
||||
int _max_speed;
|
||||
int _doFlip;
|
||||
Uint8 *_mem;
|
||||
|
||||
SDL_Surface *_screen;
|
||||
SDL_Surface *_sprite;
|
||||
SDL_Rect *_sprite_rects;
|
||||
SDL_Rect *_positions;
|
||||
SDL_Rect *_velocities;
|
||||
int _sprites_visible;
|
||||
Uint16 _sprite_w, _sprite_h;
|
||||
|
||||
int _mouse_x, _mouse_y;
|
||||
}
|
||||
|
||||
// Interface Builder Actions
|
||||
-(IBAction) changeNumberOfSprites:(id) sender;
|
||||
-(IBAction) selectUpdateMode:(id) sender;
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue