Navigation
API > API/Runtime > API/Runtime/Engine
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void DrawTorus
(
FPrimitiveDrawInterface* PDI, |
Draws a torus using triangles. | PrimitiveDrawingUtils.h | |
void DrawTorus
(
FPrimitiveDrawInterface* PDI, |
Draws a torus using triangles. | PrimitiveDrawingUtils.h |
DrawTorus(FPrimitiveDrawInterface , const FMatrix &, const FVector &, const FVector &, double, double, int32, int32, const FMaterialRenderProxy , uint8, bool, float, bool)
Description
Draws a torus using triangles.
| Name | DrawTorus |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/PrimitiveDrawingUtils.h |
| Include Path | #include "PrimitiveDrawingUtils.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PrimitiveDrawingUtils.cpp |
void DrawTorus
(
FPrimitiveDrawInterface * PDI,
const FMatrix & Transform,
const FVector & XAxis,
const FVector & YAxis,
double OuterRadius,
double InnerRadius,
int32 OuterSegments,
int32 InnerSegments,
const FMaterialRenderProxy * MaterialRenderProxy,
uint8 DepthPriority,
bool bPartial,
float Angle,
bool bEndCaps
)
Parameters
| Name | Remarks |
|---|---|
| PDI | Draw interface. |
| Transform | Generic transform to apply (ex. a local-to-world transform). |
| XAxis | Normalized X alignment axis. |
| YAxis | Normalized Y alignment axis. |
| OuterRadius | Radius of the torus center-line. Viewed from above, the outside of the torus has a radius of OuterRadius + InnerRadius and the hole of the torus has a radius of OuterRadius - InnerRadius. |
| InnerRadius | Radius of the torus's cylinder. |
| OuterSegments | Numbers of segment divisions for outer circle. |
| InnerSegments | Numbers of segment divisions for inner circle. |
| MaterialRenderProxy | Material to use for render |
| DepthPriority | Depth priority for the circle. |
| bPartial | Whether full or partial torus should be rendered. |
| Angle | If partial, angle in radians of the arc clockwise beginning at the XAxis. |
| bEndCaps | If partial, whether the ends should be capped with triangles. |
DrawTorus(FPrimitiveDrawInterface , const FMatrix &, const FVector &, const FVector &, FColor, double, double, int32, int32, const FMaterialRenderProxy , uint8, bool, float, bool)
Description
Draws a torus using triangles.
| Name | DrawTorus |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/PrimitiveDrawingUtils.h |
| Include Path | #include "PrimitiveDrawingUtils.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PrimitiveDrawingUtils.cpp |
void DrawTorus
(
FPrimitiveDrawInterface * PDI,
const FMatrix & Transform,
const FVector & XAxis,
const FVector & YAxis,
FColor Color,
double OuterRadius,
double InnerRadius,
int32 OuterSegments,
int32 InnerSegments,
const FMaterialRenderProxy * MaterialRenderProxy,
uint8 DepthPriority,
bool bPartial,
float Angle,
bool bEndCaps
)
Parameters
| Name | Remarks |
|---|---|
| PDI | Draw interface. |
| Transform | Generic transform to apply (ex. a local-to-world transform). |
| XAxis | Normalized X alignment axis. |
| YAxis | Normalized Y alignment axis. |
| Color | Color of the circle. |
| OuterRadius | Radius of the torus center-line. Viewed from above, the outside of the torus has a radius of OuterRadius + InnerRadius and the hole of the torus has a radius of OuterRadius - InnerRadius. |
| InnerRadius | Radius of the torus's cylinder. |
| OuterSegments | Numbers of segment divisions for outer circle. |
| InnerSegments | Numbers of segment divisions for inner circle. |
| MaterialRenderProxy | Material to use for render |
| DepthPriority | Depth priority for the circle. |
| bPartial | Whether full or partial torus should be rendered. |
| Angle | If partial, angle in radians of the arc clockwise beginning at the XAxis. |
| bEndCaps | If partial, whether the ends should be capped with triangles. |