Mercurial > sdl-ios-xcode
diff Xcode/TemplatesForProjectBuilder/SDL Custom Cocoa Application/MyController.h @ 2207:d63e9f5944ae
Unpacked project archives to get individual file history in subversion
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 21 Jul 2007 17:09:01 +0000 |
parents | |
children | 59a667370c57 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Xcode/TemplatesForProjectBuilder/SDL Custom Cocoa Application/MyController.h Sat Jul 21 17:09:01 2007 +0000 @@ -0,0 +1,46 @@ +// +// MyController.h +// SDL Custom Cocoa App +// +// Created by Darrell Walisser on Fri Jul 18 2003. +// Copyright (c) 2003 __MyCompanyName__. All rights reserved. +// + +#import <Cocoa/Cocoa.h> +#import "SDL.h" + +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 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 +