Support Forum G3D Web Page |
Parses Wavefront material (.mtl) files. More...
Classes | |
class | Material |
Loaded from the MTL file. More... | |
class | Options |
Public Member Functions | |
ParseMTL () | |
void | parse (TextInput &ti, const String &basePath="<AUTO>", const ParseMTL::Options &options=ParseMTL::Options()) |
Public Attributes | |
Table< String, shared_ptr< Material > > | materialTable |
Parses Wavefront material (.mtl) files.
Parsing creates references to texture files on disk, but does not actually load those textures.
Supports the extension of interpolation modes for texture maps. "interpolateMode <mode>" sets the mode, which applies to all maps until changed. The default is TRILINEAR_MIPMAP. The other options are G3D::InterpolateMode values.
Supports "lightMap" field extension.
G3D::ParseMTL::ParseMTL | ( | ) |
void G3D::ParseMTL::parse | ( | TextInput & | ti, |
const String & | basePath = "<AUTO>" , |
||
const ParseMTL::Options & | options = ParseMTL::Options() |
||
) |
basePath | Directory relative to which texture filenames are resolved. If "<AUTO>", the path to the TextInput's file is used. |