#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 |
![]() | |
Resource () | |
![]() | |
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 bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
![]() | |
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 |