FCanvasTriangleItem

Windows
MacOS
Linux

Inheritance Hierarchy

FCanvasItem

FCanvasTriangleItem

Syntax

class FCanvasTriangleItem : public FCanvasItem

Variables

Name Description

Public variable

FBatchedElement...

 

BatchedElementParameters

Public variable

const FMaterial...

 

MaterialRenderProxy

Material proxy for rendering.

Public variable

const FTexture ...

 

Texture

Texture to use for triangle(s).

Public variable

TArray< FCanvas...

 

TriangleList

List of triangles.

Constructors

Name Description

Public function

FCanvasTriangleItem

(
    FCanvasUVTri InSingleTri,
    const FTexture* InTexture
)

Triangle item

Public function

FCanvasTriangleItem

(
    const TArray< FCanvasUVTri >& InTr...,
    const FTexture* InTexture
)

Triangle item

Public function

FCanvasTriangleItem

(
    const FVector2D& InPointA,
    const FVector2D& InPointB,
    const FVector2D& InPointC,
    const FTexture* InTexture
)

Triangle item (no texture)

Public function

FCanvasTriangleItem

(
    const FVector2D& InPointA,
    const FVector2D& InPointB,
    const FVector2D& InPointC,
    const FVector2D& InTexCoordPointA,
    const FVector2D& InTexCoordPointB,
    const FVector2D& InTexCoordPointC,
    const FTexture* InTexture
)

Triangle item

Destructors

Name Description

Public function Virtual

~FCanvasTriangleItem()

Functions

Name Description

Public function

void

 

SetPoints

(
    const FVector2D& InPointA,
    const FVector2D& InPointB,
    const FVector2D& InPointC
)

Set all 3 points of triangle

Overridden from FCanvasItem

Name Description

Public function Virtual

void

 

Draw

(
    FCanvas* InCanvas
)

Public function Virtual

void

 

SetColor

(
    const FLinearColor& InColor
)

Set the Color of the item.

References

Module

Engine

Header

Runtime/Engine/Public/CanvasItem.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback