(root)/wip/src/curve_samples.h - Rev 1582
Rev 1713 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
#ifndef __curvesamples
#define __curvesamples
struct multi_curve;
struct curve_samples {
float m; // current displayed sample
static float dm; // per frame
static float nsec; // see draw ()
int n; // max samples
int n_reached;
float* x;
float* y;
float* xp; // for shapeform
float* xy; // for gl
float hz;
float step;
int nperiods;
curve_samples ();
~curve_samples();
void set (float _hz, int _nperiods = 3);
void render (multi_curve *crv);
void draw (curve_editor* ed, multi_curve* crv);
};
#endif