#include <spheremesh.h>
Public Member Functions | |
SphereMesh (Core &core) | |
virtual bool | init (utility::ErrorState &errorState) override |
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 = 1.0f |
Property: 'Radius' of the sphere. More... | |
uint | mRings = 50 |
Property: 'Rings' number of rings. More... | |
uint | mSectors = 50 |
Property: 'Sectors' number of sectors. More... | |
EMemoryUsage | mUsage = EMemoryUsage::Static |
Property: 'Usage' If the mesh is uploaded once or frequently updated. More... | |
ECullMode | mCullMode = ECullMode::Back |
Property: 'CullMode' controls which triangles are culled, back facing, front facing etc. More... | |
EPolygonMode | mPolygonMode = EPolygonMode::Fill |
Property: 'PolygonMode' Polygon rasterization mode (fill, line, points) More... | |
RGBAColorFloat | mColor = { 1.0f, 1.0f, 1.0f, 1.0f } |
Property: 'Color' the vertex color of the sphere. More... | |
glm::vec3 | mPosition = { 0.0, 0.0, 0.0 } |
Property: 'Position' center of the sphere. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Predefined 3D spherical mesh.
SphereMesh | ( | Core & | core | ) |
|
overridevirtual |
Implements IMesh.
|
overridevirtual |
Implements IMesh.
|
overridevirtual |
Creates the mesh.
errorState | contains the error if the mesh can't be created. |
Reimplemented from Object.
RGBAColorFloat mColor = { 1.0f, 1.0f, 1.0f, 1.0f } |
Property: 'Color' the vertex color of the sphere.
ECullMode mCullMode = ECullMode::Back |
Property: 'CullMode' controls which triangles are culled, back facing, front facing etc.
EPolygonMode mPolygonMode = EPolygonMode::Fill |
Property: 'PolygonMode' Polygon rasterization mode (fill, line, points)
glm::vec3 mPosition = { 0.0, 0.0, 0.0 } |
Property: 'Position' center of the sphere.
float mRadius = 1.0f |
Property: 'Radius' of the sphere.
uint mRings = 50 |
Property: 'Rings' number of rings.
uint mSectors = 50 |
Property: 'Sectors' number of sectors.
EMemoryUsage mUsage = EMemoryUsage::Static |
Property: 'Usage' If the mesh is uploaded once or frequently updated.