Support Forum       G3D Web Page     
Classes | Public Member Functions | Public Attributes | List of all members
G3D::ParseMTL Class Reference

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
 

Detailed Description

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.

See also
G3D::ParseOBJ, G3D::ArticulatedModel

Constructor & Destructor Documentation

◆ ParseMTL()

G3D::ParseMTL::ParseMTL ( )

Member Function Documentation

◆ parse()

void G3D::ParseMTL::parse ( TextInput ti,
const String basePath = "<AUTO>",
const ParseMTL::Options options = ParseMTL::Options() 
)
Parameters
basePathDirectory relative to which texture filenames are resolved. If "<AUTO>", the path to the TextInput's file is used.

Member Data Documentation

◆ materialTable

Table<String, shared_ptr<Material> > G3D::ParseMTL::materialTable

documentation generated on Wed Nov 24 2021 08:01:58 using doxygen 1.8.15