Panda3D
 All Classes Functions Variables Enumerations
config_pfm.cxx
1 // Filename: config_pfm.cxx
2 // Created by: drose (23Dec10)
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 #include "config_pfm.h"
16 
17 #include "dconfig.h"
18 
19 Configure(config_pfm);
20 NotifyCategoryDef(pfm, "");
21 
22 ConfigVariableDouble pfm_bba_dist
23 ("pfm-bba-dist", "0.2 0.05",
24  PRC_DESC("Specifies the point_dist and sample_radius, in UV space, for "
25  "compute bba files with pfm_trans."));
26 
27 ConfigureFn(config_pfm) {
28  init_libpfm();
29 }
30 
31 ////////////////////////////////////////////////////////////////////
32 // Function: init_libpfm
33 // Description: Initializes the library. This must be called at
34 // least once before any of the functions or classes in
35 // this library can be used. Normally it will be
36 // called by the static initializers and need not be
37 // called explicitly, but special cases exist.
38 ////////////////////////////////////////////////////////////////////
39 void
40 init_libpfm() {
41  static bool initialized = false;
42  if (initialized) {
43  return;
44  }
45  initialized = true;
46 }
47 
This is a convenience class to specialize ConfigVariable as a floating-point type.