LeviLamina
Loading...
Searching...
No Matches
AbstractTextureAccessor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core_graphics/TextureSetLayerType.h"
7
8// auto generated forward declare list
9// clang-format off
12namespace cg { class ImageBuffer; }
13namespace mce { struct TextureDescription; }
14// clang-format on
15
17public:
18 // virtual functions
19 // NOLINTBEGIN
20 virtual ~AbstractTextureAccessor() = default;
21
22 virtual ::cg::ImageBuffer*
23 insertImageIntoCache(::ResourceLocation const& resourceLocation, ::cg::ImageBuffer&& imageBuffer) = 0;
24
25 virtual ::cg::ImageBuffer*
26 getCachedImageOrLoadSync(::ResourceLocation const& resourceLocation, bool const forceReload) = 0;
27
28 virtual ::cg::ImageBuffer* getCachedImage(::ResourceLocation const& resourceLocation) const = 0;
29
30 virtual void setTextureMetadata(
31 ::ResourceLocation const& resourceLocation,
32 ::mce::TextureDescription const& textureDescription
33 ) = 0;
34
35 virtual ::BedrockTextureData const* getBedrockTextureData(::ResourceLocation const& resourceLocation) const = 0;
36
37 virtual bool isLoaded(
38 ::ResourceLocation const& resourceLocation,
39 bool ignoreCreation,
40 ::cg::TextureSetLayerType const textureType
41 ) const = 0;
42
43 virtual ::cg::ImageBuffer const& getMissingImageBuffer() const = 0;
44 // NOLINTEND
45
46public:
47 // virtual function thunks
48 // NOLINTBEGIN
49
50 // NOLINTEND
51};
Definition AbstractTextureAccessor.h:5
Definition ResourceLocation.h:15
Definition ImageBuffer.h:16
Definition BedrockTextureData.h:5
Definition TextureDescription.h:7