14#ifndef EGGANIMPRELOAD_H
15#define EGGANIMPRELOAD_H
24class EXPCL_PANDA_EGG EggAnimPreload :
public EggNode {
26 INLINE
explicit EggAnimPreload(
const std::string &name =
"");
27 INLINE EggAnimPreload(
const EggAnimPreload ©);
28 INLINE EggAnimPreload &operator = (
const EggAnimPreload ©);
30 INLINE
void set_fps(
double fps);
31 INLINE
void clear_fps();
32 INLINE
bool has_fps()
const;
35 INLINE
void set_num_frames(
int num_frames);
36 INLINE
void clear_num_frames();
37 INLINE
bool has_num_frames()
const;
40 MAKE_PROPERTY2(fps, has_fps,
get_fps, set_fps, clear_fps);
41 MAKE_PROPERTY2(num_frames, has_num_frames,
get_num_frames, set_num_frames, clear_num_frames);
43 virtual void write(std::ostream &out,
int indent_level)
const;
55 static void init_type() {
58 EggNode::get_class_type());
60 virtual TypeHandle get_type()
const {
61 return get_class_type();
63 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
66 static TypeHandle _type_handle;
get_fps
This is only valid if has_fps() returns true.
virtual void write(std::ostream &out, int indent_level) const
Writes the table and all of its children to the indicated output stream in Egg format.
get_num_frames
This is only valid if has_num_frames() returns true.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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(),...