C# Class FairyGUI.NGraphics

Datei anzeigen Open project: fairygui/FairyGUI-unity Class Usage Examples

Public Properties

Property Type Description
TRIANGLES int[]
TRIANGLES_4_GRID int[]
TRIANGLES_9_GRID int[]
blendMode BlendMode
cameraPosition Vector3?
dontClip bool
grayed bool
maskFrameId uint
meshModifier MeshModifier
vertexMatrix Matrix4x4?

Public Methods

Method Description
Alloc ( int vertCount ) : void

ClearMesh ( ) : void

Dispose ( ) : void

DrawEllipse ( Rect vertRect, Color fillColor, Color allColors ) : void

DrawPolygon ( Vector2 points, Color fillColor, Color allColors ) : void

DrawRect ( Rect vertRect, int lineSize, Color lineColor, Color fillColor, Color allColors ) : void

Fill ( FillMethod method, float amount, int origin, bool clockwise, Rect vertRect, Rect uvRect ) : void

FillColors ( Color value ) : void

FillTriangles ( ) : void

FillTriangles ( int triangles ) : void

FillUV ( int index, Rect rect ) : void

FillUVOfQuad ( Vector2 uv, int index, Rect rect ) : void

FillVerts ( int index, Rect rect ) : void

从当前顶点缓冲区位置开始填入一个矩形的四个顶点

FillVertsOfQuad ( Vector3 verts, int index, Rect rect ) : void

NGraphics ( GameObject gameObject ) : System.Collections.Generic

SetOneQuadMesh ( Rect drawRect, Rect uvRect, Color color, Color allColors = null ) : void

SetShaderAndTexture ( string shader, NTexture texture ) : void

SetStencilEraserOrder ( int value ) : void

Tint ( Color value ) : void

UpdateMaterial ( UpdateContext context ) : void

UpdateMesh ( ) : void

Private Methods

Method Description
AllocTriangleArray ( int requestSize ) : void
UpdateManager ( ) : void

Method Details

Alloc() public method

public Alloc ( int vertCount ) : void
vertCount int
return void

ClearMesh() public method

public ClearMesh ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

DrawEllipse() public method

public DrawEllipse ( Rect vertRect, Color fillColor, Color allColors ) : void
vertRect UnityEngine.Rect
fillColor UnityEngine.Color
allColors UnityEngine.Color
return void

DrawPolygon() public method

public DrawPolygon ( Vector2 points, Color fillColor, Color allColors ) : void
points UnityEngine.Vector2
fillColor UnityEngine.Color
allColors UnityEngine.Color
return void

DrawRect() public method

public DrawRect ( Rect vertRect, int lineSize, Color lineColor, Color fillColor, Color allColors ) : void
vertRect UnityEngine.Rect
lineSize int
lineColor UnityEngine.Color
fillColor UnityEngine.Color
allColors UnityEngine.Color
return void

Fill() public method

public Fill ( FillMethod method, float amount, int origin, bool clockwise, Rect vertRect, Rect uvRect ) : void
method FillMethod
amount float
origin int
clockwise bool
vertRect UnityEngine.Rect
uvRect UnityEngine.Rect
return void

FillColors() public method

public FillColors ( Color value ) : void
value UnityEngine.Color
return void

FillTriangles() public method

public FillTriangles ( ) : void
return void

FillTriangles() public method

public FillTriangles ( int triangles ) : void
triangles int
return void

FillUV() public method

public FillUV ( int index, Rect rect ) : void
index int
rect UnityEngine.Rect
return void

FillUVOfQuad() public static method

public static FillUVOfQuad ( Vector2 uv, int index, Rect rect ) : void
uv UnityEngine.Vector2
index int
rect UnityEngine.Rect
return void

FillVerts() public method

从当前顶点缓冲区位置开始填入一个矩形的四个顶点
public FillVerts ( int index, Rect rect ) : void
index int 填充位置顶点索引
rect UnityEngine.Rect
return void

FillVertsOfQuad() public static method

public static FillVertsOfQuad ( Vector3 verts, int index, Rect rect ) : void
verts UnityEngine.Vector3
index int
rect UnityEngine.Rect
return void

NGraphics() public method

public NGraphics ( GameObject gameObject ) : System.Collections.Generic
gameObject UnityEngine.GameObject
return System.Collections.Generic

SetOneQuadMesh() public method

public SetOneQuadMesh ( Rect drawRect, Rect uvRect, Color color, Color allColors = null ) : void
drawRect UnityEngine.Rect
uvRect UnityEngine.Rect
color UnityEngine.Color
allColors UnityEngine.Color
return void

SetShaderAndTexture() public method

public SetShaderAndTexture ( string shader, NTexture texture ) : void
shader string
texture NTexture
return void

SetStencilEraserOrder() public method

public SetStencilEraserOrder ( int value ) : void
value int
return void

Tint() public method

public Tint ( Color value ) : void
value UnityEngine.Color
return void

UpdateMaterial() public method

public UpdateMaterial ( UpdateContext context ) : void
context UpdateContext
return void

UpdateMesh() public method

public UpdateMesh ( ) : void
return void

Property Details

TRIANGLES public_oe static_oe property

写死的一些三角形顶点组合,避免每次new 1---2 | / | 0---3
public static int[] TRIANGLES
return int[]

TRIANGLES_4_GRID public_oe static_oe property

public static int[] TRIANGLES_4_GRID
return int[]

TRIANGLES_9_GRID public_oe static_oe property

public static int[] TRIANGLES_9_GRID
return int[]

blendMode public_oe property

public BlendMode blendMode
return BlendMode

cameraPosition public_oe property

public Vector3? cameraPosition
return Vector3?

dontClip public_oe property

不参与剪裁
public bool dontClip
return bool

grayed public_oe property

public bool grayed
return bool

maskFrameId public_oe property

public uint maskFrameId
return uint

meshModifier public_oe property

当Mesh更新时被调用
public MeshModifier meshModifier
return MeshModifier

vertexMatrix public_oe property

public Matrix4x4? vertexMatrix
return Matrix4x4?