Nebula
Loading...
Searching...
No Matches
textelement.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12#include "util/string.h"
13#include "math/vec4.h"
14#include "math/vec2.h"
15#include "threading/threadid.h"
16
17//------------------------------------------------------------------------------
18namespace CoreGraphics
19{
21{
22public:
27
31 const Util::String& GetText() const;
33 const Math::vec4& GetColor() const;
35 const Math::vec2& GetPosition() const;
37 const float GetSize() const;
38
39private:
44 float size;
45};
46
47//------------------------------------------------------------------------------
52{
53 return this->threadId;
54}
55
56//------------------------------------------------------------------------------
59inline const Util::String&
61{
62 return this->text;
63}
64
65//------------------------------------------------------------------------------
68inline const Math::vec4&
70{
71 return this->color;
72}
73
74//------------------------------------------------------------------------------
77inline const Math::vec2&
79{
80 return this->pos;
81}
82
83
84//------------------------------------------------------------------------------
87inline const float
89{
90 return this->size;
91}
92
93} // namespace CoreGraphics
94//------------------------------------------------------------------------------
95
96
97
Describes a text element for the text renderer.
Definition textelement.h:21
TextElement()
default constructor
Definition textelement.cc:18
Threading::ThreadId threadId
Definition textelement.h:40
const float GetSize() const
get size
Definition textelement.h:88
const Math::vec4 & GetColor() const
get color
Definition textelement.h:69
const Util::String & GetText() const
get text
Definition textelement.h:60
const Math::vec2 & GetPosition() const
get position
Definition textelement.h:78
Math::vec2 pos
Definition textelement.h:43
Threading::ThreadId GetThreadId() const
get thread id
Definition textelement.h:51
float size
Definition textelement.h:44
Math::vec4 color
Definition textelement.h:42
Util::String text
Definition textelement.h:41
Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
Definition accelerationstructure.h:24
pthread_t ThreadId
Definition linuxthreadid.h:15
A 2-component float vector class.
Definition vec2.h:21
A 4D vector.
Definition vec4.h:24
Nebula's universal string class.
Definition string.h:50