#include <trianglemesh.h>
Public Member Functions | |
| TriangleMesh (Core &core) | |
| virtual bool | init (utility::ErrorState &errorState) override |
| bool | setup (utility::ErrorState &error) |
| virtual MeshInstance & | getMeshInstance () override |
| virtual const MeshInstance & | getMeshInstance () const override |
Public Member Functions inherited from Resource | |
| Resource () | |
Public Member Functions inherited from Object | |
| Object () | |
| virtual | ~Object () |
| virtual void | onDestroy () |
| Object (Object &)=delete | |
| Object & | operator= (const Object &)=delete |
| Object (Object &&)=delete | |
| Object & | operator= (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... | |
Predefined rectangular mesh with a specific size centered at the origin on the xy axis. When there is no size given the mesh is a uniform 1m2. The UV coordinates are always 0-1 By default the plane has 1 row and 1 column
| TriangleMesh | ( | Core & | core | ) |
|
overridevirtual |
Implements IMesh.
|
overridevirtual |
Implements IMesh.
|
overridevirtual |
Sets up and initializes the plane as a mesh based on the provided parameters.
| errorState | contains the error message if the mesh could not be created. |
Reimplemented from Object.
| bool setup | ( | utility::ErrorState & | error | ) |
Creates and prepares the mesh instance but doesn't initialize it. Call this when you want to prepare a grid without creating the GPU representation. You have to manually call init() on the mesh instance afterwards.
| error | contains the error code if setup fails |