14#ifndef EGGANIMPRELOAD_H
15#define EGGANIMPRELOAD_H
30 INLINE
void set_fps(
double fps);
31 INLINE
void clear_fps();
32 INLINE
bool has_fps()
const;
33 INLINE
double get_fps()
const;
35 INLINE
void set_num_frames(
int num_frames);
36 INLINE
void clear_num_frames();
37 INLINE
bool has_num_frames()
const;
38 INLINE
int get_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());
61 return get_class_type();
63 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This corresponds to an <AnimPreload> entry.
A base class for things that may be directly added into the egg hierarchy.
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(),...