Panda3D
config_distort.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_distort.cxx
10  * @author drose
11  * @date 2001-12-11
12  */
13 
14 #include "config_distort.h"
15 #include "cylindricalLens.h"
16 #include "fisheyeLens.h"
17 #include "pSphereLens.h"
18 #include "oSphereLens.h"
19 #include "projectionScreen.h"
20 
21 #include "dconfig.h"
22 
23 #if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_PANDAFX)
24  #error Buildsystem error: BUILDING_PANDAFX not defined
25 #endif
26 
27 Configure(config_distort);
28 NotifyCategoryDef(distort, "");
29 
30 ConfigureFn(config_distort) {
32 }
33 
34 ConfigVariableBool project_invert_uvs
35 ("project-invert-uvs", false,
36  PRC_DESC("If this is true, the UV's generated by all ProjectionScreens are "
37  "inverted top-to-bottom. This used to be required to compensate "
38  "for buggy graphics drivers that rendered to a texture upside-down "
39  "in this manner, but nowadays Panda should be able to autodetect "
40  "these graphics drivers. If it fails to do this, you should "
41  "probably set copy-texture-inverted instead, which is more general."));
42 
43 /**
44  * Initializes the library. This must be called at least once before any of
45  * the functions or classes in this library can be used. Normally it will be
46  * called by the static initializers and need not be called explicitly, but
47  * special cases exist.
48  */
49 void
51  static bool initialized = false;
52  if (initialized) {
53  return;
54  }
55  initialized = true;
56 
57  CylindricalLens::init_type();
58  FisheyeLens::init_type();
59  PSphereLens::init_type();
60  OSphereLens::init_type();
61  ProjectionScreen::init_type();
62 }
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a convenience class to specialize ConfigVariable as a boolean type.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void init_libdistort()
Initializes the library.