30 #if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_PANDA_GRUTIL) 31 #error Buildsystem error: BUILDING_PANDA_GRUTIL not defined 34 Configure(config_grutil);
35 NotifyCategoryDef(grutil,
"");
37 ConfigureFn(config_grutil) {
42 (
"frame-rate-meter-milliseconds",
false);
45 (
"frame-rate-meter-update-interval", 1.5);
48 (
"frame-rate-meter-text-pattern",
"%0.1f fps");
51 (
"frame-rate-meter-ms-text-pattern",
"%0.1f ms");
54 (
"frame-rate-meter-layer-sort", 1000);
57 (
"frame-rate-meter-scale", 0.05);
60 (
"frame-rate-meter-side-margins", 0.5);
63 (
"scene-graph-analyzer-meter-update-interval", 2.0);
66 (
"scene-graph-analyzer-meter-layer-sort", 1000);
69 (
"scene-graph-analyzer-meter-scale", 0.05);
72 (
"scene-graph-analyzer-meter-side-margins", 0.5);
75 (
"movies-sync-pages",
true,
76 PRC_DESC(
"Set this true to force multi-page MovieTextures to hold pages " 77 "back if necessary until all pages are ready to render at once, " 78 "so that the multiple pages of a single movie are always in sync " 79 "with each other. Set this false to allow individual pages to be " 80 "visible as soon as they come available, which means pages might " 81 "sometimes be out of sync. This only affects multi-page MovieTextures " 82 "such as cube maps, 3-d textures, or stereo textures, or textures " 83 "with separate color and alpha channel movie sources."));
86 (
"pfm-vis-max-vertices", 65535,
87 PRC_DESC(
"Specifies the maximum number of vertex entries that may appear in " 88 "a single generated mesh. If the mesh would require more than that, " 89 "the mesh is subdivided into smaller pieces."));
92 (
"pfm-vis-max-indices", 1048576,
93 PRC_DESC(
"Specifies the maximum number of vertex references that may appear in " 94 "a single generated mesh. If the mesh would require more than that, " 95 "the mesh is subdivided into smaller pieces."));
98 (
"ae-undershift-factor-16", 1.004,
99 PRC_DESC(
"Specifies the factor by which After Effects under-applies the specified " 100 "maximum pixel shift when applying a displacement map, in a 16-bit project file. This is used " 101 "to control PfmVizzer::make_displacement()."));
104 (
"ae-undershift-factor-32", 1.0,
105 PRC_DESC(
"Specifies the factor by which After Effects under-applies the specified " 106 "maximum pixel shift when applying a displacement map, in a 32-bit project file. This is used " 107 "to control PfmVizzer::make_displacement()."));
117 static bool initialized =
false;
123 FrameRateMeter::init_type();
124 MeshDrawer::init_type();
125 MeshDrawer2D::init_type();
126 GeoMipTerrain::init_type();
127 NodeVertexTransform::init_type();
128 RigidBodyCombiner::init_type();
129 PipeOcclusionCullTraverser::init_type();
130 SceneGraphAnalyzerMeter::init_type();
131 ShaderTerrainMesh::init_type();
134 MovieTexture::init_type();
135 MovieTexture::register_with_read_factory();
138 ts->
register_texture_type(MovieTexture::make_texture,
"avi m2v mov mpg mpeg mp4 wmv asf flv nut ogm mkv ogv webm");
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_texture_type(MakeTextureFunc *func, const std::string &extensions)
Records a factory function that makes a Texture object of the appropriate type for one or more partic...
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.
This is a convenience class to specialize ConfigVariable as a floating- point type.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a convenience class to specialize ConfigVariable as a string 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.
static TexturePool * get_global_ptr()
Initializes and/or returns the global pointer to the one TexturePool object in the system.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a convenience class to specialize ConfigVariable as an integer type.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the preferred interface for loading textures from image files.
void init_libgrutil()
Initializes the library.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.