FTriangleRasterizer

[FTriangleRasterizer](API\Runtime\Engine\FTriangleRasterizer) - A generic 2d triangle rasterizer which linearly interpolates vertex parameters and calls a virtual function for each pixel.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

RasterPolicyType

FTriangleRasterizer

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Raster.h

Include

#include "Raster.h"

Syntax

template<class RasterPolicyType>
class FTriangleRasterizer : public RasterPolicyType

Remarks

FTriangleRasterizer - A generic 2d triangle rasterizer which linearly interpolates vertex parameters and calls a virtual function for each pixel.

Constructors

Name Description

Public function

FTriangleRasterizer

(
    const RasterPolicyType& InRasterPo...
)

Functions

Name Description

Public function

void

 

DrawTriangle

(
    const InterpolantType& I0,
    const InterpolantType& I1,
    const InterpolantType& I2,
    const FVector2D& P0,
    const FVector2D& P1,
    const FVector2D& P2,
    bool BackFacing
)

Typedefs

Name

Description

InterpolantType