C# Class Aiv.Fast2D.InstancedSprite

Inheritance: Sprite
Datei anzeigen Open project: aiv01/aiv-fast2d Class Usage Examples

Public Methods

Method Description
GetAdditiveColor ( int instanceId ) : System.Vector4
GetMultiplyColor ( int instanceId ) : System.Vector4
GetPosition ( int instanceId ) : System.Vector2
GetScale ( int instanceId ) : System.Vector2
InstancedSprite ( float width, float height ) : System
InstancedSprite ( float width, float height, int instances ) : System
SetAdditiveColor ( int instanceId, System.Vector4 color, bool noUpload = false ) : void
SetMultiplyColor ( int instanceId, System.Vector4 color, bool noUpload = false ) : void
SetPosition ( int instanceId, System.Vector2 position, bool noUpload = false ) : void
SetScale ( int instanceId, System.Vector2 scale, bool noUpload = false ) : void
UpdateAdditiveColors ( ) : void
UpdateMultiplyColors ( ) : void
UpdatePositions ( ) : void
UpdateScales ( ) : void

Private Methods

Method Description
SetupInstances ( ) : void

Method Details

GetAdditiveColor() public method

public GetAdditiveColor ( int instanceId ) : System.Vector4
instanceId int
return System.Vector4

GetMultiplyColor() public method

public GetMultiplyColor ( int instanceId ) : System.Vector4
instanceId int
return System.Vector4

GetPosition() public method

public GetPosition ( int instanceId ) : System.Vector2
instanceId int
return System.Vector2

GetScale() public method

public GetScale ( int instanceId ) : System.Vector2
instanceId int
return System.Vector2

InstancedSprite() public method

public InstancedSprite ( float width, float height ) : System
width float
height float
return System

InstancedSprite() public method

public InstancedSprite ( float width, float height, int instances ) : System
width float
height float
instances int
return System

SetAdditiveColor() public method

public SetAdditiveColor ( int instanceId, System.Vector4 color, bool noUpload = false ) : void
instanceId int
color System.Vector4
noUpload bool
return void

SetMultiplyColor() public method

public SetMultiplyColor ( int instanceId, System.Vector4 color, bool noUpload = false ) : void
instanceId int
color System.Vector4
noUpload bool
return void

SetPosition() public method

public SetPosition ( int instanceId, System.Vector2 position, bool noUpload = false ) : void
instanceId int
position System.Vector2
noUpload bool
return void

SetScale() public method

public SetScale ( int instanceId, System.Vector2 scale, bool noUpload = false ) : void
instanceId int
scale System.Vector2
noUpload bool
return void

UpdateAdditiveColors() public method

public UpdateAdditiveColors ( ) : void
return void

UpdateMultiplyColors() public method

public UpdateMultiplyColors ( ) : void
return void

UpdatePositions() public method

public UpdatePositions ( ) : void
return void

UpdateScales() public method

public UpdateScales ( ) : void
return void