galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::graphics::FontContext Class Referencefinal

MSDF OpenGL configuration. More...

#include <FontContext.hpp>

+ Collaboration diagram for galaxy::graphics::FontContext:

Public Member Functions

 FontContext ()
 Constructor.
 
 ~FontContext ()
 Destructor.
 
void set_dpi (const float x, const float y) const
 Set font DPI.
 
msdfgl_context_t context ()
 Get font context object.
 

Private Member Functions

 FontContext (const FontContext &)=delete
 Copy constructor.
 
 FontContext (FontContext &&)=delete
 Move constructor.
 
FontContextoperator= (const FontContext &)=delete
 Copy assignment operator.
 
FontContextoperator= (FontContext &&)=delete
 Move assignment operator.
 

Private Attributes

msdfgl_context_t m_context
 Library context object.
 

Detailed Description

MSDF OpenGL configuration.

Definition at line 25 of file FontContext.hpp.

Constructor & Destructor Documentation

◆ FontContext() [1/3]

galaxy::graphics::FontContext::FontContext ( )

Constructor.

Definition at line 18 of file FontContext.cpp.

+ Here is the call graph for this function:

◆ ~FontContext()

galaxy::graphics::FontContext::~FontContext ( )

Destructor.

Definition at line 37 of file FontContext.cpp.

◆ FontContext() [2/3]

galaxy::graphics::FontContext::FontContext ( const FontContext & )
privatedelete

Copy constructor.

◆ FontContext() [3/3]

galaxy::graphics::FontContext::FontContext ( FontContext && )
privatedelete

Move constructor.

Member Function Documentation

◆ set_dpi()

void galaxy::graphics::FontContext::set_dpi ( const float x,
const float y ) const

Set font DPI.

Parameters
xFont DPI scale for x axis.
yFont DPI scale for y axis.

Definition at line 45 of file FontContext.cpp.

+ Here is the caller graph for this function:

◆ context()

msdfgl_context_t galaxy::graphics::FontContext::context ( )
nodiscard

Get font context object.

Returns
msdfgl_context_t pointer.

Definition at line 50 of file FontContext.cpp.

◆ operator=() [1/2]

FontContext & galaxy::graphics::FontContext::operator= ( const FontContext & )
privatedelete

Copy assignment operator.

◆ operator=() [2/2]

FontContext & galaxy::graphics::FontContext::operator= ( FontContext && )
privatedelete

Move assignment operator.

Member Data Documentation

◆ m_context

msdfgl_context_t galaxy::graphics::FontContext::m_context
private

Library context object.

Definition at line 79 of file FontContext.hpp.


The documentation for this class was generated from the following files: