21 INLINE EggAnimPreload::
22 EggAnimPreload(
const string &name) :
EggNode(name) {
24 _has_num_frames =
false;
33 INLINE EggAnimPreload::
37 _has_fps(copy._has_fps),
38 _num_frames(copy._num_frames),
39 _has_num_frames(copy._has_num_frames)
51 EggNode::operator = (copy);
53 _has_fps = copy._has_fps;
54 _num_frames = copy._num_frames;
55 _has_num_frames = copy._has_num_frames;
66 INLINE
void EggAnimPreload::
78 INLINE
void EggAnimPreload::
88 INLINE
bool EggAnimPreload::
100 nassertr(has_fps(), 0.0);
109 INLINE
void EggAnimPreload::
110 set_num_frames(
int num_frames) {
111 _num_frames = num_frames;
112 _has_num_frames =
true;
121 INLINE
void EggAnimPreload::
123 _has_num_frames =
false;
131 INLINE
bool EggAnimPreload::
132 has_num_frames()
const {
133 return _has_num_frames;
143 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.