LeviLamina
Loading...
Searching...
No Matches
TextureHotReloader.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/renderer/texture/IResourceWatcher.h"
7#include "mc/client/renderer/texture/TextureAtlasStatus.h"
8#include "mc/client/renderer/texture/TextureHotReloaderMode.h"
9#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
10#include "mc/deps/core_graphics/MipMapSupport.h"
11#include "mc/deps/core_graphics/ResourceLoader.h"
12
13// auto generated forward declare list
14// clang-format off
16class TextureAtlas;
22namespace cg { class ImageBuffer; }
23namespace cg { class TextureSetImageContainer; }
24namespace mce { class TextureGroup; }
25namespace mce { struct Image; }
26// clang-format on
27
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::UntypedStorage<8, 16> mUnk9bbd1d;
33 ::ll::UntypedStorage<8, 8> mUnk156b49;
34 ::ll::UntypedStorage<8, 8> mUnk74544c;
35 ::ll::UntypedStorage<8, 64> mUnk2fb49e;
36 ::ll::UntypedStorage<4, 4> mUnke5c57f;
37 // NOLINTEND
38
39public:
40 // prevent constructor by default
41 TextureHotReloader& operator=(TextureHotReloader const&);
42 TextureHotReloader(TextureHotReloader const&);
43 TextureHotReloader();
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual ~TextureHotReloader() /*override*/ = default;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
55 ::std::unique_ptr<::mce::IResourceWatcher<
57 ::std::shared_ptr<::mce::Image>,
61 ::std::vector<uchar>>,
62 ::ImageResourceManager>> imageWatcher,
63 ::TextureHotReloaderMode mode
64 );
65
66 MCNAPI void cacheTextures(::std::shared_ptr<::mce::TextureGroup> textureGroup);
67
68 MCNAPI bool
69 isFileWatched(::ResourceLocation const& resloc, ::IResourceLocationExpander const& resourceLocationExpander);
70
71 MCNAPI void loadCachedTextureData(::std::shared_ptr<::mce::TextureGroup> textureGroup);
72
73 MCNAPI void registerAtlas(
74 ::TextureAtlas& textureAtlas,
75 ::std::shared_ptr<::mce::TextureGroup> textureGroup,
76 ::IResourceLocationExpander const& resourceLocationExpander,
77 ::cg::MipMapSupport const& mipMapSupport,
78 ::std::function<void(::TextureAtlasResourceCallbacks)> textureAtlasTaskEnqueueCallback,
79 ::std::function<void(::TextureAtlasStatus const&)> textureAtlasStatusCallback,
80 ::std::function<void(
81 ::ResourceLocation const&,
82 ::std::shared_ptr<::cg::ImageBuffer>,
83 ::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer>>
84 )> textureAtlasReloadCallback
85 );
86
87 MCNAPI void registerTexture(
88 ::ResourceLocation const& resLoc,
89 ::std::shared_ptr<::mce::TextureGroup> textureGroup,
90 ::IResourceLocationExpander const& resourceLocationExpander,
91 ::std::function<void(::ResourceLocation const&)> textureReloadCallback
92 );
93 // NOLINTEND
94
95public:
96 // constructor thunks
97 // NOLINTBEGIN
98 MCNAPI void* $ctor(
99 ::std::unique_ptr<::mce::IResourceWatcher<
101 ::std::shared_ptr<::mce::Image>,
105 ::std::vector<uchar>>,
106 ::ImageResourceManager>> imageWatcher,
107 ::TextureHotReloaderMode mode
108 );
109 // NOLINTEND
110
111public:
112 // vftables
113 // NOLINTBEGIN
114 MCNAPI static void** $vftable();
115 // NOLINTEND
116};
Definition EnableNonOwnerReferences.h:7
Definition ResourceLocation.h:15
Definition TextureAtlas.h:5
Definition ImageBuffer.h:16
Definition ResourceLoader.h:8
Definition TextureSetImageContainer.h:20
Definition IResourceWatcher.h:8
Definition TextureGroup.h:7
Definition IResourceLocationExpander.h:5
Definition ImageResourceManager.h:5
Definition StbImageLoadPolicy.h:5
Definition StdIoStreamPolicy.h:5
Definition TextureAtlasResourceCallbacks.h:5
Definition TextureHotReloader.h:5
MCAPI void registerAtlas(::TextureAtlas &textureAtlas, ::std::shared_ptr<::mce::TextureGroup > textureGroup, ::IResourceLocationExpander const &resourceLocationExpander, ::cg::MipMapSupport const &mipMapSupport, ::std::function< void(::TextureAtlasResourceCallbacks)> textureAtlasTaskEnqueueCallback, ::std::function< void(::TextureAtlasStatus const &)> textureAtlasStatusCallback, ::std::function< void(::ResourceLocation const &, ::std::shared_ptr<::cg::ImageBuffer >, ::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer > >)> textureAtlasReloadCallback)
MCAPI void loadCachedTextureData(::std::shared_ptr<::mce::TextureGroup > textureGroup)
MCAPI bool isFileWatched(::ResourceLocation const &resloc, ::IResourceLocationExpander const &resourceLocationExpander)
MCAPI TextureHotReloader(::std::unique_ptr<::mce::IResourceWatcher< ::cg::ResourceLoader< ::std::shared_ptr<::mce::Image >, ::ResourceLocation, ::StdIoStreamPolicy, ::StbImageLoadPolicy, ::std::vector< uchar > >, ::ImageResourceManager > > imageWatcher, ::TextureHotReloaderMode mode)
MCAPI void registerTexture(::ResourceLocation const &resLoc, ::std::shared_ptr<::mce::TextureGroup > textureGroup, ::IResourceLocationExpander const &resourceLocationExpander, ::std::function< void(::ResourceLocation const &)> textureReloadCallback)
MCAPI void * $ctor(::std::unique_ptr<::mce::IResourceWatcher< ::cg::ResourceLoader< ::std::shared_ptr<::mce::Image >, ::ResourceLocation, ::StdIoStreamPolicy, ::StbImageLoadPolicy, ::std::vector< uchar > >, ::ImageResourceManager > > imageWatcher, ::TextureHotReloaderMode mode)
MCAPI void cacheTextures(::std::shared_ptr<::mce::TextureGroup > textureGroup)
static MCAPI void ** $vftable()
Definition Image.h:12