3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/Font.h"
7#include "mc/client/gui/FontHandle.h"
8#include "mc/deps/core/file/PathBuffer.h"
9#include "mc/deps/core/utility/NonOwnerPointer.h"
10#include "mc/deps/minecraft_renderer/renderer/Type.h"
16namespace Core {
class Path; }
17namespace mce {
class Color; }
34 ::ll::TypedStorage<8, 80, ::FontHandle> mFontHandle;
35 ::ll::TypedStorage<8, 32, ::std::string> mLanguageCode;
36 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<int, int>>> mIncludedUnicodeRanges;
37 ::ll::TypedStorage<4, 4, float> mFontScale;
44 ::ll::TypedStorage<8, 24, ::std::vector<::FontAlias::ReferenceData>> mFontReferences;
45 ::ll::TypedStorage<8, 32, ::std::string> mCurrentLanguageCode;
46 ::ll::TypedStorage<1, 1, bool> mAllReferencesMaterialsCanBeOverridden;
47 ::ll::TypedStorage<1, 1, bool> mAllReferencesScreenPixelAligned;
48 ::ll::TypedStorage<1, 1, bool> mAllReferencesSupportShadowInSingleDraw;
49 ::ll::TypedStorage<4, 4, float> mMaxWrapHeight;
50 ::ll::TypedStorage<4, 4, float> mMaxScalar;
56 virtual ~FontAlias() =
default;
58 virtual float _getCharWidth(
int uniChar,
bool forceUnicode) ;
60 virtual bool supportsChar(
int const& character) ;
62 virtual float getWrapHeight() const ;
64 virtual
float getScaleFactor() const ;
66 virtual
float getScaleFactor(
int uniChar) const ;
68 virtual
bool isScreenPixelAligned() const ;
70 virtual
bool materialCanBeOverridden() const ;
72 virtual
void setTextConstantsInScreenContext(
73 ::ScreenContext& screenContext,
76 ::mce::Color const& textColor,
80 virtual
void uploadTextureToGPU() ;
82 virtual ::ResourceLocation _getFontSheetLocation(
int sheet,
bool forceUnicode) const ;
84 virtual ::mce::MaterialPtr const& getMaterial(
int sheet,
bool isOddGuiScale) const ;
86 virtual ::mce::Font::Type getType(
int glyphSheet) const ;
88 virtual ::std::optional<::mce::Font::RenderingParameters> tryGetRenderingParameters(
89 ::ScreenContext const& screenContext,
92 ::mce::Color const& textColor,
99 virtual
void loadFontData(
bool uploadTextureImmediately) ;
101 virtual
bool _supportsShadowInSingleDraw() ;
103 virtual
void onLanguageChanged(::std::string_view languageCode) ;
105 virtual
void _scanUnicodeCharacterSize(
int character,
int sheet,
bool forceUnicode) ;
107 virtual
float buildChar(
110 ::mce::Color const& color,
117 virtual ::std::
string _remapString(::std::string_view str) const ;
119 virtual
void switchFontsource(::Core::Path const& asciiName, ::Core::Path const& unicodeName) ;
121 virtual ::std::pair<::Core::PathBuffer<::std::
string> const&, ::Core::PathBuffer<::std::
string> const&>
122 getFontSources() const ;
154 ::mce::Color const& textColor,
162 MCNAPI ::mce::MaterialPtr const&
$getMaterial(
int sheet,
bool isOddGuiScale) const;
164 MCNAPI ::mce::Font::Type
$getType(
int glyphSheet) const;
170 ::mce::Color const& textColor,
188 ::mce::Color const& color,
199 MCNAPI ::
std::pair<::Core::PathBuffer<::
std::
string> const&, ::Core::PathBuffer<::
std::
string> const&>
MCAPI ::Bedrock::NotNullNonOwnerPtr<::FontHandle const > getFontReferenceForSheet(int const &sheet) const
MCAPI float $buildChar(::std::vector<::Font::GlyphQuad > &quads, int i, ::mce::Color const &color, bool italic, float x, float y, bool unicode)
MCAPI void $uploadTextureToGPU()
MCAPI float $_getCharWidth(int uniChar, bool forceUnicode)
MCAPI void $switchFontsource(::Core::Path const &asciiName, ::Core::Path const &unicodeName)
MCAPI ::Bedrock::NotNullNonOwnerPtr<::FontHandle const > getFontReferenceForUnicode(int const &character) const
MCAPI::std::string $_remapString(::std::string_view str) const
MCAPI void $_scanUnicodeCharacterSize(int character, int sheet, bool forceUnicode)
MCAPI::mce::MaterialPtr const & $getMaterial(int sheet, bool isOddGuiScale) const
MCAPI float $getWrapHeight() const
MCAPI void $loadFontData(bool uploadTextureImmediately)
MCAPI ::std::optional<::mce::Font::RenderingParameters > $tryGetRenderingParameters(::ScreenContext const &screenContext, int glyphSheet, float guiScale, ::mce::Color const &textColor, bool hasShadow, uint textureWidth, uint textureHeight, bool isUnicode) const
MCAPI ::std::pair<::Core::PathBuffer<::std::string > const &, ::Core::PathBuffer<::std::string > const & > $getFontSources() const
MCAPI void $onLanguageChanged(::std::string_view languageCode)
MCAPI::ResourceLocation $_getFontSheetLocation(int sheet, bool forceUnicode) const
MCAPI bool $supportsChar(int const &character)
MCAPI float $getScaleFactor() const
MCAPI void $setTextConstantsInScreenContext(::ScreenContext &screenContext, int glyphSheet, float guiScale, ::mce::Color const &textColor, bool hasShadow) const
MCAPI bool $materialCanBeOverridden() const
MCAPI::mce::Font::Type $getType(int glyphSheet) const
MCAPI bool $isScreenPixelAligned() const
MCAPI bool $_supportsShadowInSingleDraw()
Definition FontHandle.h:5
Definition ResourceLocation.h:15
Definition ScreenContext.h:5
Definition MaterialPtr.h:14
Definition FontAlias.h:13
Definition RenderingParameters.h:7