CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::TextGraphicsCommand Struct Referencefinal

#include <CeresEngine/Graphics/GraphicsCommandBuffer.hpp>

Public Member Functions

 TextGraphicsCommand ()=default
 
 TextGraphicsCommand (const TextGraphicsCommand &)=default
 
TextGraphicsCommandoperator= (const TextGraphicsCommand &)=default
 
 TextGraphicsCommand (TextGraphicsCommand &&) noexcept=default
 
TextGraphicsCommandoperator= (TextGraphicsCommand &&) noexcept=default
 
 ~TextGraphicsCommand ()=default
 
template<typename Allocator >
 TextGraphicsCommand (std::allocator_arg_t, const Allocator &allocator)
 
 TextGraphicsCommand (AnyAllocatorReference allocator)
 
template<typename Allocator >
 TextGraphicsCommand (std::allocator_arg_t, const Allocator &allocator, const TextGraphicsCommand &other)
 
 TextGraphicsCommand (const TextGraphicsCommand &other, AnyAllocatorReference allocator)
 

Public Attributes

FontPtr font
 The font to draw the text with.
 
TexturePtr texture
 A texture that contains the laidout text glyphs.
 
Vector< TextLayout, AnyAllocatorlayout {gDefaultAllocator()}
 A copy of the current text layout.
 
Vector2 offset
 The offset to start rendering the text at.
 
Color tintColor
 The color to render the text with.
 

Constructor & Destructor Documentation

◆ TextGraphicsCommand() [1/7]

CeresEngine::TextGraphicsCommand::TextGraphicsCommand ( )
default

◆ TextGraphicsCommand() [2/7]

CeresEngine::TextGraphicsCommand::TextGraphicsCommand ( const TextGraphicsCommand )
default

◆ TextGraphicsCommand() [3/7]

CeresEngine::TextGraphicsCommand::TextGraphicsCommand ( TextGraphicsCommand &&  )
defaultnoexcept

◆ ~TextGraphicsCommand()

CeresEngine::TextGraphicsCommand::~TextGraphicsCommand ( )
default

◆ TextGraphicsCommand() [4/7]

template<typename Allocator >
CeresEngine::TextGraphicsCommand::TextGraphicsCommand ( std::allocator_arg_t  ,
const Allocator &  allocator 
)
inlineexplicit

◆ TextGraphicsCommand() [5/7]

CeresEngine::TextGraphicsCommand::TextGraphicsCommand ( AnyAllocatorReference  allocator)
inlineexplicit

◆ TextGraphicsCommand() [6/7]

template<typename Allocator >
CeresEngine::TextGraphicsCommand::TextGraphicsCommand ( std::allocator_arg_t  ,
const Allocator &  allocator,
const TextGraphicsCommand other 
)
inlineexplicit

◆ TextGraphicsCommand() [7/7]

CeresEngine::TextGraphicsCommand::TextGraphicsCommand ( const TextGraphicsCommand other,
AnyAllocatorReference  allocator 
)
inlineexplicit

Member Function Documentation

◆ operator=() [1/2]

TextGraphicsCommand & CeresEngine::TextGraphicsCommand::operator= ( const TextGraphicsCommand )
default

◆ operator=() [2/2]

TextGraphicsCommand & CeresEngine::TextGraphicsCommand::operator= ( TextGraphicsCommand &&  )
defaultnoexcept

Member Data Documentation

◆ font

FontPtr CeresEngine::TextGraphicsCommand::font

The font to draw the text with.

◆ layout

Vector<TextLayout, AnyAllocator> CeresEngine::TextGraphicsCommand::layout {gDefaultAllocator()}

A copy of the current text layout.

◆ offset

Vector2 CeresEngine::TextGraphicsCommand::offset

The offset to start rendering the text at.

Relative to the View origin.

◆ texture

TexturePtr CeresEngine::TextGraphicsCommand::texture

A texture that contains the laidout text glyphs.

◆ tintColor

Color CeresEngine::TextGraphicsCommand::tintColor

The color to render the text with.


The documentation for this struct was generated from the following file: