CommonLibSSE NG
Loading...
Searching...
No Matches
GFxLoader.h
Go to the documentation of this file.
1#pragma once
2
5#include "RE/G/GFxStateBag.h"
6#include "RE/G/GPtr.h"
7
8namespace RE
9{
10 class GFxFileOpenerBase;
11 class GFxJpegSupportBase;
12 class GFxZlibSupportBase;
13 class GFxLoaderImpl;
14 class GFxMovieDef;
15 class GFxMovieInfo;
16 class GFxResourceLib;
17
18 class GFxLoader : public GFxStateBag
19 {
20 public:
21 enum LoadConstants : std::uint32_t
22 {
26 kLoadOrdered = 1 << 4,
28 kLoadOnThread = 1 << 6,
30 kLoadImageFiles = 1 << 16,
31 kLoadDisableSWF = 1 << 19,
33 kLoadQuietOpen = 1 << 21,
34 kLoadDebugHeap = 1 << 28
35 };
36
38 {
39 std::uint32_t defLoadFlags;
43 };
44
45 // override (GFxStateBag)
46 GFxStateBag* GetStateBagImpl() const override; // 00
47
48 ~GFxLoader() override; // 01
49
50 // add
51 [[nodiscard]] virtual bool CheckTagLoader(std::int32_t a_tagType) const; // 05
52
53 GFxMovieDef* CreateMovie(const char* a_filename, LoadConstants a_loadConstants = LoadConstants::kLoadAll, UPInt a_memoryArena = 0);
54 [[nodiscard]] GFxLoaderImpl* GetLoaderImpl() const;
55
56 // members
59 std::uint32_t defLoadFlags; // 18
60 std::uint32_t pad1C; // 1C
61 };
62 static_assert(sizeof(GFxLoader) == 0x20);
63}
Definition GFxLoader.h:19
GPtr< GFxResourceLib > strongResourceLib
Definition GFxLoader.h:58
GFxStateBag * GetStateBagImpl() const override
~GFxLoader() override
virtual bool CheckTagLoader(std::int32_t a_tagType) const
LoadConstants
Definition GFxLoader.h:22
@ kLoadAll
Definition GFxLoader.h:23
@ kLoadOnThread
Definition GFxLoader.h:28
@ kLoadDebugHeap
Definition GFxLoader.h:34
@ kLoadWaitCompletion
Definition GFxLoader.h:24
@ kLoadThreadedBinding
Definition GFxLoader.h:27
@ kLoadKeepBindData
Definition GFxLoader.h:29
@ kLoadImageFiles
Definition GFxLoader.h:30
@ kLoadQuietOpen
Definition GFxLoader.h:33
@ kLoadDisableImports
Definition GFxLoader.h:32
@ kLoadOrdered
Definition GFxLoader.h:26
@ kLoadDisableSWF
Definition GFxLoader.h:31
@ kLoadWaitFrame1
Definition GFxLoader.h:25
std::uint32_t defLoadFlags
Definition GFxLoader.h:59
GFxLoaderImpl * GetLoaderImpl() const
GPtr< GFxLoaderImpl > impl
Definition GFxLoader.h:57
std::uint32_t pad1C
Definition GFxLoader.h:60
GFxMovieDef * CreateMovie(const char *a_filename, LoadConstants a_loadConstants=LoadConstants::kLoadAll, UPInt a_memoryArena=0)
Definition GFxLoaderImpl.h:16
Definition GFxMovieDef.h:21
Definition GFxStateBag.h:11
Definition GPtr.h:7
Definition AbsorbEffect.h:6
std::size_t UPInt
Definition SFTypes.h:5
Definition GFxLoader.h:38
GPtr< GFxZlibSupportBase > zLibSupport
Definition GFxLoader.h:41
GPtr< GFxJpegSupportBase > jpegSupport
Definition GFxLoader.h:42
GPtr< GFxFileOpenerBase > fileOpener
Definition GFxLoader.h:40
std::uint32_t defLoadFlags
Definition GFxLoader.h:39