C# Class Transit.Framework.Texturing.TextureBlender

Inheritance: ITextureProvider
显示文件 Open project: Katalyst6/CSL.TransitAddonMod

Public Methods

Method Description
FromBaseFile ( string baseTexturePath, string textureName = null ) : TextureBlender
FromTexture ( Texture2D baseTexture ) : TextureBlender
GetTexture ( ) : Texture2D
TextureBlender ( Func baseTextureProvider ) : System
WithAlphaComponent ( Texture2D alphaTexture, Point position = null ) : TextureBlender
WithComponent ( string path, byte alphaLevel = 255, int positionX, bool increaseXOffset = true ) : TextureBlender
WithXOffset ( int xOffset ) : TextureBlender

Private Methods

Method Description
AddComponent ( ITextureBlenderComponent component ) : void

Method Details

FromBaseFile() public static method

public static FromBaseFile ( string baseTexturePath, string textureName = null ) : TextureBlender
baseTexturePath string
textureName string
return TextureBlender

FromTexture() public static method

public static FromTexture ( Texture2D baseTexture ) : TextureBlender
baseTexture UnityEngine.Texture2D
return TextureBlender

GetTexture() public method

public GetTexture ( ) : Texture2D
return UnityEngine.Texture2D

TextureBlender() public method

public TextureBlender ( Func baseTextureProvider ) : System
baseTextureProvider Func
return System

WithAlphaComponent() public method

public WithAlphaComponent ( Texture2D alphaTexture, Point position = null ) : TextureBlender
alphaTexture UnityEngine.Texture2D
position Point
return TextureBlender

WithComponent() public method

public WithComponent ( string path, byte alphaLevel = 255, int positionX, bool increaseXOffset = true ) : TextureBlender
path string
alphaLevel byte
positionX int
increaseXOffset bool
return TextureBlender

WithXOffset() public method

public WithXOffset ( int xOffset ) : TextureBlender
xOffset int
return TextureBlender