Module |
|
Header |
/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/Drawing/MeshDebugDrawing.h |
Include |
#include "Drawing/MeshDebugDrawing.h" |
Source |
/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Private/Drawing/MeshDebugDrawing.cpp |
namespace MeshDebugDraw
{
void MeshDebugDraw::DrawSimpleFixedScreenAreaGrid
(
const FViewCameraState & CameraState,
const FFrame3f & LocalFrame,
int32 NumGridLines,
float VisualAngleSpan,
float LineWidth,
FColor Color,
bool bDepthTested,
FPrimitiveDrawInterface * PDI,
const FTransform & Transform
)
}
Draw a basic 2D grid with a given number of lines that covers roughly a constant area of the screen
Parameter |
Description |
---|---|
CameraState |
camera state, required to size grid appropriately |
LocalFrame |
Pre-transform frame of grid (grid lies in XY plane). |
GridLines |
number of grid lines. If odd, there is a center-line, if even then frame center is at center of a grid square |
VisualAngleSpan |
visual angle that grid should cover (in degrees, relative to default 90-degree FOV) |
LineWidth |
thickness of the lines in screen space |
Color |
color of the lines |
DepthPriority |
drawing depth priority |
PDI |
drawing interface |
Transform |
transform applied to LocalFrame. Pass as Identity() if you have world frame. |