Show / Hide Table of Contents

Interface IBaseDrawable

The base object type for the shape drawing fluent interface Each of the object's methods represent a possible fill type for shape drawing The fluent type interface is designed for simple, rapid, iterative shape drawing It currently only supports texture references (not raw unsigned integer ids). Wrap ids if required

Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public interface IBaseDrawable

Methods

Coloured(Colour)

Draw shape with a single solid Colour

Declaration
ITextured Coloured(Colour colour)
Parameters
Type Name Description
Colour colour

The colour

Returns
Type Description
ITextured

DualTextured(TextureBrush, TextureBrush, TextureMixDirection, Colour)

Draw shape with a transition between two textures, along with an overall mix colour

Declaration
ITextured DualTextured(TextureBrush texture0, TextureBrush texture1, TextureMixDirection mix, Colour colour)
Parameters
Type Name Description
TextureBrush texture0

The first Texture reference

TextureBrush texture1

The second Texture reference

TextureMixDirection mix

The Texture transition / mixing direction

Colour colour

The overall mix colour (use White for no change to texture colour)

Returns
Type Description
ITextured

Textured(TextureBrush, Colour)

Draw shape with a single Texture, along with an overall mix colour

Declaration
ITextured Textured(TextureBrush texture, Colour colour)
Parameters
Type Name Description
TextureBrush texture

The Texture reference

Colour colour

The overall mix colour (use White for no change to texture colour)

Returns
Type Description
ITextured
In This Article
Back to top yak2D - Alex Paterson