Panda3D
Loading...
Searching...
No Matches
eggToSomethingConverter.cxx
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 eggToSomethingConverter.cxx
10 * @author drose
11 * @date 2001-04-26
12 */
13
15
16#include "eggData.h"
17
18/**
19 *
20 */
21EggToSomethingConverter::
22EggToSomethingConverter() {
23 _egg_data = nullptr;
24 _error = false;
25}
26
27/**
28 *
29 */
30EggToSomethingConverter::
31EggToSomethingConverter(const EggToSomethingConverter &copy) {
32 _egg_data = nullptr;
33 _error = false;
34}
35
36/**
37 *
38 */
39EggToSomethingConverter::
40~EggToSomethingConverter() {
42}
43
44/**
45 * Sets the egg data that will be filled in when convert_file() is called.
46 * This must be called before convert_file().
47 */
49set_egg_data(EggData *egg_data) {
50 _egg_data = egg_data;
51}
52
53/**
54 * Returns a space-separated list of extension, in addition to the one
55 * returned by get_extension(), that are recognized by this converter.
56 */
59 return std::string();
60}
61
62/**
63 * Returns true if this file type can transparently save compressed files
64 * (with a .pz extension), false otherwise.
65 */
67supports_compressed() const {
68 return false;
69}
This is the primary interface into all the egg data, and the root of the egg file structure.
Definition eggData.h:37
This is a base class for a family of converter classes that manage a conversion from egg format to so...
virtual bool supports_compressed() const
Returns true if this file type can transparently save compressed files (with a .pz extension),...
void clear_egg_data()
Sets the EggData to NULL and makes the converter invalid.
virtual std::string get_additional_extensions() const
Returns a space-separated list of extension, in addition to the one returned by get_extension(),...
void set_egg_data(EggData *egg_data)
Sets the egg data that will be filled in when convert_file() is called.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.