Show / Hide Table of Contents

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
Type Description
ITransformable

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
Type Description
ITransformable

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
Type Description
ITransformable

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
Type Description
ITransformable

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
Type Description
DrawRequest

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
Type Description
ITransformable

SubmitDraw(IDrawStage, CoordinateSpace, Single, Int32)

Declaration
void SubmitDraw(IDrawStage drawStage, CoordinateSpace space, float depth, int layer)
Parameters
Type Name Description
IDrawStage drawStage
CoordinateSpace space
System.Single depth
System.Int32 layer
In This Article
Back to top yak2D - Alex Paterson