Mercurial > sdl-ios-xcode
view Xcode/TemplatesForProjectBuilder/SDL Custom Cocoa Application/MyController.h @ 2378:d76ecec0c3f7 gsoc2008_iphone
iPhone SDL 1.3 demos go here. All these demos are written using pure SDL 1.3 code. No compatibility calls! Perhaps if they are any good they could be use as tests for the SDL 1.3 release.
author | Holmes Futrell <hfutrell@umail.ucsb.edu> |
---|---|
date | Fri, 18 Jul 2008 20:46:02 +0000 |
parents | 4d2d0548f5b2 |
children |
line wrap: on
line source
// // 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