Survivalcraft API 1.8.2.3
v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
ClearWidget.cs
浏览该文件的文档.
1
using
Engine
;
2
using
Engine.Graphics
;
3
4
namespace
Game
{
5
public
class
ClearWidget
:
Widget
{
6
public
Color
Color
{
get
;
set
; }
7
8
public
float
Depth
{
get
;
set
; }
9
10
public
int
Stencil
{
get
;
set
; }
11
12
public
bool
ClearColor
{
get
;
set
; }
13
14
public
bool
ClearDepth
{
get
;
set
; }
15
16
public
bool
ClearStencil
{
get
;
set
; }
17
18
public
ClearWidget
() {
19
ClearColor
=
true
;
20
ClearDepth
=
true
;
21
ClearStencil
=
true
;
22
Color
=
Color
.Black;
23
Depth
= 1f;
24
Stencil
= 0;
25
IsHitTestVisible
=
false
;
26
}
27
28
public
override
void
MeasureOverride
(
Vector2
parentAvailableSize) {
29
IsDrawRequired
=
true
;
30
}
31
32
public
override
void
Draw
(
DrawContext
dc) {
33
Display
.
Clear
(
34
ClearColor
?
new
Vector4
?(
new
Vector4
(
Color
)) :
null
,
35
ClearDepth
?
new
float
?(
Depth
) :
null
,
36
ClearStencil
?
new
int
?(
Stencil
) :
null
37
);
38
}
39
}
40
}
Engine.Graphics.Display
定义
Display.cs:11
Engine.Graphics.Display.Clear
static void Clear(Vector4? color, float? depth=null, int? stencil=null)
定义
Display.cs:255
Game.ClearWidget.ClearWidget
ClearWidget()
定义
ClearWidget.cs:18
Game.ClearWidget.ClearColor
bool ClearColor
定义
ClearWidget.cs:12
Game.ClearWidget.Depth
float Depth
定义
ClearWidget.cs:8
Game.ClearWidget.Draw
override void Draw(DrawContext dc)
定义
ClearWidget.cs:32
Game.ClearWidget.ClearStencil
bool ClearStencil
定义
ClearWidget.cs:16
Game.ClearWidget.Color
Color Color
定义
ClearWidget.cs:6
Game.ClearWidget.MeasureOverride
override void MeasureOverride(Vector2 parentAvailableSize)
定义
ClearWidget.cs:28
Game.ClearWidget.Stencil
int Stencil
定义
ClearWidget.cs:10
Game.ClearWidget.ClearDepth
bool ClearDepth
定义
ClearWidget.cs:14
Game.Widget.DrawContext
定义
Widget.cs:11
Game.Widget.Widget
Widget()
定义
Widget.cs:479
Game.Widget.IsDrawRequired
bool IsDrawRequired
定义
Widget.cs:460
Game.Widget.IsHitTestVisible
virtual bool IsHitTestVisible
定义
Widget.cs:380
Engine.Graphics
定义
BaseBatch.cs:1
Engine.Graphics.ShaderParameterType.Vector4
@ Vector4
定义
ShaderParameterType.cs:6
Engine
定义
BaseSound.cs:10
Game
定义
ContentFileBridge.cs:4
Engine.Vector2
定义
Vector2.cs:2
Engine.Vector4
定义
Vector4.cs:2
SurvivalcraftApi 1.8.2.3
Survivalcraft.Windows
Widget
ClearWidget.cs
制作者
1.16.1