blob: 78278b094d7d8f257603116cc2728c4ed809f874 [file] [log] [blame]
yangsu@google.comc5aeccd2011-07-17 14:42:08 +00001#import <UIKit/UIKit.h>
2#import <OpenGLES/EAGL.h>
3#import <OpenGLES/ES1/gl.h>
4#import <OpenGLES/ES1/glext.h>
5#import <OpenGLES/ES2/gl.h>
6#import <OpenGLES/ES2/glext.h>
7#include "SkMatrix.h"
8#include "FlingState.h"
9#include "SampleApp.h"
10#include "SkiOSDeviceManager.h"
11class SkOSWindow;
12class SkEvent;
13struct FPSState;
14@interface SkUIView : UIView <UIAccelerometerDelegate> {
15 BOOL fRedrawRequestPending;
16 SkMatrix fMatrix;
17
18 float fZoomAroundX, fZoomAroundY;
19 bool fZoomAround;
20
21 struct {
22 EAGLContext* fContext;
23 GLuint fRenderbuffer;
24 GLuint fStencilbuffer;
25 GLuint fFramebuffer;
26 GLint fWidth;
27 GLint fHeight;
28 } fGL;
29
30 FPSState* fFPSState;
31 NSString* fTitle;
32 UINavigationItem* fTitleItem;
33 SkOSWindow* fWind;
34
35 SkiOSDeviceManager* fDevManager;
36}
37
38@property (nonatomic, assign) SkOSWindow *fWind;
39@property (nonatomic, retain) UINavigationItem* fTitleItem;
40@property (nonatomic, copy) NSString* fTitle;
41
42- (void)setSkTitle:(const char*)title;
43- (void)postInvalWithRect:(const SkIRect*)rectOrNil;
44- (BOOL)onHandleEvent:(const SkEvent&)event;
45
46@end
47