Panda3D
config_mayaloader.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 config_mayaloader.cxx
10  * @author drose
11  * @date 2003-10-09
12  */
13 
14 #ifdef __MACH__
15 #define __OPENTRANSPORTPROVIDERS__
16 #endif
17 
18 #include "pandatoolbase.h"
20 #include "config_mayaegg.h"
21 #include "mayaToEggConverter.h"
22 
23 #include "dconfig.h"
24 #include "loaderFileTypeRegistry.h"
25 
26 Configure(config_mayaloader);
27 
28 void EXPCL_MISC init_libmayaloader();
29 
30 ConfigureFn(config_mayaloader) {
32 }
33 
34 /**
35  * Initializes the library. This must be called at least once before any of
36  * the functions or classes in this library can be used. Normally it will be
37  * called by the static initializers and need not be called explicitly, but
38  * special cases exist.
39  */
40 void
42  static bool initialized = false;
43  if (initialized) {
44  return;
45  }
46  initialized = true;
47 
48  LoaderFileTypePandatool::init_type();
49 
51 
54  reg->register_type(new LoaderFileTypePandatool(maya));
55 }
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static LoaderFileTypeRegistry * get_global_ptr()
Returns a pointer to the global LoaderFileTypeRegistry object.
void init_libmayaegg()
Initializes the library.
void register_type(LoaderFileType *type)
Defines a new LoaderFileType in the universe.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class maintains the set of all known LoaderFileTypes in the universe.
This class supervises the construction of an EggData structure from a single Maya file,...
This defines the Loader interface to files whose converters are defined within the Pandatool package ...
void EXPCL_MISC init_libmayaloader()
Initializes the library.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.