15 #include "loaderFileTypeSrt.h" 16 #include "speedTreeNode.h" 35 string LoaderFileTypeSrt::
37 return "SpeedTree compiled tree";
45 string LoaderFileTypeSrt::
46 get_extension()
const {
77 if (!tree->is_valid()) {
string get_basename() const
Returns the basename part of the filename.
A basic node of the scene graph or data graph.
Specifies parameters that may be passed to the loader.
virtual bool supports_compressed() const
Returns true if this file type can transparently load compressed files (with a .pz extension)...
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, within the Panda3D scene graph.
bool is_regular_file() const
Returns true if the filename exists and is the name of a regular file (i.e.
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.