C# Class uP5.PShape

Datei anzeigen Open project: nryota/uProcessing Class Usage Examples

Public Properties

Property Type Description
isClockwise bool
style PGraphics.PStyle

Public Methods

Method Description
PShape ( ShapeType type = ShapeType.NONE ) : UnityEditor
apply ( GameObject gameObject ) : void
applyMesh ( GameObject gameObject ) : void
beginShape ( ShapeType type, bool isClockwise = true ) : void
beginShape ( int type, bool isClockwise = true ) : void
createEllipse ( float x, float y, float w, float h ) : Mesh
createQuad ( float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4 ) : Mesh
createRect ( float x, float y, float w, float h ) : Mesh
disableStyle ( ) : void
enableStyle ( ) : void
endShape ( CloseType closeType = CloseType.NONE ) : void
endShape ( int closeType ) : void
fill ( Color col ) : void
fill ( int gray, int alpha = 255 ) : void
fill ( int r, int g, int b, int a = 255 ) : void
noFill ( ) : void
noTint ( ) : void
recalc ( Mesh mesh ) : void
saveAssetDB ( Mesh mesh ) : void
setFill ( Color col ) : void
setFill ( bool isFill ) : void
setFill ( int gray, int alpha = 255 ) : void
setFill ( int r, int g, int b, int a = 255 ) : void
setTint ( Color col ) : void
setTint ( bool isTint ) : void
setTint ( int gray, int alpha = 255 ) : void
setTint ( int r, int g, int b, int a = 255 ) : void
tint ( Color col ) : void
tint ( int gray, int alpha = 255 ) : void
tint ( int r, int g, int b, int a = 255 ) : void
vertex ( float x, float y, float z = 0.0f ) : void
vertex ( float x, float y, float u, float v ) : void
vertex ( float x, float y, float z, float u, float v ) : void

Method Details

PShape() public method

public PShape ( ShapeType type = ShapeType.NONE ) : UnityEditor
type ShapeType
return UnityEditor

apply() public method

public apply ( GameObject gameObject ) : void
gameObject UnityEngine.GameObject
return void

applyMesh() public method

public applyMesh ( GameObject gameObject ) : void
gameObject UnityEngine.GameObject
return void

beginShape() public method

public beginShape ( ShapeType type, bool isClockwise = true ) : void
type ShapeType
isClockwise bool
return void

beginShape() public method

public beginShape ( int type, bool isClockwise = true ) : void
type int
isClockwise bool
return void

createEllipse() public method

public createEllipse ( float x, float y, float w, float h ) : Mesh
x float
y float
w float
h float
return UnityEngine.Mesh

createQuad() public method

public createQuad ( float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4 ) : Mesh
x1 float
y1 float
x2 float
y2 float
x3 float
y3 float
x4 float
y4 float
return UnityEngine.Mesh

createRect() public method

public createRect ( float x, float y, float w, float h ) : Mesh
x float
y float
w float
h float
return UnityEngine.Mesh

disableStyle() public method

public disableStyle ( ) : void
return void

enableStyle() public method

public enableStyle ( ) : void
return void

endShape() public method

public endShape ( CloseType closeType = CloseType.NONE ) : void
closeType CloseType
return void

endShape() public method

public endShape ( int closeType ) : void
closeType int
return void

fill() public method

public fill ( Color col ) : void
col UnityEngine.Color
return void

fill() public method

public fill ( int gray, int alpha = 255 ) : void
gray int
alpha int
return void

fill() public method

public fill ( int r, int g, int b, int a = 255 ) : void
r int
g int
b int
a int
return void

noFill() public method

public noFill ( ) : void
return void

noTint() public method

public noTint ( ) : void
return void

recalc() public method

public recalc ( Mesh mesh ) : void
mesh UnityEngine.Mesh
return void

saveAssetDB() public method

public saveAssetDB ( Mesh mesh ) : void
mesh UnityEngine.Mesh
return void

setFill() public method

public setFill ( Color col ) : void
col UnityEngine.Color
return void

setFill() public method

public setFill ( bool isFill ) : void
isFill bool
return void

setFill() public method

public setFill ( int gray, int alpha = 255 ) : void
gray int
alpha int
return void

setFill() public method

public setFill ( int r, int g, int b, int a = 255 ) : void
r int
g int
b int
a int
return void

setTint() public method

public setTint ( Color col ) : void
col UnityEngine.Color
return void

setTint() public method

public setTint ( bool isTint ) : void
isTint bool
return void

setTint() public method

public setTint ( int gray, int alpha = 255 ) : void
gray int
alpha int
return void

setTint() public method

public setTint ( int r, int g, int b, int a = 255 ) : void
r int
g int
b int
a int
return void

tint() public method

public tint ( Color col ) : void
col UnityEngine.Color
return void

tint() public method

public tint ( int gray, int alpha = 255 ) : void
gray int
alpha int
return void

tint() public method

public tint ( int r, int g, int b, int a = 255 ) : void
r int
g int
b int
a int
return void

vertex() public method

public vertex ( float x, float y, float z = 0.0f ) : void
x float
y float
z float
return void

vertex() public method

public vertex ( float x, float y, float u, float v ) : void
x float
y float
u float
v float
return void

vertex() public method

public vertex ( float x, float y, float z, float u, float v ) : void
x float
y float
z float
u float
v float
return void

Property Details

isClockwise public_oe property

public bool isClockwise
return bool

style public_oe property

public PGraphics.PStyle style
return PGraphics.PStyle