terraria-cpp2il-methodrecon
v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
Texture.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Runtime.InteropServices
;
3
using
System.Threading
;
4
5
namespace
Microsoft.Xna.Framework.Graphics
6
{
7
// Token: 0x020003A9 RID: 937
8
public
abstract
class
Texture
:
GraphicsResource
9
{
10
// Token: 0x1700034B RID: 843
11
// (get) Token: 0x06001908 RID: 6408 RVA: 0x0006A43C File Offset: 0x0006863C
12
internal
int
SortingKey
13
{
14
get
15
{
16
return
this.
_sortingKey
;
17
}
18
}
19
20
// Token: 0x1700034C RID: 844
21
// (get) Token: 0x06001909 RID: 6409 RVA: 0x0006A450 File Offset: 0x00068650
22
public
SurfaceFormat
Format
23
{
24
get
25
{
26
return
this.
_format
;
27
}
28
}
29
30
// Token: 0x1700034D RID: 845
31
// (get) Token: 0x0600190A RID: 6410 RVA: 0x0006A464 File Offset: 0x00068664
32
public
int
LevelCount
33
{
34
get
35
{
36
return
this.
_levelCount
;
37
}
38
}
39
40
// Token: 0x0600190B RID: 6411 RVA: 0x0006A478 File Offset: 0x00068678
41
internal
static
int
CalculateMipLevels
(
int
width,
int
height = 0,
int
depth = 0)
42
{
43
if
(!
true
)
44
{
45
}
46
int
num =
Math
.
Max
(
Math
.
Max
(0, width), height);
47
return
1;
48
}
49
50
// Token: 0x0600190C RID: 6412 RVA: 0x0006A49C File Offset: 0x0006869C
51
internal
static
void
GetSizeForLevel
(
int
width,
int
height,
int
level, [Out]
int
w, [Out]
int
h
)
52
{
53
w.m_value
= width;
54
h.m_value
= height;
55
h.m_value
= height;
56
if
(height != 0)
57
{
58
return
;
59
}
60
int
num = 1;
61
h.m_value
= num;
62
}
63
64
// Token: 0x0600190D RID: 6413 RVA: 0x0006A4D8 File Offset: 0x000686D8
65
internal
static
void
GetSizeForLevel
(
int
width,
int
height,
int
depth,
int
level, [Out]
int
w, [Out]
int
h
, [Out]
int
d)
66
{
67
w.m_value
= width;
68
h.m_value
= height;
69
d.m_value
= depth;
70
int
num = 1;
71
w.m_value
= num;
72
int
num2
= 1;
73
h.m_value
=
num2
;
74
}
75
76
// Token: 0x0600190E RID: 6414 RVA: 0x0006A51C File Offset: 0x0006871C
77
internal
int
GetPitch
(
int
width)
78
{
79
return
this.
_format
.GetSize();
80
}
81
82
// Token: 0x0600190F RID: 6415 RVA: 0x0006A538 File Offset: 0x00068738
83
protected
internal
override
void
GraphicsDeviceResetting
()
84
{
85
}
86
87
// Token: 0x06001910 RID: 6416 RVA: 0x0006A548 File Offset: 0x00068748
88
protected
Texture
()
89
{
90
int
num =
Interlocked
.
Increment
(0);
91
this._sortingKey
= num;
92
base
..ctor();
93
}
94
95
// Token: 0x04002774 RID: 10100
96
internal
SurfaceFormat
_format
;
97
98
// Token: 0x04002775 RID: 10101
99
internal
int
_levelCount
;
100
101
// Token: 0x04002776 RID: 10102
102
private
readonly
int
_sortingKey
;
103
104
// Token: 0x04002777 RID: 10103
105
private
static
int
_lastSortingKey
;
106
}
107
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Microsoft.Xna.Framework.Graphics.GraphicsResource
Definition
GraphicsResource.cs:8
Microsoft.Xna.Framework.Graphics.Texture.CalculateMipLevels
static int CalculateMipLevels(int width, int height=0, int depth=0)
Definition
Texture.cs:41
Microsoft.Xna.Framework.Graphics.Texture.SortingKey
int SortingKey
Definition
Texture.cs:13
Microsoft.Xna.Framework.Graphics.Texture._lastSortingKey
static int _lastSortingKey
Definition
Texture.cs:105
Microsoft.Xna.Framework.Graphics.Texture._format
SurfaceFormat _format
Definition
Texture.cs:96
Microsoft.Xna.Framework.Graphics.Texture._levelCount
int _levelCount
Definition
Texture.cs:99
Microsoft.Xna.Framework.Graphics.Texture.GetSizeForLevel
static void GetSizeForLevel(int width, int height, int level, [Out] int w, [Out] int h)
Definition
Texture.cs:51
Microsoft.Xna.Framework.Graphics.Texture.LevelCount
int LevelCount
Definition
Texture.cs:33
Microsoft.Xna.Framework.Graphics.Texture.GetPitch
int GetPitch(int width)
Definition
Texture.cs:77
Microsoft.Xna.Framework.Graphics.Texture.GetSizeForLevel
static void GetSizeForLevel(int width, int height, int depth, int level, [Out] int w, [Out] int h, [Out] int d)
Definition
Texture.cs:65
Microsoft.Xna.Framework.Graphics.Texture.GraphicsDeviceResetting
override void GraphicsDeviceResetting()
Definition
Texture.cs:83
Microsoft.Xna.Framework.Graphics.Texture._sortingKey
readonly int _sortingKey
Definition
Texture.cs:102
Microsoft.Xna.Framework.Graphics.Texture.Format
SurfaceFormat Format
Definition
Texture.cs:23
Microsoft.Xna.Framework.Graphics.Texture.Texture
Texture()
Definition
Texture.cs:88
Microsoft.Xna.Framework.Graphics.Texture
Definition
Texture.cs:9
System.Math.Max
static byte Max(byte val1, byte val2)
Definition
Math.cs:111
System.Math
Definition
Math.cs:11
System.Threading.Interlocked.Increment
static int Increment(int location)
Definition
Interlocked.cs:54
System.Threading.Interlocked
Definition
Interlocked.cs:11
Microsoft.Xna.Framework.Graphics.SurfaceFormat
SurfaceFormat
Definition
SurfaceFormat.cs:7
Microsoft.Xna.Framework.Graphics
Definition
Blend.cs:4
System.Runtime.InteropServices
Definition
_Activator.cs:4
System.Threading
Definition
_ThreadPoolWaitCallback.cs:4
System
Definition
__ComObject.cs:4
source
Microsoft
Xna
Framework
Graphics
Texture.cs
Generated by
1.10.0