5
// Created by döme on 03.08.2009.
6
// Copyright 2009 __MyCompanyName__. All rights reserved.
13
@class ESShader, JigsawPiece;
15
@interface JigView : GLESView
19
GLuint blackGradientTexture;
20
GLuint whiteGradientTexture;
21
GLuint moveIconTexture;
22
GLuint scaleIconTexture;
23
GLuint rotateIconTexture;
25
ESShader* jigsawShader;
28
//NSMutableArray* pieceVertexArrays;
29
NSMutableArray* jigsawPieces;
31
JigsawPiece* selectedPiece;
33
UITouch* initialTouch;
34
UITouch* secondaryTouch;
36
CGPoint rotationTouchLastVector;
37
float rotationTouchInitialAngle;
38
float oneTouchRotationAccumulator;
39
CGPoint oneTouchRotationDelta;
40
CGPoint oneTouchRotationCenter;
41
float oneTouchRotationCirclelation;
43
float oneTouchRotationThreshold;
44
float oneTouchRotationFactor;
46
CGPoint zoomTouchReference;
47
float zoomTouchAccumulator;
48
float nonZoomTouchAccumulator;
49
float zoomTouchThreshold;
53
float targetGhostSize;
59
cpPinJoint* mouseConstraint;
61
BOOL piecesChangedSinceLastRedraw;
66
- (int) numCellsForImageSize: (float) imgSize density: (float) density;
68
- (void) piecesChanged;
69
- (void) animationCallback: (id) info;
71
- (void) generateJigsaw;
73
- (void) saveJigsawState;
74
- (void) restoreJigsawState;