8 #ifndef META_OCEAN_SCENEDESCRIPTION_SDL_OBJ_MTL_PARSER_H
9 #define META_OCEAN_SCENEDESCRIPTION_SDL_OBJ_MTL_PARSER_H
20 namespace SceneDescription
33 class OCEAN_SCENEDESCRIPTION_SDL_OBJ_EXPORT
MtlParser
This class implements a token for the scanner.
Definition: Scanner.h:43
This class hold a material defined in a mtl obj material file.
Definition: scenedescription/sdl/obj/Material.h:38
This class implements a obj material parser able to parse mtl files.
Definition: MtlParser.h:34
void parseAmbientTexture(Material &material)
Parses the ambient texture name.
MtlScanner::Token Token
Definition of a scanner token.
Definition: MtlParser.h:47
MtlParser(const std::string &filename)
Creates a new obj mtl parser.
void parseAmbientColor(Material &material)
Parses the ambient color.
void parseDiffuseTexture(Material &material)
Parses the diffuse texture name.
std::vector< Material > Materials
Definition of a vector holding materials.
Definition: MtlParser.h:40
void parseSpecularColor(Material &material)
Parses the spcular color.
void parseMaterial(Materials &materials)
Parses a obj material.
void parseDissolve(Material &material)
Parses the dissolve value.
void parseDiffuseColor(Material &material)
Parses the diffuse color.
Materials parse(bool *cancel=nullptr)
Parses the mtl file and returns all parsed material objects.
Scalar parseFloat()
Parses a float value.
void parseUnsupportedKeyword()
Parses an unsupported keyword.
void parseSpecularHighlight(Material &material)
Parses the specular highlight.
void parseEmissiveColor(Material &material)
Parses the emissive color.
void parseIlluminationModel(Material &material)
Parses the illumination model.
void parseTransparency(Material &material)
Parses the transparency value.
void parseOpticalDensity(Material &material)
Parses the optical density value.
MtlScanner scanner_
Scanner able to scan obj mtl token.
Definition: MtlParser.h:158
void parseTransmissionFilter(Material &material)
Parses the transmission filter value.
This class implements a scanner able to scan obj mtl token.
Definition: MtlScanner.h:32
float Scalar
Definition of a scalar type.
Definition: Math.h:128
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15