Module |
|
Header |
/Engine/Source/Runtime/RenderCore/Public/RendererInterface.h |
Include |
#include "RendererInterface.h" |
void DrawRectangle
(
FRHICommandList & RHICmdList,
float X,
float Y,
float SizeX,
float SizeY,
float U,
float V,
float SizeU,
float SizeV,
FIntPoint TargetSize,
FIntPoint TextureSize,
const TShaderRefBase< FShader, FShaderMapPointerTable > & VertexShader,
EDrawRectangleFlags Flags
)
Draws a quad with the given vertex positions and UVs in denormalized pixel/texel coordinates. The platform-dependent mapping from pixels to texels is done automatically. Note that the positions are affected by the current viewport. NOTE: DrawRectangle should be used in the vertex shader to calculate the correct position and uv for vertices.
X, Y Position in screen pixels of the top left corner of the quad SizeX, SizeY Size in screen pixels of the quad U, V Position in texels of the top left corner of the quad's UV's SizeU, SizeV Size in texels of the quad's UV's TargetSizeX, TargetSizeY Size in screen pixels of the target surface TextureSize Size in texels of the source texture VertexShader The vertex shader used for rendering Flags see EDrawRectangleFlags