Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #pragma once
00024
00025 #import <UIKit/UIKit.h>
00026 #import <QuartzCore/QuartzCore.h>
00027
00028 #include "cinder/gl/gl.h"
00029 #include "cinder/app/AppCocoaTouch.h"
00030 #include "cinder/app/Renderer.h"
00031
00032 #include <map>
00033
00034 @interface CinderViewCocoaTouch : UIView
00035 {
00036 @private
00037 BOOL animating;
00038 NSInteger animationFrameInterval;
00039
00040 id displayLink;
00041 ci::app::AppCocoaTouch *mApp;
00042 ci::app::Renderer *mRenderer;
00043 std::map<UITouch*,uint32_t> mTouchIdMap;
00044 ci::Vec3d mAcceleration;
00045 BOOL appSetupCalled;
00046 }
00047
00048 @property (readonly, nonatomic, getter=isAnimating) BOOL animating;
00049 @property (nonatomic) NSInteger animationFrameInterval;
00050 @property (readwrite) BOOL appSetupCalled;
00051
00052 - (id)initWithFrame:(CGRect)frame app:(cinder::app::AppCocoaTouch*)app renderer:(cinder::app::Renderer*)renderer;
00053 - (void)drawRect:(CGRect)rect;
00054 - (void)startAnimation;
00055 - (void)layoutSubviews;
00056 - (void)drawView:(id)sender;
00057 - (void)stopAnimation;
00058
00059 - (uint32_t)addTouchToMap:(UITouch*)touch;
00060 - (void)removeTouchFromMap:(UITouch*)touch;
00061 - (uint32_t)findTouchInMap:(UITouch*)touch;
00062 - (void)updateActiveTouches;
00063 - (void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event;
00064
00065 @end