-
Notifications
You must be signed in to change notification settings - Fork 1
/
RCCamera.h
52 lines (44 loc) · 1.3 KB
/
RCCamera.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// RCCamera.h
// Texture3
//
// Created by rcrebs on 11/1/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR || TARGET_OS_EMBEDDED
#import <OpenGLES/EAGL.h>
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>
#else
#import <OpenGL/OpenGL.h>
#endif
#import <Foundation/Foundation.h>
#import "GLView.h"
@interface RCCamera : NSObject {
CGPoint firstTouchPoint;
CGPoint secondTouchPoint;
GLuint rotate;
GLfloat xRotation, yRotation, zoom;
GLfloat degreee;
BOOL secondTouchPointSet;
GLView *view;
UITouch *firstTouch;
}
@property (nonatomic, retain) GLView *view;
@property (nonatomic, retain) UITouch *firstTouch;
@property (nonatomic) CGPoint firstTouchPoint;
@property (nonatomic) CGPoint secondTouchPoint;
- (void)checkRun;
- (void)checkRise;
- (void)zoom:(NSArray*)arrayOfTouches;
-(void)zoomDifferenceOfPoint:(CGPoint)firstPoint
andPoint:(CGPoint)secondPoint
andNewPoint:(CGPoint)newFirstPoint
andNewPoint:(CGPoint)newSecondPoint;
-(void)defaultZoom;
- (void)scroll:(NSArray*)arrayOfTouches;
- (void)transformForCameraPosition;
-(GLfloat)aPositionOnOneAxisAtPositionOfAnotherAxis:(GLfloat)position;
-(GLfloat)value:(GLfloat)value toThePositivePower:(GLint)exponent;
-(GLfloat)absoluteValue:(GLfloat)value;
@end