Interface IConstructedDrawable
Represents a fluent interface object that is in a drawable state
Contains methods represent additional modifier options for further shape modification
The fluent type interface is designed for simple, rapid, iterative shape drawing
It currently only supports references (not raw unsigned integer ids). Wrap ids if required
Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public interface IConstructedDrawable
Methods
ChangeColour(Colour)
Return a drawable shape object with identical parameters except a different colour
Declaration
ITransformable ChangeColour(Colour colour)
Parameters
| Type |
Name |
Description |
| Colour |
colour |
The new shape colour
|
Returns
ChangePosition(Vector2)
Return a drawable shape object with identical parameters except modified position
Declaration
ITransformable ChangePosition(Vector2 position)
Parameters
| Type |
Name |
Description |
| Vector2 |
position |
New centre position of shape
|
Returns
ChangeTexture0(ITexture)
Return a drawable shape object with identical parameters except a different primary texture reference
Declaration
ITransformable ChangeTexture0(ITexture texture)
Parameters
| Type |
Name |
Description |
| ITexture |
texture |
New primary Texture reference
|
Returns
ChangeTexture1(ITexture)
Return a drawable shape object with identical parameters except a different secondary texture reference
Declaration
ITransformable ChangeTexture1(ITexture texture)
Parameters
| Type |
Name |
Description |
| ITexture |
texture |
New secopndary Texture reference
|
Returns
GenerateDrawRequest(CoordinateSpace, Single, Int32)
Declaration
DrawRequest GenerateDrawRequest(CoordinateSpace space, float depth, int layer)
Parameters
| Type |
Name |
Description |
| CoordinateSpace |
space |
|
| System.Single |
depth |
|
| System.Int32 |
layer |
|
Returns
ShiftPosition(Vector2)
Return a drawable shape object with identical parameters except modified position
Declaration
ITransformable ShiftPosition(Vector2 delta)
Parameters
| Type |
Name |
Description |
| Vector2 |
delta |
|
Returns
SubmitDraw(IDrawStage, CoordinateSpace, Single, Int32)
Declaration
void SubmitDraw(IDrawStage drawStage, CoordinateSpace space, float depth, int layer)
Parameters