17 INLINE EggAnimPreload::
18 EggAnimPreload(
const std::string &name) :
EggNode(name) {
20 _has_num_frames =
false;
27 INLINE EggAnimPreload::
31 _has_fps(copy._has_fps),
32 _num_frames(copy._num_frames),
33 _has_num_frames(copy._has_num_frames)
43 EggNode::operator = (copy);
45 _has_fps = copy._has_fps;
46 _num_frames = copy._num_frames;
47 _has_num_frames = copy._has_num_frames;
56 INLINE
void EggAnimPreload::
66 INLINE
void EggAnimPreload::
74 INLINE
bool EggAnimPreload::
84 nassertr(has_fps(), 0.0);
91 INLINE
void EggAnimPreload::
92 set_num_frames(
int num_frames) {
93 _num_frames = num_frames;
94 _has_num_frames =
true;
101 INLINE
void EggAnimPreload::
103 _has_num_frames =
false;
109 INLINE
bool EggAnimPreload::
110 has_num_frames()
const {
111 return _has_num_frames;
119 nassertr(has_num_frames(), 0);
double get_fps() const
This is only valid if has_fps() returns true.
int get_num_frames() const
This is only valid if has_num_frames() returns true.
This corresponds to an <AnimPreload> entry.
A base class for things that may be directly added into the egg hierarchy.