Panda3D
Loading...
Searching...
No Matches
fltCopy.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file fltCopy.h
10 * @author drose
11 * @date 2000-11-01
12 */
13
14#ifndef FLTCOPY_H
15#define FLTCOPY_H
16
17#include "pandatoolbase.h"
18
19#include "cvsCopy.h"
20
21#include "dSearchPath.h"
22#include "pointerTo.h"
23
24#include "pset.h"
25
26class FltRecord;
27class FltTexture;
29
30/**
31 * A program to copy Multigen .flt files into the cvs tree. It copies the
32 * base file plus all externally referenced files as well as all textures.
33 */
34class FltCopy : public CVSCopy {
35public:
36 FltCopy();
37
38 void run();
39
40protected:
41 virtual bool copy_file(const Filename &source, const Filename &dest,
42 CVSSourceDirectory *dir, void *extra_data,
43 bool new_file);
44
45private:
46 enum FileType {
47 FT_flt,
48 FT_texture
49 };
50
51 class ExtraData {
52 public:
53 FileType _type;
54 FltTexture *_texture;
55 };
56
57 bool copy_flt_file(const Filename &source, const Filename &dest,
59 bool copy_texture(const Filename &source, const Filename &dest,
61 bool new_file);
62
63
64 typedef pset< PT(FltExternalReference) > Refs;
65 typedef pset< PT(FltTexture) > Textures;
66
67 void scan_flt(FltRecord *record, Refs &refs, Textures &textures);
68};
69
70#endif
This is the base class for a family of programs that copy files, typically model files like ....
Definition cvsCopy.h:30
This represents one particular directory in the hierarchy of source directory files.
The name of a file, such as a texture file or an Egg file.
Definition filename.h:44
A program to copy Multigen .flt files into the cvs tree.
Definition fltCopy.h:34
An external reference to another flt file (possibly to a specific bead within the flt file).
The base class for all kinds of records in a MultiGen OpenFlight file.
Definition fltRecord.h:36
Represents a single texture in the texture palette.
Definition fltTexture.h:27
This is our own Panda specialization on the default STL set.
Definition pset.h:49
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.