1#ifndef PIXELPART_ANIMATED_PROPERTY_FLOAT3_H
2#define PIXELPART_ANIMATED_PROPERTY_FLOAT3_H
4#include "PixelpartAnimatedProperty.h"
5#include <godot_cpp/core/binder_common.hpp>
6#include <godot_cpp/classes/ref.hpp>
7#include <pixelpart-runtime/common/Types.h>
8#include <pixelpart-runtime/effect/AnimatedProperty.h>
22 PixelpartAnimatedPropertyFloat3();
31 void init(pixelpart::AnimatedProperty<pixelpart::float3_t>* prop);
39 Vector3
at(
float position)
const;
124 static void _bind_methods();
127 pixelpart::AnimatedProperty<pixelpart::float3_t>*
property =
nullptr;
InterpolationType keyframe_interpolation
Interpolation applied to the animation curve.
Definition PixelpartAnimatedPropertyFloat3.h:28
void set_keyframe_interpolation(InterpolationType method)
Set interpolation applied to the animation curve.
Definition PixelpartAnimatedPropertyFloat3.cpp:82
void set_keyframe_value(int index, Vector3 value)
Change the value of the keyframe with the given index.
Definition PixelpartAnimatedPropertyFloat3.cpp:34
Vector3 get_keyframe_value(int index) const
Return the value of the keyframe with the given index.
Definition PixelpartAnimatedPropertyFloat3.cpp:64
void add_keyframe(float position, Vector3 value)
Add a keyframe at time position with value value.
Definition PixelpartAnimatedPropertyFloat3.cpp:23
void clear_keyframes()
Remove all keyframes from the animation.
Definition PixelpartAnimatedPropertyFloat3.cpp:44
void set_keyframe_position(int index, float position)
Move the time of the keyframe with the given index to position.
Definition PixelpartAnimatedPropertyFloat3.cpp:39
Vector3 at(float position) const
Return the (interpolated) value of the animation property at time position.
Definition PixelpartAnimatedPropertyFloat3.cpp:15
void remove_keyframe(int index)
Remove the keyframe with the given index from the animation.
Definition PixelpartAnimatedPropertyFloat3.cpp:29
InterpolationType get_keyframe_interpolation() const
Return interpolation applied to the animation curve.
Definition PixelpartAnimatedPropertyFloat3.cpp:87
int get_keyframe_count() const
Return the number of keyframes.
Definition PixelpartAnimatedPropertyFloat3.cpp:57
bool contains_keyframes() const
Return whether the animation property contains any keyframes.
Definition PixelpartAnimatedPropertyFloat3.cpp:50
int get_keyframe_index(float position, float epsilon)
Return the index of the keyframe closest to time position.
Definition PixelpartAnimatedPropertyFloat3.cpp:72
Base class for properties animated with keyframes and affected by effect inputs.
Definition PixelpartAnimatedProperty.h:15
InterpolationType
Keyframe interpolation types.
Definition PixelpartAnimatedProperty.h:22