#include <Importer.hpp>
|
virtual | ~MeshImporter ()=default |
|
C3D_API | MeshImporter (Engine &engine) |
| Constructor. More...
|
|
C3D_API bool | import (Mesh &mesh, castor::Path const &pathFile, Parameters const ¶meters, bool initialise) |
| Mesh import Function. More...
|
|
C3D_API bool | import (Scene &scene, castor::Path const &pathFile, Parameters const ¶meters, std::map< TextureFlag, TextureConfiguration > const &textureRemaps, bool initialise) |
| Scene import Function. More...
|
|
C3D_API castor::ImageSPtr | loadImage (castor::String const &name, castor::ImageCreateParams const ¶ms) const |
| Loads an image. More...
|
|
C3D_API castor::ImageSPtr | loadImage (castor::Path const &path) const |
| Loads an image from a file. More...
|
|
C3D_API castor::ImageSPtr | loadImage (castor::String name, castor::String type, castor::ByteArray data) const |
| Loads a texture. More...
|
|
C3D_API TextureSourceInfo | loadTexture (castor3d::SamplerRes sampler, castor::Path const &path, TextureConfiguration const &config) const |
| Loads a texture. More...
|
|
C3D_API TextureSourceInfo | loadTexture (castor3d::SamplerRes sampler, castor::String name, castor::String type, castor::ByteArray data, TextureConfiguration const &config) const |
| Loads a texture. More...
|
|
C3D_API bool | convertToNormalMap (castor::Path &path, castor3d::TextureConfiguration &config) const |
| Converts given height image file to a normal+height image. More...
|
|
◆ ~MeshImporter()
virtual castor3d::MeshImporter::~MeshImporter |
( |
| ) |
|
|
virtualdefault |
◆ MeshImporter()
◆ convertToNormalMap()
Converts given height image file to a normal+height image.
- Parameters
-
[in,out] | path | The image file path (can be relative or absolute), receives the resulting normal+height image file path. |
[in,out] | config | The texture unit configuration. |
- Returns
false
if any error occured.
◆ doImportMesh()
virtual C3D_API bool castor3d::MeshImporter::doImportMesh |
( |
Mesh & |
mesh | ) |
|
|
protectedpure virtual |
Mesh import Function.
- Parameters
-
[out] | mesh | Receives the imported data. |
- Returns
false
if any problem occured.
Implemented in castor3d::CmshImporter.
◆ doImportScene()
virtual C3D_API bool castor3d::MeshImporter::doImportScene |
( |
Scene & |
scene | ) |
|
|
protectedpure virtual |
Scene import Function.
- Parameters
-
[out] | scene | Receives the imported data. |
- Returns
false
if any problem occured.
Implemented in castor3d::CmshImporter.
◆ import() [1/2]
C3D_API bool castor3d::MeshImporter::import |
( |
Mesh & |
mesh, |
|
|
castor::Path const & |
pathFile, |
|
|
Parameters const & |
parameters, |
|
|
bool |
initialise |
|
) |
| |
Mesh import Function.
- Parameters
-
[out] | mesh | Receives the imported data. |
[in] | pathFile | The location of the file to import. |
[in] | parameters | Import configuration parameters. |
[in] | initialise | Tells if the imported mesh must be initialised. |
- Returns
false
if any problem occured.
◆ import() [2/2]
Scene import Function.
- Parameters
-
[out] | scene | Receives the imported data. |
[in] | pathFile | The location of the file to import. |
[in] | parameters | Import configuration parameters. |
[in] | textureRemaps | The imported textures remapping parameters. |
[in] | initialise | Tells if the imported meshes must be initialised. |
- Returns
false
if any problem occured.
◆ loadImage() [1/3]
C3D_API castor::ImageSPtr castor3d::MeshImporter::loadImage |
( |
castor::Path const & |
path | ) |
const |
Loads an image from a file.
- Parameters
-
[in] | path | The image file path (can be relative or absolute). |
- Returns
- The image.
◆ loadImage() [2/3]
C3D_API castor::ImageSPtr castor3d::MeshImporter::loadImage |
( |
castor::String const & |
name, |
|
|
castor::ImageCreateParams const & |
params |
|
) |
| const |
Loads an image.
- Parameters
-
[in] | name | The image name. |
[in] | params | The image creation parameters. |
- Returns
- The image.
◆ loadImage() [3/3]
C3D_API castor::ImageSPtr castor3d::MeshImporter::loadImage |
( |
castor::String |
name, |
|
|
castor::String |
type, |
|
|
castor::ByteArray |
data |
|
) |
| const |
Loads a texture.
- Parameters
-
[in] | name | The image name. |
[in] | type | The image data type. |
[in] | data | The image data. |
- Returns
- The texture unit.
◆ loadTexture() [1/2]
Loads a texture.
- Parameters
-
[in] | sampler | The sampler used by the texture. |
[in] | path | The image file path (can be relative or absolute). |
[in] | config | The texture unit configuration. |
- Returns
- The texture unit.
◆ loadTexture() [2/2]
Loads a texture.
- Parameters
-
[in] | sampler | The sampler used by the texture. |
[in] | name | The image name. |
[in] | type | The image data type. |
[in] | data | The image data. |
[in] | config | The texture unit configuration. |
- Returns
- The texture unit.
◆ m_fileName
castor::Path castor3d::MeshImporter::m_fileName |
|
protected |
◆ m_filePath
castor::Path castor3d::MeshImporter::m_filePath |
|
protected |
◆ m_geometries
GeometryPtrStrMap castor3d::MeshImporter::m_geometries |
|
protected |
◆ m_meshes
MeshPtrStrMap castor3d::MeshImporter::m_meshes |
|
protected |
◆ m_nodes
SceneNodePtrArray castor3d::MeshImporter::m_nodes |
|
protected |
◆ m_parameters
Import configuration parameters.
◆ m_textureRemaps
Import texture remapping parameters.
The documentation for this class was generated from the following file: