![]() |
Castor3D 0.17.0
Multiplatform 3D engine
|
#include <IndexMapping.hpp>


Classes | |
| struct | ComponentData |
Public Member Functions | |
| C3D_API | IndexMapping (Submesh &submesh, castor::String const &type, SubmeshComponentDataUPtr data) |
| Constructor. | |
| virtual C3D_API uint32_t | getCount () const =0 |
| virtual C3D_API void | setCount (uint32_t value)=0 |
| Sets the elements count. | |
| virtual C3D_API uint32_t | getComponentsCount () const =0 |
| virtual C3D_API void | computeNormals (bool reverted=false)=0 |
| Generates normals. | |
| virtual C3D_API void | computeTangents ()=0 |
| Generates tangents. | |
Public Member Functions inherited from castor3d::SubmeshComponent | |
| C3D_API | SubmeshComponent (Submesh &submesh, castor::String const &type, SubmeshComponentDataUPtr data={}, castor::StringArray deps={}) |
| Constructor. | |
| virtual C3D_API | ~SubmeshComponent () noexcept=default |
| Destructor. | |
| virtual C3D_API bool | writeText (castor::String const &tabs, castor::Path const &folder, castor::String const &subfolder, castor::StringStream &file) const |
| Writes the component content to text. | |
| virtual C3D_API void | accept (ConfigurationVisitorBase &vis) |
| ConfigurationVisitorBase acceptance function. | |
| virtual C3D_API SubmeshComponentFlag | getSubmeshFlags () const noexcept |
| virtual C3D_API SubmeshComponentUPtr | clone (Submesh &submesh) const =0 |
| Clones this component into given submesh. | |
| virtual C3D_API ProgramFlags | getProgramFlags (Pass const &pass) const noexcept |
| C3D_API void | initialiseRenderData () |
| Initialises the render data specific for this component's submesh. | |
| castor::String const & | getType () const noexcept |
| castor::StringArray const & | getDependencies () const noexcept |
| SubmeshComponentPlugin const & | getPlugin () const noexcept |
| SubmeshComponentID | getId () const noexcept |
| SubmeshComponentDataRPtr | getBaseData () const noexcept |
| SubmeshRenderData * | getRenderData () const noexcept |
| template<typename DataT > | |
| DataT * | getDataT () const noexcept |
| template<typename DataT > | |
| DataT * | getRenderDataT () const noexcept |
Public Member Functions inherited from castor::OwnedBy< Submesh > | |
| Submesh * | getOwner () const noexcept |
| void | setOwner (Submesh &owner) noexcept |
Additional Inherited Members | |
Protected Member Functions inherited from castor::OwnedBy< Submesh > | |
| OwnedBy (Submesh &owner) noexcept | |
| Constructor. | |
Protected Attributes inherited from castor3d::SubmeshComponent | |
| SubmeshComponentDataUPtr | m_data |
| SubmeshRenderDataPtr | m_renderData |
| C3D_API castor3d::IndexMapping::IndexMapping | ( | Submesh & | submesh, |
| castor::String const & | type, | ||
| SubmeshComponentDataUPtr | data ) |
Constructor.
| [in] | submesh | The parent submesh. |
| [in] | type | The component type. |
| [in] | data | The component data. |
|
pure virtual |
Generates normals.
| [in] | reverted | Tells if normals are inverted. |
Implemented in castor3d::LinesMapping, and castor3d::TriFaceMapping.
|
pure virtual |
Generates tangents.
Implemented in castor3d::LinesMapping, and castor3d::TriFaceMapping.
|
pure virtual |
Implemented in castor3d::LinesMapping, and castor3d::TriFaceMapping.
|
pure virtual |
Implemented in castor3d::LinesMapping, and castor3d::TriFaceMapping.
|
pure virtual |
Sets the elements count.
| [in] | value | The count. |
Implemented in castor3d::LinesMapping, and castor3d::TriFaceMapping.