Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
TextureAtlas Class Reference
Inheritance diagram for TextureAtlas:

Public Types

enum class  PaddingMode : int
enum class  PaddingMode : int
using SourceImageBuffers = ::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer>
using TextureAtlasTiles = ::std::vector<::TextureAtlasTile>
using StatusCallback = ::std::function<void(::TextureAtlasStatus const&)>
using ImageAtlasFinishedCallback = ::std::function<void()> const
using RuntimeImageGenerators = ::std::vector<::std::weak_ptr<::RuntimeImageGeneratorInfo>>
using SourceImagesSignature = void(::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer> const&)

Public Member Functions

MCAPI TextureAtlas (::ResourceLocation const &metaFile, ::Bedrock::NonOwnerPointer<::mce::framebuilder::PBRTextureDataManager > pbrTextureDataManager, ::TextureAtlas::PaddingMode paddingMode)
MCAPI void _addElementCollection (::ResourcePackManager &resourcePackManager, ::std::shared_ptr<::mce::TextureGroup > textureGroup, ::Json::Value const &texture, ::ParsedAtlasNode &newNode, int atIndex, float mipFadeAmount, ::mce::Color const &mipFadeColor, bool isAdditive)
MCAPI::TextureAtlasResourceCallbacks _createAtlas (::Json::Value const &root, ::std::function< void(::TextureAtlasStatus const &)> statusCallback, ::std::function< void()> const imageAtlasFinishedCallback, ::std::shared_ptr<::mce::TextureGroup > textureGroup, ::cg::MipMapSupport const mipMapSupport, ::ResourcePackManager &resourcePackManager, ::std::shared_ptr<::cg::ImageBuffer > outCopyOfFinalImage, ::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer > > outCopyOfSourceImages)
MCAPI::TextureAtlasResourceCallbacks createAtlasFromJson (::Json::Value const &json, ::ResourcePackManager &resourcePackManager, ::std::function< void(::TextureAtlasStatus const &)> statusCallback, ::std::function< void()> imageAtlasFinishedCallback, ::std::shared_ptr<::mce::TextureGroup > textureGroup, ::cg::MipMapSupport mipMapSupport, ::std::shared_ptr<::cg::ImageBuffer > outCopyOfFinalImage, ::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer > > outCopyOfSourceImages)
MCAPI::TextureAtlasResourceCallbacks createAtlasFromList (::std::string const &atlasName, ::std::vector<::std::string > const &textures, ::ResourcePackManager &resourcePackManager, ::std::function< void(::TextureAtlasStatus const &)> statusCallback, ::std::function< void()> imageAtlasFinishedCallback, ::std::shared_ptr<::mce::TextureGroup > textureGroup, ::cg::MipMapSupport mipMapSupport, ::std::shared_ptr<::cg::ImageBuffer > outCopyOfFinalImage, ::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer > > outCopyOfSourceImages)
MCAPI::ResourceLocation const & getPathFromName (::std::string const &name) const
MCAPI::TextureAtlasResourceCallbacks loadMetaFile (::ResourcePackManager &resourcePackManager, ::std::function< void(::TextureAtlasStatus const &)> statusCallback, ::std::function< void()> imageAtlasFinishedCallback, ::std::shared_ptr<::mce::TextureGroup > textureGroup, ::cg::MipMapSupport mipMapSupport, ::std::shared_ptr<::cg::ImageBuffer > outCopyOfFinalImage, ::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer > > outCopyOfSourceImages)
MCAPI::TextureAtlasResourceCallbacks recreateAtlas (::std::shared_ptr<::mce::TextureGroup > textureGroup, ::std::function< void(::TextureAtlasStatus const &)> statusCallback, ::std::function< void()> imageAtlasFinishedCallback, ::cg::MipMapSupport mipMapSupport, ::std::shared_ptr<::cg::ImageBuffer > outCopyOfFinalImage, ::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer > > outCopyOfSourceImages)
MCAPI void * $ctor (::ResourceLocation const &metaFile, ::Bedrock::NonOwnerPointer<::mce::framebuilder::PBRTextureDataManager > pbrTextureDataManager, ::TextureAtlas::PaddingMode paddingMode)
MCFOLD void $dtor ()

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 16, ::std::shared_ptr<::AtlasItemManager > > mAtlasItemManager
::ll::TypedStorage< 8, 240, ::ParsedAtlasData > mParsedAtlasData
::ll::TypedStorage< 4, 4, ::AtlasParameters > mAtlasParameters
::ll::TypedStorage< 8, 16, ::std::set<::ResourceLocation > > mResources
::ll::TypedStorage< 8, 64, ::ImageResourceManager > mResourceManager
::ll::TypedStorage< 8, 24, ::std::vector<::mce::FileWatcherHandle > > mFileWatcherHandle
::ll::TypedStorage< 8, 24, ::std::vector<::std::weak_ptr<::RuntimeImageGeneratorInfo > > > mRuntimeImageGenerators
::ll::TypedStorage< 4, 4, ::TextureAtlas::PaddingMode > mPaddingMode
::ll::TypedStorage< 8, 96, ::cg::TextureAtlas > mTextureAtlas
::ll::TypedStorage< 8, 24, ::Bedrock::NonOwnerPointer<::mce::framebuilder::PBRTextureDataManager > > mPBRTextureDataManager
::std::shared_ptr<::Bedrock::EnableNonOwnerReferences::ControlBlock > mControlBlock

Constructor & Destructor Documentation

◆ TextureAtlas()

MCAPI TextureAtlas::TextureAtlas ( ::ResourceLocation const & metaFile,
::Bedrock::NonOwnerPointer<::mce::framebuilder::PBRTextureDataManager > pbrTextureDataManager,
::TextureAtlas::PaddingMode paddingMode )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ _addElementCollection()

MCAPI void TextureAtlas::_addElementCollection ( ::ResourcePackManager & resourcePackManager,
::std::shared_ptr<::mce::TextureGroup > textureGroup,
::Json::Value const & texture,
::ParsedAtlasNode & newNode,
int atIndex,
float mipFadeAmount,
::mce::Color const & mipFadeColor,
bool isAdditive )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ createAtlasFromJson()

MCAPI::TextureAtlasResourceCallbacks TextureAtlas::createAtlasFromJson ( ::Json::Value const & json,
::ResourcePackManager & resourcePackManager,
::std::function< void(::TextureAtlasStatus const &)> statusCallback,
::std::function< void()> imageAtlasFinishedCallback,
::std::shared_ptr<::mce::TextureGroup > textureGroup,
::cg::MipMapSupport mipMapSupport,
::std::shared_ptr<::cg::ImageBuffer > outCopyOfFinalImage,
::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer > > outCopyOfSourceImages )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ createAtlasFromList()

MCAPI::TextureAtlasResourceCallbacks TextureAtlas::createAtlasFromList ( ::std::string const & atlasName,
::std::vector<::std::string > const & textures,
::ResourcePackManager & resourcePackManager,
::std::function< void(::TextureAtlasStatus const &)> statusCallback,
::std::function< void()> imageAtlasFinishedCallback,
::std::shared_ptr<::mce::TextureGroup > textureGroup,
::cg::MipMapSupport mipMapSupport,
::std::shared_ptr<::cg::ImageBuffer > outCopyOfFinalImage,
::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer > > outCopyOfSourceImages )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getPathFromName()

MCAPI::ResourceLocation const & TextureAtlas::getPathFromName ( ::std::string const & name) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ loadMetaFile()

MCAPI::TextureAtlasResourceCallbacks TextureAtlas::loadMetaFile ( ::ResourcePackManager & resourcePackManager,
::std::function< void(::TextureAtlasStatus const &)> statusCallback,
::std::function< void()> imageAtlasFinishedCallback,
::std::shared_ptr<::mce::TextureGroup > textureGroup,
::cg::MipMapSupport mipMapSupport,
::std::shared_ptr<::cg::ImageBuffer > outCopyOfFinalImage,
::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer > > outCopyOfSourceImages )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ recreateAtlas()

MCAPI::TextureAtlasResourceCallbacks TextureAtlas::recreateAtlas ( ::std::shared_ptr<::mce::TextureGroup > textureGroup,
::std::function< void(::TextureAtlasStatus const &)> statusCallback,
::std::function< void()> imageAtlasFinishedCallback,
::cg::MipMapSupport mipMapSupport,
::std::shared_ptr<::cg::ImageBuffer > outCopyOfFinalImage,
::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer > > outCopyOfSourceImages )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * TextureAtlas::$ctor ( ::ResourceLocation const & metaFile,
::Bedrock::NonOwnerPointer<::mce::framebuilder::PBRTextureDataManager > pbrTextureDataManager,
::TextureAtlas::PaddingMode paddingMode )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

MCAPI void ** Bedrock::EnableNonOwnerReferences::$vftable ( )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

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