mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +02:00
add removeControlPoint; improve exception handling
This commit is contained in:
@@ -25,8 +25,6 @@
|
||||
#include "common/Object.h"
|
||||
#include "common/Vector.h"
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
|
||||
namespace love
|
||||
{
|
||||
@@ -75,6 +73,12 @@ public:
|
||||
**/
|
||||
void insertControlPoint(const Vector &point, int pos = -1);
|
||||
|
||||
/**
|
||||
* Remove the i'th control point from the curve.
|
||||
* @param i Control point to remove
|
||||
**/
|
||||
void removeControlPoint(int i);
|
||||
|
||||
/**
|
||||
* @returns Number of control points.
|
||||
**/
|
||||
|
||||
Reference in New Issue
Block a user