72 lines
1.9 KiB
C++
72 lines
1.9 KiB
C++
// Filename: eggAnimPreload.h
|
|
// Created by: drose (06Aug08)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) Carnegie Mellon University. All rights reserved.
|
|
//
|
|
// All use of this software is subject to the terms of the revised BSD
|
|
// license. You should have received a copy of this license along
|
|
// with this source code in a file named "LICENSE."
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef EGGANIMPRELOAD_H
|
|
#define EGGANIMPRELOAD_H
|
|
|
|
#include "pandabase.h"
|
|
|
|
#include "eggNode.h"
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Class : EggAnimPreload
|
|
// Description : This corresponds to an <AnimPreload> entry.
|
|
////////////////////////////////////////////////////////////////////
|
|
class EXPCL_PANDAEGG EggAnimPreload : public EggNode {
|
|
PUBLISHED:
|
|
INLINE EggAnimPreload(const string &name = "");
|
|
INLINE EggAnimPreload(const EggAnimPreload ©);
|
|
INLINE EggAnimPreload &operator = (const EggAnimPreload ©);
|
|
|
|
INLINE void set_fps(double fps);
|
|
INLINE void clear_fps();
|
|
INLINE bool has_fps() const;
|
|
INLINE double get_fps() const;
|
|
|
|
INLINE void set_num_frames(int num_frames);
|
|
INLINE void clear_num_frames();
|
|
INLINE bool has_num_frames() const;
|
|
INLINE int get_num_frames() const;
|
|
|
|
virtual void write(ostream &out, int indent_level) const;
|
|
|
|
private:
|
|
double _fps;
|
|
bool _has_fps;
|
|
int _num_frames;
|
|
bool _has_num_frames;
|
|
|
|
public:
|
|
static TypeHandle get_class_type() {
|
|
return _type_handle;
|
|
}
|
|
static void init_type() {
|
|
EggNode::init_type();
|
|
register_type(_type_handle, "EggAnimPreload",
|
|
EggNode::get_class_type());
|
|
}
|
|
virtual TypeHandle get_type() const {
|
|
return get_class_type();
|
|
}
|
|
virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
|
|
|
|
private:
|
|
static TypeHandle _type_handle;
|
|
};
|
|
|
|
#include "eggAnimPreload.I"
|
|
|
|
#endif
|
|
|