![]() |
Lightmetrica
0.0.1.50dbee3 (yosakoi)
|
Public Member Functions | |
| LM_COMPONENT_IMPL_DEF ("raw") | |
| virtual bool | Load (const ConfigNode &node, const Assets &assets) override |
| virtual int | NumVertices () const override |
| virtual int | NumFaces () const override |
| virtual const Math::Float * | Positions () const override |
| virtual const Math::Float * | Normals () const override |
| virtual const Math::Float * | TexCoords () const override |
| virtual const unsigned int * | Faces () const override |
Public Member Functions inherited from TriangleMesh | |
| LM_ASSET_INTERFACE_DEF ("triangle_mesh","triangle_meshes") | |
| LM_ASSET_NO_DEPENDENCIES () | |
Public Member Functions inherited from Asset | |
| LM_PUBLIC_API std::string | ID () const |
| LM_HIDDEN_API void | SetID (const std::string &id) |
Public Member Functions inherited from Component | |
| virtual std::string | ComponentInterfaceTypeName () const =0 |
| virtual std::string | ComponentImplTypeName () const =0 |
Public Member Functions inherited from SIMDAlignedType | |
| void * | operator new (std::size_t size) throw (std::bad_alloc) |
| void | operator delete (void *p) |
Public Attributes | |
| std::vector< Math::Float > | positions |
| std::vector< Math::Float > | normals |
| std::vector< Math::Float > | texcoords |
| std::vector< unsigned int > | faces |
Raw mesh. Implements an triangle mesh whose geometry information is stored directly in the configuration file.
|
inlineoverridevirtual |
|
overridevirtual |
Load an asset. Configure and initialize the asset by the XML elements given by #node. Some assets have references to the other assets, so #assets is also required. Dependent asset must be loaded beforehand.
| node | XML node for the configuration. |
| assets | Asset manager. |
| true | Succeeded to load. |
| false | Failed to load. |
Implements Asset.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
1.8.8