Overhaul the Curve Editor

This commit is contained in:
VolTer
2023-03-13 23:03:36 +01:00
parent c80a2b4fe9
commit a3c4a4b039
4 changed files with 889 additions and 579 deletions
+7
View File
@@ -83,6 +83,11 @@ public:
real_t right_tangent = 0,
TangentMode left_mode = TANGENT_FREE,
TangentMode right_mode = TANGENT_FREE);
int add_point_no_update(Vector2 p_position,
real_t left_tangent = 0,
real_t right_tangent = 0,
TangentMode left_mode = TANGENT_FREE,
TangentMode right_mode = TANGENT_FREE);
void remove_point(int p_index);
void clear_points();
@@ -100,6 +105,8 @@ public:
real_t get_max_value() const { return _max_value; }
void set_max_value(real_t p_max);
real_t get_range() const { return _max_value - _min_value; }
real_t sample(real_t p_offset) const;
real_t sample_local_nocheck(int p_index, real_t p_local_offset) const;