FCanvasTriangleRendererItem

Info needed to render a single FTriangleRenderer

Windows
MacOS
Linux

Inheritance Hierarchy

FCanvasBaseRenderItem

FCanvasTriangleRendererItem

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/CanvasTypes.h

Include

#include "CanvasTypes.h"

Syntax

class FCanvasTriangleRendererItem : public FCanvasBaseRenderItem

Remarks

Info needed to render a single FTriangleRenderer

Constructors

Name Description

Public function

FCanvasTriangleRendererItem

(
    ERHIFeatureLevel::Type InFeatureLev...,
    const FMaterialRenderProxy* In...,
    const FCanvas::FTransformEntry& In...,
    bool bInFreezeTime
)

This data is deleted after rendering has completed

Functions

Name Description

Public function

FORCEINLINEv...

 

AddReserveTriangles

(
    int32 NumTriangles
)

Reserves space in array for NumTriangles new triangles.

Public function

FORCEINLINEi...

 

AddTriangle

(
    const FCanvasUVTri& Tri,
    FHitProxyId HitProxyId
)

Add a new triangle to the render data.

Public function

bool

 

IsMatch

(
    const FMaterialRenderProxy* In...,
    const FCanvas::FTransformEntry& In...
)

Determine if this is a matching set by comparing material,transform. All must match

Public function

FORCEINLINEv...

 

ReserveTriangles

(
    int32 NumTriangles
)

Reserves space in array for at least NumTriangles total triangles.

Overridden from FCanvasBaseRenderItem

Name Description

Public function Virtual

FCanvasTrian...

 

GetCanvasTriangleRendererItem()

FCanvasTriangleRendererItem instance accessor

Public function Virtual

bool

 

Render_GameThread

(
    const FCanvas* Canvas,
    FRenderThreadScope& RenderScope
)

Renders the canvas item.

Public function Virtual

bool

 

Render_RenderThread

(
    FRHICommandListImmediate& RHICmdLi...,
    FMeshPassProcessorRenderState& Dra...,
    const FCanvas* Canvas
)

Renders the canvas item.

Select Skin
Light
Dark

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