Base class for rotational (lathe) primitive components like Capsules and Cylinders.
More...
#include <Primitive/CLathe.h>
|
| void | initMesh (CLatheMesh *mesh) |
| | Initialize the render mesh and culling data for the component's entity.
|
|
void | setOwner (CGameObject *obj) |
|
|
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) |
Base class for rotational (lathe) primitive components like Capsules and Cylinders.
◆ createSerializable()
◆ getColor()
| const SColor & Skylicht::CLathe::getColor |
( |
| ) |
|
|
inline |
Get the default material color.
- Returns
- SColor value.
◆ getMaterial()
| CMaterial * Skylicht::CLathe::getMaterial |
( |
| ) |
|
|
inline |
Get the default material.
- Returns
- Pointer to CMaterial.
◆ getMesh()
| CMesh * Skylicht::CLathe::getMesh |
( |
| ) |
|
Get the generated mesh.
- Returns
- Pointer to CMesh.
◆ init()
| virtual void Skylicht::CLathe::init |
( |
| ) |
|
|
pure virtual |
◆ initComponent()
| virtual void Skylicht::CLathe::initComponent |
( |
| ) |
|
|
virtual |
◆ initMesh()
| void Skylicht::CLathe::initMesh |
( |
CLatheMesh * | mesh | ) |
|
|
protected |
Initialize the render mesh and culling data for the component's entity.
- Parameters
-
◆ isShadowCasting()
| bool Skylicht::CLathe::isShadowCasting |
( |
| ) |
|
|
inline |
Check if shadow casting is enabled.
- Returns
- True if enabled.
◆ loadSerializable()
◆ setColor()
| void Skylicht::CLathe::setColor |
( |
const SColor & | color | ) |
|
Set the default material color.
- Parameters
-
◆ setShadowCasting()
| void Skylicht::CLathe::setShadowCasting |
( |
bool | b | ) |
|
Enable or disable shadow casting for this object.
- Parameters
-
◆ updateComponent()
| virtual void Skylicht::CLathe::updateComponent |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following file: