Public Member Functions | List of all members
IMesh Class Referenceabstract

#include <mesh.h>

Public Member Functions

virtual MeshInstancegetMeshInstance ()=0
virtual const MeshInstancegetMeshInstance () const =0
- Public Member Functions inherited from Resource
 Resource ()
- Public Member Functions inherited from Object
 Object ()
virtual ~Object ()
virtual bool init (utility::ErrorState &errorState)
virtual void onDestroy ()
 Object (Object &)=delete
Objectoperator= (const Object &)=delete
 Object (Object &&)=delete
Objectoperator= (Object &&)=delete

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...


Mesh resource interface. Derive from this class to implement your own serializable mesh resource. Every IMesh should be able to construct and return a nap::MeshInstance(). The instance is rendered and can be updated / modified at runtime.

Inheritance diagram for IMesh:
Collaboration diagram for IMesh:

Member Function Documentation

◆ getMeshInstance() [1/2]

virtual const MeshInstance& getMeshInstance ( ) const
pure virtual

◆ getMeshInstance() [2/2]

virtual MeshInstance& getMeshInstance ( )
pure virtual