3#include <RendererCore/RendererCoreDLL.h>
5#include <Core/Messages/EventMessage.h>
6#include <RendererCore/Components/RenderComponent.h>
7#include <RendererCore/Material/MaterialResource.h>
8#include <RendererCore/Meshes/MeshResource.h>
52 void SetTargetObject(
const char* szReference);
55 void SetWidth(
float fWidth);
56 float GetWidth()
const;
59 void SetUVUnitsPerWorldUnit(
float fUVUnitsPerWorldUnit);
60 float GetUVUnitsPerWorldUnit()
const;
63 void SetMaterialFile(
const char* szFile);
64 const char* GetMaterialFile()
const;
79 float m_fWidth = 0.1f;
80 float m_fUVUnitsPerWorldUnit = 1.0f;
84 const float m_fDistanceUpdateEpsilon = 0.02f;
96 const char* DummyGetter()
const {
return nullptr; }
Renders a thick line from its own location to the position of another game object.
Definition BeamComponent.h:23
plGameObjectHandle m_hTargetObject
The object to which to draw the beam.
Definition BeamComponent.h:69
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
Simple component manager implementation that calls an update method on all components every frame.
Definition ComponentManager.h:142
Provides functions to generate standard geometric shapes, such as boxes, spheres, cylinders,...
Definition Geometry.h:17
Definition MeshResourceDescriptor.h:9
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...
static plVec3Template< float > MakeZero()
Definition Vec3.h:38
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
A handle to a game object.
Definition Declarations.h:76
Definition UpdateLocalBoundsMessage.h:9
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54