Plasma Engine  2.0
Loading...
Searching...
No Matches
DebugTextComponent.h
1#pragma once
2
3#include <Core/World/World.h>
4#include <RendererCore/RendererCoreDLL.h>
5
7
9
11class PL_RENDERERCORE_DLL plDebugTextComponent : public plComponent
12{
14
16 // plComponent
17public:
18 virtual void SerializeComponent(plWorldWriter& inout_stream) const override;
19 virtual void DeserializeComponent(plWorldReader& inout_stream) override;
20
22 // plDebugTextComponent
23public:
26
27 plString m_sText; // [ property ]
28 plColorGammaUB m_Color; // [ property ]
29
30 float m_fValue0 = 0.0f; // [ property ]
31 float m_fValue1 = 0.0f; // [ property ]
32 float m_fValue2 = 0.0f; // [ property ]
33 float m_fValue3 = 0.0f; // [ property ]
34
35protected:
36 void OnMsgExtractRenderData(plMsgExtractRenderData& msg) const; // [ msg handler ]
37};
A 8bit per channel unsigned normalized (values interpreted as 0-1) color storage format that represen...
Definition Color8UNorm.h:99
Base class of all component types.
Definition Component.h:25
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
This component prints debug text at the owner object's position.
Definition DebugTextComponent.h:12
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
Definition RenderData.h:116