Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/BatchedElements.h |
| Include | #include "BatchedElements.h" |
Syntax
class FBatchedElements
Remarks
Batched elements for later rendering.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Constructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddLine
(
const FVector& Start, |
Adds a line to the batch. Note only SE_BLEND_Opaque will be used for batched line rendering. | |
| void | AddPoint
(
const FVector& Position, |
Adds a point to the batch. Note only SE_BLEND_Opaque will be used for batched point rendering. | |
| void | AddReserveLines
(
int32 NumLines, |
Reserves space in line vertex array | |
| void | AddReserveTriangles
(
int32 NumMeshTriangles, |
Reserves space in index array for a mesh element for current number plus expected number. | |
| void | AddReserveVertices
(
int32 NumMeshVerts |
Reserves space in mesh vertex array for current number plus expected number. | |
| void | AddSprite
(
const FVector& Position, |
Adds a sprite to the batch. | |
| void | AddTranslucentLine
(
const FVector& Start, |
Adds a translucent line to the batch. | |
| void | AddTriangle
(
int32 V0, |
Adds a triangle to the batch. | |
| void | AddTriangle
(
int32 V0, |
Adds a triangle to the batch. | |
| void | AddTriangle
(
int32 V0, |
Adds a triangle to the batch. | |
| void | AddTriangleExtensive
(
int32 V0, |
Adds a triangle to the batch. Extensive version where all parameters can be passed in. | |
| int32 | AddVertex
(
const FVector4& InPosition, |
This is for compatibility but should be avoided since it's slower due to conversions. | |
| int32 | AddVertexf
(
const FVector4f& InPosition, |
Adds a mesh vertex to the batch. | |
| void | Clear () |
Clears any batched elements | |
| FSceneView | CreateProxySceneView
(
const FMatrix& ProjectionMatrix, |
Creates a proxy FSceneView for operations that are not tied directly to a scene but still require batched elements to be drawn. | |
| bool | Draw
(
FRHICommandList& RHICmdList, |
Draws the batch | |
| void | EnableMobileHDREncoding
(
bool bInEnableHDREncoding |
||
| uint32 | Helper function to return the amount of memory allocated by this class | ||
| bool | |||
| void | ReserveTriangles
(
int32 NumMeshTriangles, |
Reserves space in index array for a mesh element | |
| void | ReserveVertices
(
int32 NumMeshVerts |
Reserves space in mesh vertex array for at least this many total verts. |