C# Class Sparrow.Utils.VertexColorHelper

ファイルを表示 Open project: fmotagarcia/sparrow-sharp Class Usage Examples

Public Methods

Method Description
CreateVertexColor ( byte r, byte g, byte b, byte a ) : VertexColor
CreateVertexColor ( uint color, float alpha ) : VertexColor
IsOpaqueWhite ( VertexColor color ) : bool
PremultiplyAlpha ( VertexColor color ) : VertexColor
UnmultiplyAlpha ( VertexColor color ) : VertexColor

Method Details

CreateVertexColor() public static method

public static CreateVertexColor ( byte r, byte g, byte b, byte a ) : VertexColor
r byte
g byte
b byte
a byte
return VertexColor

CreateVertexColor() public static method

public static CreateVertexColor ( uint color, float alpha ) : VertexColor
color uint
alpha float
return VertexColor

IsOpaqueWhite() public static method

public static IsOpaqueWhite ( VertexColor color ) : bool
color VertexColor
return bool

PremultiplyAlpha() public static method

public static PremultiplyAlpha ( VertexColor color ) : VertexColor
color VertexColor
return VertexColor

UnmultiplyAlpha() public static method

public static UnmultiplyAlpha ( VertexColor color ) : VertexColor
color VertexColor
return VertexColor