Nebula
Loading...
Searching...
No Matches
textrendererbase.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
13#include "core/refcounted.h"
14#include "core/singleton.h"
15#include "util/string.h"
16#include "math/vec4.h"
17#include "math/vec2.h"
18#include "threading/threadid.h"
20
21//------------------------------------------------------------------------------
22namespace Base
23{
54
55//------------------------------------------------------------------------------
58inline bool
60{
61 return this->isOpen;
62}
63
64} // namespace Base
65//------------------------------------------------------------------------------
66
67
68
Base class for text rendering (don't use this for high-quality text rendering).
Definition textrendererbase.h:25
void Close()
close the text renderer
Definition textrendererbase.cc:51
void AddTextElement(const CoreGraphics::TextElement &textElement)
add text element for rendering
Definition textrendererbase.cc:62
bool IsOpen() const
check if text renderer open
Definition textrendererbase.h:59
void AddTextElements(const Util::Array< CoreGraphics::TextElement > &textElement)
add multiple text elements for rendering
Definition textrendererbase.cc:72
TextRendererBase()
constructor
Definition textrendererbase.cc:22
void Open()
open the the text renderer
Definition textrendererbase.cc:41
void DrawTextElements()
draw the accumulated text
Definition textrendererbase.cc:101
void DeleteTextElementsByThreadId(Threading::ThreadId threadId)
delete added text by thread id
Definition textrendererbase.cc:82
virtual ~TextRendererBase()
destructor
Definition textrendererbase.cc:31
__DeclareSingleton(TextRendererBase)
__DeclareClass(TextRendererBase)
bool isOpen
Definition textrendererbase.h:52
Util::Array< CoreGraphics::TextElement > textElements
Definition textrendererbase.h:51
The common base class of Nebula.
Definition refcounted.h:38
Describes a text element for the text renderer.
Definition textelement.h:21
Nebula's dynamic array class.
Definition array.h:60
Definition gamecontentserverbase.cc:10
pthread_t ThreadId
Definition linuxthreadid.h:15