LeviLamina
Loading...
Searching...
No Matches
mce::TextureGroup Class Reference
+ Inheritance diagram for mce::TextureGroup:

Public Types

using LoadResult = ::Bedrock::Threading::Async<void>
 
using TextureMap = ::std::map<::ResourceLocation, ::BedrockTexture>
 
using TextureLoadKey = ::std::pair<::ResourceLocation, ::TextureLoadMode>
 

Public Member Functions

TextureGroupoperator= (TextureGroup const &)
 
 TextureGroup (TextureGroup const &)
 
virtual::mce::TexturePtr getTexture (::ResourceLocation const &resourceLocation, bool const forceReload, ::std::optional< uint > optLoadOrder, ::cg::TextureSetLayerType const textureType)
 
MCAPI TextureGroup (::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions > advancedGraphicsOptions, ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > resourceLoadManager, ::mce::TextureResourceService &textureResourceService)
 
MCAPI TextureGroup (::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions > advancedGraphicsOptions, ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > resourceLoadManager, ::mce::TextureResourceService &textureResourceService, ::std::shared_ptr<::mce::ImageResourceLoader > imageResourceLoader)
 
MCAPI void _loadTextureAsyncUrgentlyIfTouched (::std::pair<::ResourceLocation, ::TextureLoadMode > const &textureLoadKey, ::std::optional<::ResourceLoadType > optionalLoadType)
 
MCAPI void _loadTexturesAsync (::gsl::span<::ResourceLocationPair > locationPairs, ::std::optional<::ResourceLoadType > resourceLoadType)
 
MCAPI void _loadTexturesSync (::gsl::span<::ResourceLocation > locations)
 
MCAPI bool _textureIsQueuedOrBeingLoaded (::std::pair<::ResourceLocation, ::TextureLoadMode > const &textureLoadKey)
 
MCAPI void _unloadBedrockTextureAndCachedImage (::ResourceLocation const &cachedResourceLocation, ::BedrockTexture &bedrockTexture)
 
MCAPI void _unloadFileSystem (::ResourceFileSystem fileSystem)
 
MCAPI void addEmptyTexture (::ResourceLocation const &resourceLocation, int width, int height)
 
MCAPI uint64 estimateMemoryUsage () const
 
MCAPI::BedrockTextureData const * getBedrockTextureData (::ResourceLocation const &resourceLocation) const
 
MCAPI::cg::ImageBuffer * getCachedImage (::ResourceLocation const &resourceLocation) const
 
MCAPI::cg::ImageBuffer * getCachedImageOrLoadAsync (::ResourceLocation const &imageToLoad)
 
MCAPI::cg::ImageBuffer * getCachedImageOrLoadSync (::ResourceLocation const &resourceLocation, bool forceReload)
 
MCAPI bool isLoaded (::ResourceLocation const &resourceLocation, bool ignoreCreation, ::cg::TextureSetLayerType textureType) const
 
MCAPI ::nonstd::expected< void, ::std::error_condition > loadImageSyncAndInsertIntoCache (::ResourceLocation const &resourceLocation, bool splitAsArray)
 
MCAPI ::Bedrock::Threading::Async< void > loadTextureAsync (::ResourceLocation const &resourceLocation, ::TextureLoadMode textureLoadMode, ::std::optional<::ResourceLoadType > resourceLoadType, ::std::optional< uint > optLoadOrder)
 
MCAPI void loadTexturesAsync (::gsl::span<::ResourceLocation > locations, ::std::optional<::ResourceLoadType > resourceLoadType)
 
MCAPI void reloadAllTextures ()
 
MCAPI void reloadImages (::gsl::span<::ResourceLocationPair > imagesToLoadAsync, ::gsl::span<::ResourceLocation > imagesToImmediatelyLoad, ::std::vector<::ResourceLocation > texturesToKeep, ::ImageCacheMode)
 
MCAPI bool shouldLoadPBRResources () const
 
MCAPI void unloadAllTextures ()
 
MCAPI::BedrockTexture & uploadTexture (::ResourceLocation const &resourceLocation, ::cg::ImageBuffer imageBuffer)
 
MCAPI::BedrockTexture & uploadTexture (::ResourceLocation const &resourceLocation, ::gsl::not_null<::std::shared_ptr<::cg::TextureSetDefinition > > textureSetDefinition)
 
MCAPI::BedrockTexture & uploadTexture (::ResourceLocation const &resourceLocation, ::mce::TextureContainer &&textureContainer, ::std::string_view optionalIdentifier)
 
MCAPI void * $ctor (::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions > advancedGraphicsOptions, ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > resourceLoadManager, ::mce::TextureResourceService &textureResourceService)
 
MCAPI void * $ctor (::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions > advancedGraphicsOptions, ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > resourceLoadManager, ::mce::TextureResourceService &textureResourceService, ::std::shared_ptr<::mce::ImageResourceLoader > imageResourceLoader)
 
MCAPI void $dtor ()
 
MCAPI::mce::TexturePtr $getTexture (::ResourceLocation const &resourceLocation, bool const forceReload, ::std::optional< uint > optLoadOrder, ::cg::TextureSetLayerType const textureType)
 

Static Public Member Functions

static MCAPI void ** $vftableForTextureGroupBase ()
 
static MCAPI void ** $vftableForEnableNonOwnerReferences ()
 

Public Attributes

::ll::TypedStorage< 8, 24, ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions > > mAdvancedGraphicsOptions
 
::ll::TypedStorage< 8, 352, ::AsyncCachedTextureLoadermAsyncTextureLoader
 
::ll::TypedStorage< 8, 16, ::std::map<::ResourceLocation, ::BedrockTexture > > mLoadedTextures
 
::ll::TypedStorage< 8, 24, ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > > mResourceLoadManager
 
::ll::TypedStorage< 8, 8, ::mce::TextureResourceService & > mResourceService
 
::ll::TypedStorage< 8, 48, ::cg::ImageBuffer const > mMissingTexture
 
::ll::TypedStorage< 8, 16, ::std::shared_ptr<::mce::ImageResourceLoader > > mImageResourceLoader
 
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::TextureSetHelpers::TextureSetDefinitionLoader::ResourceHelper > > mTextureSetResourceHelper
 
::ll::TypedStorage< 8, 16, ::std::map<::ResourceLocation, ::std::optional< uint > > > mTouchedTextures
 
::ll::TypedStorage< 8, 16, ::ImageBufferResourceManagermImageBufferCache
 
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::mce::LRUCache > > mLRUCache
 
::ll::TypedStorage< 8, 16, ::std::map<::std::pair<::ResourceLocation, ::TextureLoadMode >, ::Bedrock::Threading::SharedAsync< void > > > mLoadQueueResults
 
::ll::TypedStorage< 8, 16, ::Bedrock::Threading::Async< void > > mQueueLoadResultCoroutine
 
::ll::TypedStorage< 8, 16, ::Bedrock::Threading::CountTracker > mPendingLoadTaskCounter
 
::ll::TypedStorage< 8, 8, ::std::atomic< uint64 > > mOutstandingTaskMemory
 
::ll::TypedStorage< 8, 8, ::std::atomic< uint64 > > mOutstandingTaskCount
 

Member Function Documentation

◆ getTexture()

virtual::mce::TexturePtr mce::TextureGroup::getTexture ( ::ResourceLocation const & resourceLocation,
bool const forceReload,
::std::optional< uint > optLoadOrder,
::cg::TextureSetLayerType const textureType )
virtual

Implements mce::TextureGroupBase.

◆ $vftableForTextureGroupBase()

static MCAPI void ** mce::TextureGroup::$vftableForTextureGroupBase ( )
static
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.

◆ $vftableForEnableNonOwnerReferences()

static MCAPI void ** mce::TextureGroup::$vftableForEnableNonOwnerReferences ( )
static
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: