3#include <RendererCore/Components/RenderComponent.h>
4#include <RendererCore/Meshes/MeshResource.h>
5#include <RendererCore/Meshes/SkinnedMeshComponent.h>
52 void SetMaterialFile(
const char* szFile);
53 const char* GetMaterialFile()
const;
59 void SetThickness(
float fThickness);
60 float GetThickness()
const {
return m_fThickness; }
63 void SetDetail(plUInt32 uiDetail);
64 plUInt32 GetDetail()
const {
return m_uiDetail; }
67 void SetSubdivide(
bool bSubdivide);
68 bool GetSubdivide()
const {
return m_bSubdivide; }
71 void SetUScale(
float fUScale);
72 float GetUScale()
const {
return m_fUScale; }
79 void GenerateRenderMesh(plUInt32 uiNumRopePieces);
89 float m_fThickness = 0.05f;
90 plUInt32 m_uiDetail = 6;
91 bool m_bSubdivide =
false;
93 float m_fUScale = 1.0f;
This class encapsulates an array and it's size. It is recommended to use this class instead of plain ...
Definition ArrayPtr.h:37
plColor represents an RGBA color in linear color space. Values are stored as float,...
Definition Color.h:44
static const plColor White
#FFFFFF
Definition Color.h:194
virtual void SerializeComponent(plWorldWriter &inout_stream) const
Override this to save the current state of the component to the given stream.
Definition Component.cpp:54
virtual void DeserializeComponent(plWorldReader &inout_stream)
Override this to load the current state of the component from the given stream.
Definition Component.cpp:58
Definition ComponentManager.h:88
Base class for objects that should be rendered.
Definition RenderComponent.h:9
virtual void OnActivated() override
This method is called when the component gets activated.
Definition RenderComponent.cpp:33
virtual void OnDeactivated() override
This method is called when the component gets deactivated.
Definition RenderComponent.cpp:38
virtual plResult GetLocalBounds(plBoundingBoxSphere &ref_bounds, bool &ref_bAlwaysVisible, plMsgUpdateLocalBounds &ref_msg)=0
Called by plRenderComponent::OnUpdateLocalBounds(). If PL_SUCCESS is returned, bounds and bAlwaysVisi...
Used to render a rope or cable.
Definition RopeRenderComponent.h:22
Reads a world description from a stream. Allows to instantiate that world multiple times in different...
Definition WorldReader.h:47
Stores an entire plWorld in a stream.
Definition WorldWriter.h:13
Used by components that do rope simulation and rendering.
Definition Declarations.h:89
A message to modify the main color of some thing.
Definition SetColorMessage.h:32
This message is used to replace the material on a mesh.
Definition MeshComponentBase.h:49
Definition UpdateLocalBoundsMessage.h:9
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54
Definition SkinnedMeshComponent.h:21