Mercurial > sdl-ios-xcode
view src/video/uikit/SDL_uikitview.h @ 2365:478fa831910f gsoc2008_iphone
Added SDL_GL_RETAINED_BACKING to SDL_GLattr enum. Retained backing means the memory for color buffers, depth buffers, etc cannot be overwritten by other applications between frames. The default for this setting is 'on'. I wanted to add this because turning retained backing off on iPhone dramatically increases performance.
author | Holmes Futrell <hfutrell@umail.ucsb.edu> |
---|---|
date | Fri, 18 Jul 2008 18:05:54 +0000 |
parents | 07acabba25d9 |
children | e9a1eed243c9 |
line wrap: on
line source
// // SDL_uikitview.h // iPodSDL // // Created by Holmes Futrell on 6/23/08. // Copyright 2008 __MyCompanyName__. All rights reserved. // #import <UIKit/UIKit.h> #include "SDL_stdinc.h" #include "SDL_mouse.h" #include "SDL_mouse_c.h" #include "SDL_events.h" #define MAX_SIMULTANEOUS_TOUCHES 5 @interface SDL_uikitview : UIView { SDL_Mouse mice[MAX_SIMULTANEOUS_TOUCHES]; } - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event; - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event; @end