CommonLibSSE NG
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
{
8
class
BSScaleformExternalTexture
9
{
10
public
:
11
BSScaleformExternalTexture
() :
12
gamebryoTexture
{ nullptr },
13
renderTarget
(0),
14
pad0C
(0)
15
{}
16
17
~BSScaleformExternalTexture
()
18
{
19
ReleaseTexture
();
20
}
21
22
BSScaleformExternalTexture
(
const
BSScaleformExternalTexture
&) =
delete
;
23
BSScaleformExternalTexture
(
BSScaleformExternalTexture
&&) =
delete
;
24
BSScaleformExternalTexture
&
operator=
(
const
BSScaleformExternalTexture
&) =
delete
;
25
BSScaleformExternalTexture
&
operator=
(
BSScaleformExternalTexture
&&) =
delete
;
26
27
bool
LoadPNG
(
const
BSFixedString
& a_path)
28
{
29
using
func_t = decltype(&
BSScaleformExternalTexture::LoadPNG
);
30
REL::Relocation<func_t>
func{
RELOCATION_ID
(80298, 82321) };
31
return
func(
this
, a_path);
32
}
33
34
void
ReleaseTexture
()
35
{
36
using
func_t = decltype(&
BSScaleformExternalTexture::ReleaseTexture
);
37
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
REL::Relocation<func_t>
func{
RELOCATION_ID
(80295, 82318) };
45
return
func(
this
, a_texture);
46
}
47
48
// members
49
NiPointer<NiTexture>
gamebryoTexture
;
// 00
50
std::uint32_t
renderTarget
;
// 08
51
std::uint32_t
pad0C
;
// 0C
52
BSFixedString
filePath
;
// 10
53
};
54
static_assert(
sizeof
(
BSScaleformExternalTexture
) == 0x18);
55
}
BSFixedString.h
NiTexture.h
RELOCATION_ID
#define RELOCATION_ID(a_se, a_ae)
Definition:
PCH.h:724
REL::Relocation
Definition:
Relocation.h:204
RE::BSScaleformExternalTexture
Definition:
BSScaleformExternalTexture.h:9
RE::BSScaleformExternalTexture::SetTexture
bool SetTexture(NiTexture *a_texture)
Definition:
BSScaleformExternalTexture.h:41
RE::BSScaleformExternalTexture::LoadPNG
bool LoadPNG(const BSFixedString &a_path)
Definition:
BSScaleformExternalTexture.h:27
RE::BSScaleformExternalTexture::BSScaleformExternalTexture
BSScaleformExternalTexture(const BSScaleformExternalTexture &)=delete
RE::BSScaleformExternalTexture::~BSScaleformExternalTexture
~BSScaleformExternalTexture()
Definition:
BSScaleformExternalTexture.h:17
RE::BSScaleformExternalTexture::pad0C
std::uint32_t pad0C
Definition:
BSScaleformExternalTexture.h:51
RE::BSScaleformExternalTexture::operator=
BSScaleformExternalTexture & operator=(BSScaleformExternalTexture &&)=delete
RE::BSScaleformExternalTexture::BSScaleformExternalTexture
BSScaleformExternalTexture()
Definition:
BSScaleformExternalTexture.h:11
RE::BSScaleformExternalTexture::filePath
BSFixedString filePath
Definition:
BSScaleformExternalTexture.h:52
RE::BSScaleformExternalTexture::gamebryoTexture
NiPointer< NiTexture > gamebryoTexture
Definition:
BSScaleformExternalTexture.h:49
RE::BSScaleformExternalTexture::BSScaleformExternalTexture
BSScaleformExternalTexture(BSScaleformExternalTexture &&)=delete
RE::BSScaleformExternalTexture::operator=
BSScaleformExternalTexture & operator=(const BSScaleformExternalTexture &)=delete
RE::BSScaleformExternalTexture::ReleaseTexture
void ReleaseTexture()
Definition:
BSScaleformExternalTexture.h:34
RE::BSScaleformExternalTexture::renderTarget
std::uint32_t renderTarget
Definition:
BSScaleformExternalTexture.h:50
RE::NiPointer
Definition:
NiSmartPointer.h:9
RE::NiTexture
Definition:
NiTexture.h:15
RE::detail::BSFixedString< char >
RE
Definition:
AbsorbEffect.h:6
CommonLibSSE-NG
include
RE
B
BSScaleformExternalTexture.h
Generated by
1.9.1