Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Frame()
[1/2]
static
Rectangle
Terraria.Utils.Frame
(
this
Asset
<
Texture2D
>
tex
,
int
horizontalFrames
=
1
,
int
verticalFrames
=
1
,
int
frameX
=
0
,
int
frameY
=
0
,
int
sizeOffsetX
=
0
,
int
sizeOffsetY
=
0
)
inline
static
Definition at line
873
of file
Utils.cs
.
874
{
875
if
(!
tex
.IsLoaded)
876
{
877
return
Rectangle
.
Empty
;
878
}
879
return
tex
.Value.Frame(
horizontalFrames
,
verticalFrames
, frameX, frameY,
sizeOffsetX
,
sizeOffsetY
);
880
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
Microsoft.Xna.Framework.Rectangle.Empty
static Rectangle Empty
Definition
Rectangle.cs:50
Microsoft.Xna.Framework.Rectangle
Definition
Rectangle.cs:12
References
Microsoft.Xna.Framework.Rectangle.Empty
.
Terraria
Utils
Generated by
1.10.0