Panda3D
config_mayaloader.cxx
1 // Filename: config_mayaloader.cxx
2 // Created by: drose (09Oct03)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifdef __MACH__
16 #define __OPENTRANSPORTPROVIDERS__
17 #endif
18 
19 #include "pandatoolbase.h"
20 #include "loaderFileTypePandatool.h"
21 #include "config_mayaegg.h"
22 #include "mayaToEggConverter.h"
23 
24 #include "dconfig.h"
25 #include "loaderFileTypeRegistry.h"
26 
27 Configure(config_mayaloader);
28 
29 void EXPCL_MISC init_libmayaloader();
30 
31 ConfigureFn(config_mayaloader) {
32  init_libmayaloader();
33 }
34 
35 ////////////////////////////////////////////////////////////////////
36 // Function: init_libmayaloader
37 // Description: Initializes the library. This must be called at
38 // least once before any of the functions or classes in
39 // this library can be used. Normally it will be
40 // called by the static initializers and need not be
41 // called explicitly, but special cases exist.
42 ////////////////////////////////////////////////////////////////////
43 void
44 init_libmayaloader() {
45  static bool initialized = false;
46  if (initialized) {
47  return;
48  }
49  initialized = true;
50 
51  LoaderFileTypePandatool::init_type();
52 
54 
55  init_libmayaegg();
57  reg->register_type(new LoaderFileTypePandatool(maya));
58 }
static LoaderFileTypeRegistry * get_global_ptr()
Returns a pointer to the global LoaderFileTypeRegistry object.
void register_type(LoaderFileType *type)
Defines a new LoaderFileType in the universe.
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 ...