Survivalcraft API 1.8.2.3
v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Subtexture.cs
浏览该文件的文档.
1
using
Engine
;
2
using
Engine.Graphics
;
3
4
namespace
Game
{
5
public
class
Subtexture
{
6
public
readonly
Texture2D
Texture
;
7
8
public
readonly
Vector2
TopLeft
;
9
10
public
readonly
Vector2
BottomRight
;
11
12
public
Subtexture
(
Texture2D
texture,
Vector2
topLeft,
Vector2
bottomRight) {
13
Texture
= texture;
14
TopLeft
= topLeft;
15
BottomRight
= bottomRight;
16
}
17
18
public
Subtexture
(
Texture2D
texture) {
19
Texture
= texture;
20
TopLeft
=
Vector2
.
Zero
;
21
BottomRight
=
Vector2
.
One
;
22
}
23
24
public
static
implicit
operator
Texture2D
(
Subtexture
subtexture) => subtexture.
Texture
;
25
26
public
static
implicit
operator
Subtexture
(
Texture2D
texture) =>
new
(texture);
27
}
28
}
Engine.Graphics.Texture2D
定义
Texture2D.cs:15
Game.Subtexture.Texture
readonly Texture2D Texture
定义
Subtexture.cs:6
Game.Subtexture.Subtexture
Subtexture(Texture2D texture, Vector2 topLeft, Vector2 bottomRight)
定义
Subtexture.cs:12
Game.Subtexture.BottomRight
readonly Vector2 BottomRight
定义
Subtexture.cs:10
Game.Subtexture.TopLeft
readonly Vector2 TopLeft
定义
Subtexture.cs:8
Game.Subtexture.Subtexture
Subtexture(Texture2D texture)
定义
Subtexture.cs:18
Engine.Graphics
定义
BaseBatch.cs:1
Engine.Graphics.ShaderParameterType.Texture2D
@ Texture2D
定义
ShaderParameterType.cs:8
Engine
定义
BaseSound.cs:10
Game
定义
ContentFileBridge.cs:4
Engine.Vector2
定义
Vector2.cs:2
Engine.Vector2.Zero
static readonly Vector2 Zero
定义
Vector2.cs:7
Engine.Vector2.One
static readonly Vector2 One
定义
Vector2.cs:9
SurvivalcraftApi 1.8.2.3
Survivalcraft.Windows
Game
Subtexture.cs
制作者
1.16.1