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
BasicDebugDrawer.cs
Go to the documentation of this file.
1
using
System
;
2
using
Microsoft.Xna.Framework
;
3
using
Microsoft.Xna.Framework.Graphics
;
4
5
namespace
ReLogic.Graphics
6
{
7
// Token: 0x02000B36 RID: 2870
8
public
class
BasicDebugDrawer
:
IDebugDrawer
,
IDisposable
9
{
10
// Token: 0x060053B0 RID: 21424 RVA: 0x00284D1C File Offset: 0x00282F1C
11
public
BasicDebugDrawer
(
GraphicsDevice
graphicsDevice)
12
{
13
}
14
15
// Token: 0x060053B1 RID: 21425 RVA: 0x00284D3C File Offset: 0x00282F3C
16
public
void
Begin
(
Matrix
matrix
)
17
{
18
float
m
=
matrix
.M11;
19
float
m2
=
matrix
.M12;
20
float
m3
=
matrix
.M31;
21
float
m4
=
matrix
.M32;
22
SpriteBatch
spriteBatch = this.
_spriteBatch
;
23
}
24
25
// Token: 0x060053B2 RID: 21426 RVA: 0x00284D70 File Offset: 0x00282F70
26
public
void
Begin
()
27
{
28
SpriteBatch
spriteBatch = this.
_spriteBatch
;
29
}
30
31
// Token: 0x060053B3 RID: 21427 RVA: 0x00284D84 File Offset: 0x00282F84
32
public
void
DrawSquare
(
Vector4
positionAndSize
,
Color
color)
33
{
34
SpriteBatch
spriteBatch = this.
_spriteBatch
;
35
Texture2D
texture = this.
_texture
;
36
if
(!
true
)
37
{
38
}
39
if
(!
true
)
40
{
41
}
42
}
43
44
// Token: 0x060053B4 RID: 21428 RVA: 0x00284DA8 File Offset: 0x00282FA8
45
public
void
DrawSquare
(
Vector2
position,
Vector2
size,
Color
color)
46
{
47
SpriteBatch
spriteBatch = this.
_spriteBatch
;
48
Texture2D
texture = this.
_texture
;
49
if
(!
true
)
50
{
51
}
52
if
(!
true
)
53
{
54
}
55
}
56
57
// Token: 0x060053B5 RID: 21429 RVA: 0x00284DCC File Offset: 0x00282FCC
58
public
void
DrawSquareFromCenter
(
Vector2
center,
Vector2
size,
float
rotation,
Color
color)
59
{
60
SpriteBatch
spriteBatch = this.
_spriteBatch
;
61
Texture2D
texture = this.
_texture
;
62
if
(!
true
)
63
{
64
}
65
}
66
67
// Token: 0x060053B6 RID: 21430 RVA: 0x00284DEC File Offset: 0x00282FEC
68
public
void
DrawLine
(
Vector2
start
,
Vector2
end,
float
width,
Color
color)
69
{
70
if
(!
true
)
71
{
72
}
73
if
(!
true
)
74
{
75
}
76
SpriteBatch
spriteBatch = this.
_spriteBatch
;
77
Texture2D
texture = this.
_texture
;
78
}
79
80
// Token: 0x060053B7 RID: 21431 RVA: 0x00284E14 File Offset: 0x00283014
81
public
void
End
()
82
{
83
this.
_spriteBatch
.
End
();
84
}
85
86
// Token: 0x060053B8 RID: 21432 RVA: 0x00284E2C File Offset: 0x0028302C
87
protected
virtual
void
Dispose
(
bool
disposing
)
88
{
89
if
(!this.
_disposedValue
)
90
{
91
SpriteBatch
spriteBatch = this.
_spriteBatch
;
92
if
(spriteBatch !=
null
)
93
{
94
spriteBatch.
Dispose
();
95
}
96
Texture2D
texture = this.
_texture
;
97
if
(texture !=
null
)
98
{
99
texture.
Dispose
();
100
}
101
this._disposedValue
=
true
;
102
}
103
}
104
105
// Token: 0x060053B9 RID: 21433 RVA: 0x00284E68 File Offset: 0x00283068
106
public
void
Dispose
()
107
{
108
}
109
110
// Token: 0x04008CE8 RID: 36072
111
private
SpriteBatch
_spriteBatch
;
112
113
// Token: 0x04008CE9 RID: 36073
114
private
Texture2D
_texture
;
115
116
// Token: 0x04008CEA RID: 36074
117
private
bool
_disposedValue
;
118
}
119
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Microsoft.Xna.Framework.Graphics.GraphicsDevice
Definition
GraphicsDevice.cs:12
Microsoft.Xna.Framework.Graphics.GraphicsResource.Dispose
void Dispose()
Definition
GraphicsResource.cs:15
Microsoft.Xna.Framework.Graphics.SpriteBatch.End
void End()
Definition
SpriteBatch.cs:88
Microsoft.Xna.Framework.Graphics.SpriteBatch
Definition
SpriteBatch.cs:14
Microsoft.Xna.Framework.Graphics.Texture2D
Definition
Texture2D.cs:10
ReLogic.Graphics.BasicDebugDrawer.Dispose
virtual void Dispose(bool disposing)
Definition
BasicDebugDrawer.cs:87
ReLogic.Graphics.BasicDebugDrawer.End
void End()
Definition
BasicDebugDrawer.cs:81
ReLogic.Graphics.BasicDebugDrawer._spriteBatch
SpriteBatch _spriteBatch
Definition
BasicDebugDrawer.cs:111
ReLogic.Graphics.BasicDebugDrawer._disposedValue
bool _disposedValue
Definition
BasicDebugDrawer.cs:117
ReLogic.Graphics.BasicDebugDrawer.DrawSquare
void DrawSquare(Vector4 positionAndSize, Color color)
Definition
BasicDebugDrawer.cs:32
ReLogic.Graphics.BasicDebugDrawer._texture
Texture2D _texture
Definition
BasicDebugDrawer.cs:114
ReLogic.Graphics.BasicDebugDrawer.DrawSquareFromCenter
void DrawSquareFromCenter(Vector2 center, Vector2 size, float rotation, Color color)
Definition
BasicDebugDrawer.cs:58
ReLogic.Graphics.BasicDebugDrawer.BasicDebugDrawer
BasicDebugDrawer(GraphicsDevice graphicsDevice)
Definition
BasicDebugDrawer.cs:11
ReLogic.Graphics.BasicDebugDrawer.DrawLine
void DrawLine(Vector2 start, Vector2 end, float width, Color color)
Definition
BasicDebugDrawer.cs:68
ReLogic.Graphics.BasicDebugDrawer.DrawSquare
void DrawSquare(Vector2 position, Vector2 size, Color color)
Definition
BasicDebugDrawer.cs:45
ReLogic.Graphics.BasicDebugDrawer.Dispose
void Dispose()
Definition
BasicDebugDrawer.cs:106
ReLogic.Graphics.BasicDebugDrawer.Begin
void Begin()
Definition
BasicDebugDrawer.cs:26
ReLogic.Graphics.BasicDebugDrawer.Begin
void Begin(Matrix matrix)
Definition
BasicDebugDrawer.cs:16
ReLogic.Graphics.BasicDebugDrawer
Definition
BasicDebugDrawer.cs:9
ReLogic.Graphics.IDebugDrawer
Definition
IDebugDrawer.cs:9
System.IDisposable
Definition
IDisposable.cs:7
Microsoft.Xna.Framework.Graphics
Definition
Blend.cs:4
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
ReLogic.Graphics
Definition
BasicDebugDrawer.cs:6
System.ExceptionArgument.start
@ start
System
Definition
__ComObject.cs:4
Microsoft.Xna.Framework.Graphics.Color
Definition
Color.cs:12
Microsoft.Xna.Framework.Matrix
Definition
Matrix.cs:10
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
Microsoft.Xna.Framework.Vector4
Definition
Vector4.cs:10
source
ReLogic
Graphics
BasicDebugDrawer.cs
Generated by
1.10.0