Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/CanvasTypes.h |
Include |
#include "CanvasTypes.h" |
class FCanvas
Encapsulates the canvas state.
Name | Description | ||
---|---|---|---|
|
AlphaBlend |
||
|
float |
AlphaModulate |
|
|
Color |
||
|
LastElementIndex |
Store index of last Element off to avoid semi expensive Find() |
|
|
SizeU |
||
|
SizeV |
||
|
SizeX |
||
|
SizeY |
||
|
SortedElementLookupMap |
Map from sortkey to array index of SortedElements for faster lookup of existing entries |
|
|
SortedElements |
Batched canvas elements to be sorted for rendering. Sort order is back-to-front |
|
|
Texture |
||
|
U |
||
|
param V Vertica... |
V |
|
|
TSharedPtr< FCa... |
WordWrapper |
Private class for handling word wrapping behavior. |
|
Y |
Name | Description | |
---|---|---|
|
FCanvas ( |
|
|
FCanvas ( |
Constructor. |
|
FCanvas ( |
Pass down a FGameTime instead. |
Name | Description | |
---|---|---|
|
~FCanvas() |
Destructor. |
Name | Description | ||
---|---|---|---|
|
AddTileRenderItem ( |
Generates a new FCanvasTileRendererItem for the current sortkey and adds it to the sortelement list of items to render |
|
|
AddTriangleRenderItem ( |
Generates a new FCanvasTriangleRendererItem for the current sortkey and adds it to the sortelement list of items to render |
|
|
ESimpleEleme... |
BlendToSimpleElementBlend ( |
Translate EBlendMode into ESimpleElementBlendMode used by tiles |
|
CalcBaseTransform2D |
Generate a 2D projection for the canvas. |
|
|
CalcBaseTransform3D |
Generate a 3D projection for the canvas. Use this if you want to transform in 3D |
|
|
CalcProjectionMatrix |
Generate a projection matrix for the canvas. Used for CalcBaseTransform3D |
|
|
CalcViewMatrix |
Generate a view matrix for the canvas. Used for CalcBaseTransform3D |
|
|
Clear ( |
Clear the canvas |
|
|
ClearBatchesToRender() |
Clear the list of dirty batches that need to be rendered by the canvas |
|
|
CopyTransformStack ( |
Copy the conents of the TransformStack from an existing canvas |
|
|
FCanvas *... |
Create ( |
|
|
DrawItem ( |
Draw a CanvasItem |
|
|
DrawItem ( |
Draw a CanvasItem at the given coordinates |
|
|
DrawItem ( |
Draw a CanvasItem at the given coordinates |
|
|
DrawNGon |
||
|
DrawShadowedString ( |
Draw an string centered on given location. |
|
|
DrawShadowedText ( |
||
|
DrawTile ( |
||
|
Flush_GameThread ( |
Sends a message to the rendering thread to draw the batched elements. |
|
|
Flush_RenderThread ( |
Sends a message to the rendering thread to draw the batched elements. |
|
|
Flush_RenderThread ( |
Sends a message to the rendering thread to draw the batched elements. |
|
|
GetAllowedModes() |
Accessor for allowed canvas modes |
|
|
GetAllowSwitchVerticalAxis() |
Get/Set if this Canvas allows its batched elements to switch vertical axis (e.g., rendering to back buffer should never flip) |
|
|
FBatchedElem... |
GetBatchedElements ( |
Returns a FBatchedElements pointer to be used for adding vertices and primitives for rendering. |
|
const FMatri... |
GetBottomTransform() |
Get the bottom-most element of the transform stack. |
|
float |
GetDPIScale() |
|
|
ERHIFeatureL... |
GetFeatureLevel() |
Access current feature level |
|
const FMatri... |
GetFullTransform() |
Get the current top-most transform entry |
|
FHitProxyCon... |
GetHitProxyConsumer() |
|
|
GetHitProxyId() |
||
|
GetParentCanvasSize() |
||
|
FRenderTarge... |
GetRenderTarget() |
Get the current render target for the canvas |
|
FSceneInterf... |
GetScene() |
|
|
EShaderPlatf... |
GetShaderPlatform() |
Access current shader platform |
|
FCanvasSortE... |
GetSortElement ( |
Get the sort element for the given sort key. Allocates a new entry if one does not exist |
|
const FGameT... |
GetTime() |
Access gameplay time |
|
GetTransform() |
Get the current top-most transform entry without the canvas projection |
|
|
const TArray... |
GetTransformStack() |
Returns the transform stack |
|
const FIntRe... |
GetViewRect() |
|
|
HasBatchesToRender() |
Determine if the canvas has dirty batches that need to be rendered |
|
|
IsHitTesting() |
||
|
IsScaledToRenderTarget() |
||
|
IsStereoRendering() |
||
|
IsUsingInternalTexture() |
||
|
PopDepthSortKey() |
Pop sort key off of the stack. |
|
|
PopTransform() |
Removes the top transform from the canvas's transform stack. |
|
|
PushAbsoluteTransform ( |
Pushes a transform onto the canvas's transform stack. |
|
|
PushDepthSortKey ( |
Push sort key onto the stack. Rendering is done with the current sort key stack entry. |
|
|
PushRelativeTransform ( |
Pushes a transform onto the canvas's transform stack, multiplying it with the current top of the stack. |
|
|
SetAllowedModes ( |
Toggle allowed canvas modes |
|
|
SetAllowSwitchVerticalAxis ( |
||
|
SetBaseTransform ( |
Replace the base (ie. TransformStack(0)) transform for the canvas with the given matrix |
|
|
SetHitProxy ( |
Sets the hit proxy which will be used for subsequent canvas primitives. |
|
|
SetParentCanvasSize ( |
||
|
SetRenderTarget_GameThread ( |
Sets the render target which will be used for subsequent canvas primitives. |
|
|
SetRenderTargetDirty ( |
Marks render target as dirty so that it will be resolved to texture |
|
|
SetRenderTargetRect ( |
Sets a rect that should be used to offset rendering into the viewport render target If not set the canvas will render to the full target |
|
|
SetRenderTargetScissorRect ( |
The clipping rectangle used when rendering this canvas |
|
|
SetScaledToRenderTarget ( |
||
|
SetStereoRendering ( |
||
|
SetUseInternalTexture ( |
||
|
shown ( |
Draw arbitrary aligned rectangle. |
|
|
TopDepthSortKey() |
Return top sort key of the stack. |
|
|
WrapString ( |
Name |
Description |
|
---|---|---|
|
FCanvasSortElement |
Contains all of the batched elements that need to be rendered at a certain depth sort key |
|
FTransformEntry |
Entry for the transform stack which stores a matrix and its CRC for faster comparisons |
Name |
Description |
|
---|---|---|
|
ECanvasAllowModes |
Enum for canvas features that are allowed |
|
ECanvasDrawMode |
|
|
EElementType |
Enum that describes what type of element we are currently batching. |
Name | Description | ||
---|---|---|---|
|
FCanvas *... |
Create ( |
Pass down a FGameTime instead. |
|
FCanvas ( |
Pass down a FGameTime instead. |
|
|
float |
GetCurrentDeltaWorldTime() |
|
|
float |
GetCurrentRealTime() |
|
|
float |
GetCurrentWorldTime() |