30 std::string LoaderFileTypeSrt::
32 return "SpeedTree compiled tree";
38 std::string LoaderFileTypeSrt::
39 get_extension()
const {
64 if (!tree->is_valid()) {
A basic node of the scene graph or data graph.
Specifies parameters that may be passed to the loader.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual bool supports_compressed() const
Returns true if this file type can transparently load compressed files (with a .pz or ....
The name of a file, such as a texture file or an Egg file.
An instance of this class is written to the front of a Bam or Txo file to make the file a cached inst...
void add_instance(const STTree *tree, const STTransform &transform)
Adds a new instance of the indicated tree at the indicated transform.
Interfaces with the SpeedTree library to render SpeedTree objects, especially trees,...
bool is_regular_file() const
Returns true if the filename exists and is the name of a regular file (i.e.
std::string get_basename() const
Returns the basename part of the filename.
TypeHandle is the identifier used to differentiate C++ class types.
Encapsulates a single tree model in the SpeedTree library, as loaded from an SRT file.