Panda3D
 All Classes Functions Variables Enumerations
config_pfm.cxx
00001 // Filename: config_pfm.cxx
00002 // Created by:  drose (23Dec10)
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_pfm.h"
00016 
00017 #include "dconfig.h"
00018 
00019 Configure(config_pfm);
00020 NotifyCategoryDef(pfm, "");
00021 
00022 ConfigVariableDouble pfm_bba_dist
00023 ("pfm-bba-dist", "0.2 0.05",
00024  PRC_DESC("Specifies the point_dist and sample_radius, in UV space, for "
00025           "compute bba files with pfm_trans."));
00026 
00027 ConfigureFn(config_pfm) {
00028   init_libpfm();
00029 }
00030 
00031 ////////////////////////////////////////////////////////////////////
00032 //     Function: init_libpfm
00033 //  Description: Initializes the library.  This must be called at
00034 //               least once before any of the functions or classes in
00035 //               this library can be used.  Normally it will be
00036 //               called by the static initializers and need not be
00037 //               called explicitly, but special cases exist.
00038 ////////////////////////////////////////////////////////////////////
00039 void
00040 init_libpfm() {
00041   static bool initialized = false;
00042   if (initialized) {
00043     return;
00044   }
00045   initialized = true;
00046 }
00047 
 All Classes Functions Variables Enumerations