14#ifndef CLERPINTERVAL_H
15#define CLERPINTERVAL_H
24class EXPCL_DIRECT_INTERVAL CLerpInterval :
public CInterval {
35 INLINE CLerpInterval(
const std::string &name,
double duration,
36 BlendType blend_type);
44 double compute_delta(
double t)
const;
47 BlendType _blend_type;
54 static void init_type() {
55 CInterval::init_type();
57 CInterval::get_class_type());
60 return get_class_type();
62 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static BlendType string_blend_type(const std::string &blend_type)
Returns the BlendType enumerated value corresponding to the indicated string, or BT_invalid if the st...
BlendType get_blend_type() const
Returns the blend type specified for the interval.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...