#include <torusmesh.h>
Public Member Functions | |
TorusMesh (nap::Core &core) | |
virtual bool | init (utility::ErrorState &errorState) override |
bool | setup (utility::ErrorState &errorState) |
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 | |
float | mRadius = 0.75f |
Property: 'Radius' torus radius. More... | |
float | mTubeRadius = 0.25f |
Property: 'Height' tube segment radius. More... | |
uint | mSegments = 64 |
Property: 'Segments' number of segments. More... | |
uint | mTubeSegments = 64 |
Property: 'TubeSegments' number of tubular segments. More... | |
float | mAngleOffset = 0.0f |
Property: 'AngleOffset' the angle offset in degrees. More... | |
EMemoryUsage | mUsage = EMemoryUsage::Static |
Property: 'Usage' If the mesh is uploaded once or frequently updated. More... | |
EPolygonMode | mPolygonMode = EPolygonMode::Fill |
Property: 'PolygonMode' the polygon mode. More... | |
ECullMode | mCullMode = ECullMode::Back |
Property: 'CullMode' the cull mode. More... | |
RGBAColorFloat | mColor = { 1.0f, 1.0f, 1.0f, 1.0f } |
Property: 'Color' Vertex color. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Protected Attributes | |
RenderService * | mRenderService = nullptr |
std::unique_ptr< MeshInstance > | mMeshInstance = nullptr |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Predefined torus mesh with additional normal, uv and color vertex attributes.
|
overridevirtual |
Implements IMesh.
|
overridevirtual |
Implements IMesh.
|
overridevirtual |
Creates and initializes the mesh on the GPU.
errorState | contains the error if initialization fails. |
Reimplemented from Object.
bool setup | ( | utility::ErrorState & | errorState | ) |
Creates the torus without GPU representation.
errorState | contains the error if initialization fails. |
float mAngleOffset = 0.0f |
Property: 'AngleOffset' the angle offset in degrees.
RGBAColorFloat mColor = { 1.0f, 1.0f, 1.0f, 1.0f } |
Property: 'Color' Vertex color.
ECullMode mCullMode = ECullMode::Back |
Property: 'CullMode' the cull mode.
|
protected |
EPolygonMode mPolygonMode = EPolygonMode::Fill |
Property: 'PolygonMode' the polygon mode.
float mRadius = 0.75f |
Property: 'Radius' torus radius.
|
protected |
uint mSegments = 64 |
Property: 'Segments' number of segments.
float mTubeRadius = 0.25f |
Property: 'Height' tube segment radius.
uint mTubeSegments = 64 |
Property: 'TubeSegments' number of tubular segments.
EMemoryUsage mUsage = EMemoryUsage::Static |
Property: 'Usage' If the mesh is uploaded once or frequently updated.