-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqcSimpleHarmonicMotionPlugIn.h
executable file
·51 lines (39 loc) · 1.1 KB
/
qcSimpleHarmonicMotionPlugIn.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
//
// qcSimpleHarmonicMotionPlugin.h
// qcSimpleHarmonicMotionPlugin
//
// Created by Joel Pryde on 12/19/13.
// Copyright (c) 2013 __MyCompanyName__. All rights reserved.
//
#import <Quartz/Quartz.h>
#include "cinder/gl/gl.h"
#include "cinder/gl/Texture.h"
class Pendulum;
@interface qcSimpleHarmonicMotionPlugIn : QCPlugIn
{
float mStartTime;
bool mIsGLSetup;
CGSize mSize;
float mWidth;
float mHeight;
NSTimeInterval mTime;
double mLastTime;
int mCount;
Pendulum* mPendulums[100];
float mPendulumSize;
}
@property (assign) double inputWidth;
@property (assign) double inputHeight;
@property (assign) double inputCount;
@property (assign) double inputSize;
@property (assign) CGSize size;
+ (void)addFloatAttribute:(NSString *)key Default:(float)def Min:(float)min Max:(float)max;
+ (void)addBoolAttribute:(NSString *)key Default:(bool)def;
- (float)floatParam:(NSString*)paramName;
- (NSString*)stringParam:(NSString*)paramName;
- (bool)boolParam:(NSString*)paramName;
- (void)setup;
- (void)glSetup;
- (void)update:(NSTimeInterval)time;
- (void)render;
@end