Component for rendering cylinder primitives.
More...
#include <Primitive/CCylinder.h>
|
|
float | m_radius |
|
float | m_height |
|
CMaterial * | m_material |
|
CMaterial * | m_customMaterial |
|
bool | m_shadowCasting |
|
bool | m_useCustomMaterial |
|
bool | m_useNormalMap |
|
std::string | m_materialPath |
|
SColor | m_color |
|
bool | m_needReinit |
|
CGameObject * | m_gameObject |
|
bool | m_enable |
|
bool | m_serializable |
|
std::vector< CComponentSystem * > | m_linkComponent |
|
|
static int | useComponent (CComponentSystem *used) |
| void | initMesh (CLatheMesh *mesh) |
| | Initialize the render mesh and culling data for the component's entity.
|
|
void | setOwner (CGameObject *obj) |
Component for rendering cylinder primitives.
Example
CCylinder* cylinder = cylinderObj->addComponent<CCylinder>();
void setHeight(float h)
Set the cylinder height.
Definition CCylinder.h:52
void setRadius(float r)
Set the cylinder radius.
Definition CCylinder.h:43
void init()
Re-initialize the lathe mesh based on current parameters.
This object class stores information for a GameObject.
Definition CGameObject.h:52
◆ createSerializable()
◆ getHeight()
| float Skylicht::CCylinder::getHeight |
( |
| ) |
|
|
inline |
Get the cylinder height.
- Returns
- Height value.
◆ getRadius()
| float Skylicht::CCylinder::getRadius |
( |
| ) |
|
|
inline |
Get the cylinder radius.
- Returns
- Radius value.
◆ init()
| void Skylicht::CCylinder::init |
( |
| ) |
|
|
virtual |
Re-initialize the lathe mesh based on current parameters.
Implements Skylicht::CLathe.
◆ initComponent()
| virtual void Skylicht::CCylinder::initComponent |
( |
| ) |
|
|
virtual |
◆ loadSerializable()
◆ setHeight()
| void Skylicht::CCylinder::setHeight |
( |
float | h | ) |
|
|
inline |
Set the cylinder height.
- Parameters
-
◆ setRadius()
| void Skylicht::CCylinder::setRadius |
( |
float | r | ) |
|
|
inline |
Set the cylinder radius.
- Parameters
-
◆ updateComponent()
| virtual void Skylicht::CCylinder::updateComponent |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following file: