Castor3D
..
|
Base class for external file import. More...
Public Member Functions | |
C3D_API | Importer (Engine &p_engine) |
Constructor. More... | |
C3D_API SceneSPtr | ImportScene (Castor::Path const &p_pathFile, Parameters const &p_parameters) |
Scene import Function. More... | |
C3D_API MeshSPtr | ImportMesh (Scene &p_scene, Castor::Path const &p_pathFile, Parameters const &p_parameters) |
Mesh import Function. More... | |
C3D_API TextureUnitSPtr | LoadTexture (Castor::Path const &p_path, Pass &p_pass, eTEXTURE_CHANNEL p_channel) |
Loads a texture and adds it to the given pass. More... | |
Protected Member Functions | |
virtual C3D_API SceneSPtr | DoImportScene ()=0 |
Scene import Function. More... | |
virtual C3D_API MeshSPtr | DoImportMesh (Scene &p_scene)=0 |
Mesh import Function. More... | |
Protected Attributes | |
Castor::Path | m_fileName |
The file name. More... | |
Castor::Path | m_filePath |
The file full path. More... | |
SceneNodePtrArray | m_nodes |
The loaded scene nodes. More... | |
GeometryPtrStrMap | m_geometries |
The loaded geometries. More... | |
Parameters | m_parameters |
Import configuration parameters. More... | |
Base class for external file import.
C3D_API Castor3D::Importer::Importer | ( | Engine & | p_engine | ) |
Constructor.
[in] | p_engine | The core engine |
|
protectedpure virtual |
|
protectedpure virtual |
C3D_API MeshSPtr Castor3D::Importer::ImportMesh | ( | Scene & | p_scene, |
Castor::Path const & | p_pathFile, | ||
Parameters const & | p_parameters | ||
) |
C3D_API SceneSPtr Castor3D::Importer::ImportScene | ( | Castor::Path const & | p_pathFile, |
Parameters const & | p_parameters | ||
) |
C3D_API TextureUnitSPtr Castor3D::Importer::LoadTexture | ( | Castor::Path const & | p_path, |
Pass & | p_pass, | ||
eTEXTURE_CHANNEL | p_channel | ||
) |
Loads a texture and adds it to the given pass.
[in] | p_path | The image file path (can be relative or absolute). |
[in] | p_pass | The pass. |
[in] | p_channel | The channel affected. |
false
if any error occured.
|
protected |
The file name.
|
protected |
The file full path.
|
protected |
The loaded geometries.
|
protected |
The loaded scene nodes.
|
protected |
Import configuration parameters.