Function libcacaoasset::DecodeMaterial
Defined in File libcacaoasset.hpp
Function Documentation
-
Material libcacaoasset::DecodeMaterial(std::istream *stream)
Decode a material object from the stream data.
- Parameters:
stream – The stream to read data from (warning: this pointer becomes owned exclusively by this function and will be freed when it returns)
- Throws:
std::runtime_error – If the stream pointer is invalid
std::runtime_error – If the stream is not a valid material
std::runtime_error – If decoding fails
- Returns:
The resulting material object