C# Class UnityRenderer.Factory

Inheritance: IRendererFactory
Mostrar archivo Open project: explodingbarrel/lwf

Public Properties

Property Type Description
blendMode int
camera Camera
fontPrefix string
gameObject GameObject
maskMode int
renderQueueOffset int
textureLoader TextureLoader
texturePrefix string
textureUnloader TextureUnloader
zOffset float
zRate float

Public Methods

Method Description
BeginRender ( LWF lwf ) : void
ConstructBitmap ( LWF lwf, int objectId, Bitmap bitmap ) : Renderer
ConstructBitmapEx ( LWF lwf, int objectId, BitmapEx bitmapEx ) : Renderer
ConstructParticle ( LWF lwf, int objectId, Particle particle ) : Renderer
ConstructText ( LWF lwf, int objectId, Text text ) : UnityRenderer.TextRenderer
ConvertColor ( Color c ) : UnityEngine.Color
ConvertColor ( Color c, ColorTransform t ) : UnityEngine.Color
ConvertColorTransform ( UnityEngine &mc, ColorTransform c ) : void
ConvertColorTransform ( UnityEngine &mc, UnityEngine &ac, ColorTransform c ) : void
ConvertMatrix ( Matrix4x4 &m, Matrix lm, float scale = 1, float z, float height ) : void
ConvertMatrix ( Matrix4x4 &m, Matrix lm, float scale, float z, float zO, float zR, float height ) : void
Destruct ( ) : void
EndRender ( LWF lwf ) : void
Init ( LWF lwf ) : void
MultiplyMatrix ( Matrix4x4 &m, Matrix4x4 l, Matrix4x4 r ) : void
SetBlendMode ( int m ) : void
SetMaskMode ( int m ) : void
WorldToLWFPoint ( LWF lwf, Vector3 p ) : Vector3

Protected Methods

Method Description
Factory ( GameObject gObj, float zOff, float zR, int rQOff, Camera cam, string texturePrfx = "", string fontPrfx = "", TextureLoader textureLdr = null, TextureUnloader textureUnldr = null )

Method Details

BeginRender() public method

public BeginRender ( LWF lwf ) : void
lwf LWF
return void

ConstructBitmap() public method

public ConstructBitmap ( LWF lwf, int objectId, Bitmap bitmap ) : Renderer
lwf LWF
objectId int
bitmap Bitmap
return Renderer

ConstructBitmapEx() public method

public ConstructBitmapEx ( LWF lwf, int objectId, BitmapEx bitmapEx ) : Renderer
lwf LWF
objectId int
bitmapEx BitmapEx
return Renderer

ConstructParticle() public method

public ConstructParticle ( LWF lwf, int objectId, Particle particle ) : Renderer
lwf LWF
objectId int
particle Particle
return Renderer

ConstructText() public method

public ConstructText ( LWF lwf, int objectId, Text text ) : UnityRenderer.TextRenderer
lwf LWF
objectId int
text Text
return UnityRenderer.TextRenderer

ConvertColor() public method

public ConvertColor ( Color c ) : UnityEngine.Color
c Color
return UnityEngine.Color

ConvertColor() public method

public ConvertColor ( Color c, ColorTransform t ) : UnityEngine.Color
c Color
t ColorTransform
return UnityEngine.Color

ConvertColorTransform() public method

public ConvertColorTransform ( UnityEngine &mc, ColorTransform c ) : void
mc UnityEngine
c ColorTransform
return void

ConvertColorTransform() public method

public ConvertColorTransform ( UnityEngine &mc, UnityEngine &ac, ColorTransform c ) : void
mc UnityEngine
ac UnityEngine
c ColorTransform
return void

ConvertMatrix() public method

public ConvertMatrix ( Matrix4x4 &m, Matrix lm, float scale = 1, float z, float height ) : void
m Matrix4x4
lm Matrix
scale float
z float
height float
return void

ConvertMatrix() public static method

public static ConvertMatrix ( Matrix4x4 &m, Matrix lm, float scale, float z, float zO, float zR, float height ) : void
m Matrix4x4
lm Matrix
scale float
z float
zO float
zR float
height float
return void

Destruct() public method

public Destruct ( ) : void
return void

EndRender() public method

public EndRender ( LWF lwf ) : void
lwf LWF
return void

Factory() protected method

protected Factory ( GameObject gObj, float zOff, float zR, int rQOff, Camera cam, string texturePrfx = "", string fontPrfx = "", TextureLoader textureLdr = null, TextureUnloader textureUnldr = null )
gObj GameObject
zOff float
zR float
rQOff int
cam Camera
texturePrfx string
fontPrfx string
textureLdr TextureLoader
textureUnldr TextureUnloader

Init() public method

public Init ( LWF lwf ) : void
lwf LWF
return void

MultiplyMatrix() public static method

public static MultiplyMatrix ( Matrix4x4 &m, Matrix4x4 l, Matrix4x4 r ) : void
m Matrix4x4
l Matrix4x4
r Matrix4x4
return void

SetBlendMode() public method

public SetBlendMode ( int m ) : void
m int
return void

SetMaskMode() public method

public SetMaskMode ( int m ) : void
m int
return void

WorldToLWFPoint() public method

public WorldToLWFPoint ( LWF lwf, Vector3 p ) : Vector3
lwf LWF
p Vector3
return Vector3

Property Details

blendMode public_oe property

public int blendMode
return int

camera public_oe property

public Camera camera
return Camera

fontPrefix public_oe property

public string fontPrefix
return string

gameObject public_oe property

public GameObject gameObject
return GameObject

maskMode public_oe property

public int maskMode
return int

renderQueueOffset public_oe property

public int renderQueueOffset
return int

textureLoader public_oe property

public TextureLoader textureLoader
return TextureLoader

texturePrefix public_oe property

public string texturePrefix
return string

textureUnloader public_oe property

public TextureUnloader textureUnloader
return TextureUnloader

zOffset public_oe property

public float zOffset
return float

zRate public_oe property

public float zRate
return float