The small3d library
|
Abstract file parser class. More...
#include <File.hpp>
Public Member Functions | |
File (const std::string &fileLocation) | |
Constructor. More... | |
virtual void | load (Model &model, const std::string &meshName)=0 |
Load data from the file into a Model. More... | |
virtual std::vector< std::string > | getMeshNames ()=0 |
Get a list of the names of the meshes contained in the file. More... | |
Protected Attributes | |
std::string | fullPath = "" |
The path to the file being parsed. | |
Abstract file parser class.
|
explicit |
Constructor.
fileLocation | Path to the file |
|
pure virtual |
Get a list of the names of the meshes contained in the file.
Implemented in small3d::WavefrontFile, small3d::GlbFile, and small3d::BinaryFile.
|
pure virtual |
Load data from the file into a Model.
model | The model to load the data to |
meshName | The name of the mesh to load |
Implemented in small3d::GlbFile, small3d::WavefrontFile, and small3d::BinaryFile.