27 Namable(fullpath.get_basename_wo_extension()),
34 speedtree_cat.warning()
35 <<
"SpeedTree license not available.\n";
52 if (!_tree.LoadTree(os_fullpath.c_str())) {
53 speedtree_cat.warning()
54 <<
"Couldn't read: " << _fullpath <<
"\n";
60 <<
"Read " << _fullpath <<
"\n";
68 output(std::ostream &out)
const {
70 out <<
"(invalid STTree)";
72 out <<
"STTree(" << get_name() <<
")";
static void write_error(std::ostream &out)
Writes the current SpeedTree error message to the indicated stream.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A base class for all things which can have a name.
The name of a file, such as a texture file or an Egg file.
bool is_valid() const
Returns true if the tree was successfully loaded and is ready to be used, false otherwise.
STTree(const Filename &fullpath)
The constructor reads the indicated SRT file immediately.
static bool authorize(const std::string &license="")
Make this call to initialized the SpeedTree API and verify the license.
TypeHandle is the identifier used to differentiate C++ class types.
std::string to_os_specific() const
Converts the filename from our generic Unix-like convention (forward slashes starting with the root a...