xcal
基于 C++23 的现代图形渲染引擎
载入中...
搜索中...
未找到
xcal
animation
Interpolation.hpp
浏览该文件的文档.
1
11
#pragma once
12
#include <
xcal/public.h
>
13
14
#include <
xcal/animation/core/abs_animation.hpp
>
15
#include <
xcal/animation/core/interpolation_functions.hpp
>
16
#include <
xcal/property/scalar.hpp
>
17
18
namespace
xcal::property
{
19
class
Scalar
;
20
}
21
namespace
xcal::animation
{
22
23
class
XCAL_API
ScalerInterpolation
:
public
AbsAnimation
{
24
private
:
25
property::Scalar
* property_;
26
float_t
start_value_;
27
float_t
end_value_;
28
std::function<
float_t
(
float_t
)> interpolation_func_;
29
30
public
:
31
ScalerInterpolation
(
property::Scalar
* property,
float_t
start_value,
32
float_t
end_value,
33
std::function<
float_t
(
float_t
)> interpolation_func =
34
interpolation_functions::linear);
35
~ScalerInterpolation
()
override
=
default
;
36
37
public
:
38
void
update_to(
float_t
time)
override
;
39
40
public
:
41
ScalerInterpolation
(
const
ScalerInterpolation
&) =
default
;
42
ScalerInterpolation
(
ScalerInterpolation
&&) =
delete
;
43
ScalerInterpolation
&
operator=
(
const
ScalerInterpolation
&) =
default
;
44
ScalerInterpolation
&
operator=
(
ScalerInterpolation
&&) =
delete
;
45
};
46
}
// namespace xcal::animation
abs_animation.hpp
抽象动画基类
xcal::animation::AbsAnimation
抽象动画基类
Definition
abs_animation.hpp:21
xcal::animation::ScalerInterpolation
Definition
Interpolation.hpp:23
xcal::animation::ScalerInterpolation::~ScalerInterpolation
~ScalerInterpolation() override=default
xcal::animation::ScalerInterpolation::ScalerInterpolation
ScalerInterpolation(const ScalerInterpolation &)=default
xcal::animation::ScalerInterpolation::operator=
ScalerInterpolation & operator=(const ScalerInterpolation &)=default
xcal::animation::ScalerInterpolation::ScalerInterpolation
ScalerInterpolation(ScalerInterpolation &&)=delete
xcal::animation::ScalerInterpolation::operator=
ScalerInterpolation & operator=(ScalerInterpolation &&)=delete
xcal::property::Scalar
Definition
scalar.hpp:8
interpolation_functions.hpp
xcal::animation
Definition
abs_animation.hpp:14
xcal::property
Definition
Interpolation.hpp:18
xcal::float_t
float float_t
Definition
public.h:27
public.h
XCAL_API
#define XCAL_API
Definition
public.h:69
scalar.hpp
生成于 2025年 九月 19日 星期五 21:12:12 , 为 xcal使用
1.9.8