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
FontContext.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_GRAPHICS_TEXT_FONTCONTEXT_HPP_
9#define GALAXY_GRAPHICS_TEXT_FONTCONTEXT_HPP_
10
11#include <msdfgl.h>
12
13#undef ERROR
14#undef DELETE
15#undef OPAQUE
16#undef TRANSPARENT
17
18namespace galaxy
19{
20 namespace graphics
21 {
25 class FontContext final
26 {
27 public:
32
37
44 void set_dpi(const float x, const float y) const;
45
51 [[nodiscard]]
52 msdfgl_context_t context();
53
54 private:
58 FontContext(const FontContext&) = delete;
59
64
69
74
75 private:
79 msdfgl_context_t m_context;
80 };
81 } // namespace graphics
82} // namespace galaxy
83
84#endif
MSDF OpenGL configuration.
msdfgl_context_t m_context
Library context object.
msdfgl_context_t context()
Get font context object.
FontContext(FontContext &&)=delete
Move constructor.
void set_dpi(const float x, const float y) const
Set font DPI.
FontContext & operator=(const FontContext &)=delete
Copy assignment operator.
FontContext(const FontContext &)=delete
Copy constructor.
FontContext & operator=(FontContext &&)=delete
Move assignment operator.
Animated.cpp galaxy.
Definition Animated.cpp:16