#include <meshfromfile.h>
Public Member Functions | |
MeshFromFile (Core &core) | |
virtual bool | init (utility::ErrorState &errorState) override |
virtual MeshInstance & | getMeshInstance () override |
virtual const MeshInstance & | getMeshInstance () const override |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
std::string | mPath |
Property: 'Path' path to the '.mesh' file on disk. More... | |
EMemoryUsage | mUsage = EMemoryUsage::Static |
Property: 'Usage' If the mesh is uploaded once or frequently updated. More... | |
ECullMode | mCullMode = ECullMode::Back |
Property: 'CullMode' controls which triangles are culled, back facing, front facing etc. More... | |
EPolygonMode | mPolygonMode = EPolygonMode::Fill |
Property: 'PolygonMode' Mesh polygon mode (fill, wires, points) More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Loads a '.mesh' file from disk. After a successful load the mesh can be rendered. NAP uses its own binary mesh representation format: '.mesh', 'fbx' files are converted into '.mesh' files using the 'fbxconverter' tool. The 'fbxconverter' runs automatically after compilation and only converts '.fbx' files when new. Alternatively you can run the tool from the command line. Type –help for instructions. If an '.fbx' file contains multiple meshes each mesh is stored into an individual '.mesh' file.
MeshFromFile | ( | Core & | core | ) |
|
overridevirtual |
Implements IMesh.
|
overridevirtual |
Implements IMesh.
|
overridevirtual |
Loads model from file.
errorState | contains the error if the mesh can't be loaded. |
Reimplemented from Object.
ECullMode mCullMode = ECullMode::Back |
Property: 'CullMode' controls which triangles are culled, back facing, front facing etc.
std::string mPath |
Property: 'Path' path to the '.mesh' file on disk.
EPolygonMode mPolygonMode = EPolygonMode::Fill |
Property: 'PolygonMode' Mesh polygon mode (fill, wires, points)
EMemoryUsage mUsage = EMemoryUsage::Static |
Property: 'Usage' If the mesh is uploaded once or frequently updated.