Show / Hide Table of Contents

Struct DistortionDrawRequest

Holds data for 2D distortion height map drawing requests A drawing request is comprised of indexed vertices arranged in a triangle list

Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public struct DistortionDrawRequest

Fields

Colour

Colour to apply to all vertices

Declaration
public Colour Colour
Field Value
Type Description
Colour

CoordinateSpace

Screen or World coordinate spaces. Triangles in World space are transformed by a camera2D's position of focus and zoom factor

Declaration
public CoordinateSpace CoordinateSpace
Field Value
Type Description
CoordinateSpace

FillType

Triangle filltype - Solid Colour, Single Textured or Dual Textured

Declaration
public FillType FillType
Field Value
Type Description
FillType

Indices

Triangle indices data, referencing array positions of vertex data. Array length must be divisible by 3

Declaration
public int[] Indices
Field Value
Type Description
System.Int32[]

Intensity

An overall scalar for the distortion draw's impact to the height map

Declaration
public float Intensity
Field Value
Type Description
System.Single

Texture0

Primary Texture Reference (texture used for single texturing) Note: If you are using ulong references, there is helper function in IDrawing that will WrapTextureId() into a reference object

Declaration
public ITexture Texture0
Field Value
Type Description
ITexture

Texture1

Secondary Texture Reference (testure used for dual texturing) Note: If you are using ulong references, there is helper function in IDrawing that will WrapTextureId() into a reference object

Declaration
public ITexture Texture1
Field Value
Type Description
ITexture

TextureWrap0

Primary Texture Coordinate Wrap behaviour (Wrap or Mirror is the only defined behaviour)

Declaration
public TextureCoordinateMode TextureWrap0
Field Value
Type Description
TextureCoordinateMode

TextureWrap1

Secondary Texture Coordinate Wrap behaviour (Wrap or Mirror is the only defined behaviour)

Declaration
public TextureCoordinateMode TextureWrap1
Field Value
Type Description
TextureCoordinateMode

Vertices

Vertex Data

Declaration
public Vertex2D[] Vertices
Field Value
Type Description
Vertex2D[]
In This Article
Back to top yak2D - Alex Paterson