CommonLibVR
BSScaleformExternalTexture.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSFixedString.h"
4 #include "RE/N/NiTexture.h"
5 
6 namespace RE
7 {
9  {
10  public:
12  gamebryoTexture{ nullptr },
13  renderTarget(0),
14  pad0C(0)
15  {}
16 
18  {
20  }
21 
26 
27  bool LoadPNG(const BSFixedString& a_path)
28  {
29  using func_t = decltype(&BSScaleformExternalTexture::LoadPNG);
30  static REL::Relocation<func_t> func{ RELOCATION_ID(80298, 82321) };
31  return func(this, a_path);
32  }
33 
35  {
36  using func_t = decltype(&BSScaleformExternalTexture::ReleaseTexture);
37  static REL::Relocation<func_t> func{ RELOCATION_ID(80294, 82317) };
38  return func(this);
39  }
40 
41  bool SetTexture(NiTexture* a_texture)
42  {
43  using func_t = decltype(&BSScaleformExternalTexture::SetTexture);
44  static REL::Relocation<func_t> func{ RELOCATION_ID(80295, 82318) };
45  return func(this, a_texture);
46  }
47 
48  // members
50  std::uint32_t renderTarget; // 08
51  std::uint32_t pad0C; // 0C
53  private:
54  KEEP_FOR_RE()
55  };
56  static_assert(sizeof(BSScaleformExternalTexture) == 0x18);
57 }
#define KEEP_FOR_RE()
Definition: PCH.h:713
#define RELOCATION_ID(SE, AE)
Definition: PCH.h:702
Definition: Relocation.h:210
Definition: BSScaleformExternalTexture.h:9
bool SetTexture(NiTexture *a_texture)
Definition: BSScaleformExternalTexture.h:41
bool LoadPNG(const BSFixedString &a_path)
Definition: BSScaleformExternalTexture.h:27
BSScaleformExternalTexture(const BSScaleformExternalTexture &)=delete
~BSScaleformExternalTexture()
Definition: BSScaleformExternalTexture.h:17
std::uint32_t pad0C
Definition: BSScaleformExternalTexture.h:51
BSScaleformExternalTexture & operator=(BSScaleformExternalTexture &&)=delete
BSScaleformExternalTexture()
Definition: BSScaleformExternalTexture.h:11
BSFixedString filePath
Definition: BSScaleformExternalTexture.h:52
NiPointer< NiTexture > gamebryoTexture
Definition: BSScaleformExternalTexture.h:49
BSScaleformExternalTexture(BSScaleformExternalTexture &&)=delete
BSScaleformExternalTexture & operator=(const BSScaleformExternalTexture &)=delete
void ReleaseTexture()
Definition: BSScaleformExternalTexture.h:34
std::uint32_t renderTarget
Definition: BSScaleformExternalTexture.h:50
Definition: NiSmartPointer.h:9
Definition: NiTexture.h:15
Definition: AbsorbEffect.h:6