NAP
Public Member Functions | Public Attributes | List of all members
GnomonMesh Class Reference

#include <gnomonmesh.h>

Public Member Functions

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

Public Attributes

float mSize = 1.0f
 Property: 'Size' axis length. More...
 
glm::vec3 mPosition = { 0.0f, 0.0f, 0.0f }
 Property: 'Position' position in object space. More...
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 

Description

Simple 3D Gnomon mesh, used for orientation. x-axis = red, y-axis = green, z-axis = blue. By default the length of every axis is 1 unit.

Inheritance diagram for GnomonMesh:
[legend]
Collaboration diagram for GnomonMesh:
[legend]

Constructor & Destructor Documentation

◆ GnomonMesh()

GnomonMesh ( Core core)

Member Function Documentation

◆ getMeshInstance() [1/2]

virtual const MeshInstance& getMeshInstance ( ) const
overridevirtual
Returns
the mesh instance

Implements IMesh.

◆ getMeshInstance() [2/2]

virtual MeshInstance& getMeshInstance ( )
overridevirtual
Returns
the mesh instance

Implements IMesh.

◆ init()

virtual bool init ( utility::ErrorState errorState)
overridevirtual

Creates the mesh.

Parameters
errorStatecontains the error message when initialization fails.
Returns
if initialization succeeded.

Reimplemented from Object.

Member Data Documentation

◆ mPosition

glm::vec3 mPosition = { 0.0f, 0.0f, 0.0f }

Property: 'Position' position in object space.

◆ mSize

float mSize = 1.0f

Property: 'Size' axis length.