Panda3D
 All Classes Functions Variables Enumerations
config_softegg.cxx
00001 // Filename: config_softegg.cxx
00002 // Created by:  masad (25Sep03)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "config_softegg.h"
00016 #include "softEggGroupUserData.h"
00017 #include "softNodeDesc.h"
00018 
00019 #include "dconfig.h"
00020 
00021 Configure(config_softegg);
00022 NotifyCategoryDef(softegg, ":soft");
00023 
00024 ConfigureFn(config_softegg) {
00025   init_libsoftegg();
00026 }
00027 
00028 // These control the default behavior of the softegg converter, but
00029 // not necessarily the default behavior of the soft2egg command-line
00030 // tool (which has its own defaults).
00031 
00032 // Should we respect the Soft? double-sided flag (true) or ignore it
00033 // and assume everything is single-sided (false)?
00034 ConfigVariableBool soft_default_double_sided("soft-default-double-sided", false);
00035 
00036 // Should we apply vertex color even when a texture is applied (true)
00037 // or only when no texture is applied or the vertex-color egg flag is
00038 // set (false)?
00039 ConfigVariableBool soft_default_vertex_color("soft-default-vertex-color", true);
00040 
00041 ////////////////////////////////////////////////////////////////////
00042 //     Function: init_libsoftegg
00043 //  Description: Initializes the library.  This must be called at
00044 //               least once before any of the functions or classes in
00045 //               this library can be used.  Normally it will be
00046 //               called by the static initializers and need not be
00047 //               called explicitly, but special cases exist.
00048 ////////////////////////////////////////////////////////////////////
00049 void
00050 init_libsoftegg() {
00051   static bool initialized = false;
00052   if (initialized) {
00053     return;
00054   }
00055   initialized = true;
00056 
00057   SoftEggGroupUserData::init_type();
00058   SoftNodeDesc::init_type();
00059 }
00060 
 All Classes Functions Variables Enumerations