Callback interface for properties which can be used to influence collada writing.
More...
#include <jimcpp/core/engine/IColladaMeshWriter.hpp>
|
void | setDebugName (const c8 *newName) |
| Sets the debug name of the object.
|
|
Callback interface for properties which can be used to influence collada writing.
◆ getColorMapping()
Return which color from Jimcpp should be used for the color requested by collada.
Note that collada allows exporting either texture or color, not both. So color mapping is only checked if we have no valid texture already. By default we try to return best fits when possible. For example ECCS_DIFFUSE is mapped to ECIC_DIFFUSE. When ECIC_CUSTOM is returned then the result of getCustomColor will be used.
◆ getCustomColor()
Return custom colors for certain color types requested by collada.
Only used when getColorMapping returns ECIC_CUSTOM for the same parameters.
◆ getIndexOfRefraction()
virtual f32 jpp::scene::IColladaMeshWriterProperties::getIndexOfRefraction |
( |
const video::SMaterial & |
material | ) |
const |
|
pure virtual |
Return index of refraction for that material.
By default we don't write that.
- Returns
- a value greater equal 0.f to write <index_of_refraction> when it is lesser than 0 nothing will be written
◆ getMesh()
Return the mesh for the given node. If it has no mesh or shouldn't export it's mesh you can return 0 in which case only the transformation matrix of the node will be used.
◆ getReflectivity()
virtual f32 jpp::scene::IColladaMeshWriterProperties::getReflectivity |
( |
const video::SMaterial & |
material | ) |
const |
|
pure virtual |
Reflectivity value for that material.
The amount of perfect mirror reflection to be added to the reflected light
- Returns
- 0.0 - 1.0 for reflectivity and element is not written at all when < 0.f
◆ getTextureIdx()
Which texture index should be used when writing the texture of the given sampler color.
- Returns
- the index to the texture-layer or -1 if that texture should never be exported Note: for ECCS_TRANSPARENT by default the alpha channel is used, if you want to use RGB you have to set also the ECOF_RGB_ZERO flag in getTransparentFx.
◆ getTransparency()
virtual f32 jpp::scene::IColladaMeshWriterProperties::getTransparency |
( |
const video::SMaterial & |
material | ) |
const |
|
pure virtual |
Transparency value for that material.
This value is additional to transparent settings, if both are set they will be multiplicated.
- Returns
- 1.0 for fully transparent, 0.0 for not transparent and not written at all when < 0.f
◆ getTransparentFx()
Return the transparence color interpretation.
Not this is only about ECCS_TRANSPARENT and does not affect getTransparency.
◆ isExportable()
virtual bool jpp::scene::IColladaMeshWriterProperties::isExportable |
( |
const jpp::scene::ISceneNode * |
node | ) |
const |
|
pure virtual |
Should node be used in scene export? (only needed for scene-writing, ignored in mesh-writing) By default all visible nodes are exported.
◆ useNodeMaterial()
virtual bool jpp::scene::IColladaMeshWriterProperties::useNodeMaterial |
( |
const scene::ISceneNode * |
node | ) |
const |
|
pure virtual |
Return if the node has it's own material overwriting the mesh-materials.
Usually true except for mesh-nodes which have isReadOnlyMaterials set. This is mostly important for naming (as ISceneNode::getMaterial() already returns the correct material). You have to override it when exporting custom scenenodes with own materials.
- Returns
- true => The node's own material is used, false => ignore node material and use the one from the mesh
The documentation for this class was generated from the following file: