Example #1
0
	void CurvesConfig::CreateSpline(CurveChannel channel, int count, double* points)
	{
		assert(channel >= CURVE_CHANNEL_C && channel <= CURVE_CHANNEL_A);
		assert(count >= 2 && count <= 1024);

		Curve* curve = GetCurve(channel);

		curve->SetPointCount(count);

		for (int i = 0; i < count; i++)
		{
			curve->SetPoint(i, points[2 * i + 0], points[2 * i + 1]);
		}
	}