Function BlamRendering::DirectX::Drawing::DWDrawText(std::wstring, std::wstring, float, D2D1_RECT_F, D2D1_COLOR_F)¶
Defined in File drawing.h
Function Documentation¶
-
HRESULT
BlamRendering::DirectX::Drawing
::
DWDrawText
(std::wstring text, std::wstring font, float size, D2D1_RECT_F area, D2D1_COLOR_F color) Draws a string using DirectWrite.
- Return
S_OK
if the item was drawn successfully, otherwise returns an error code.- Parameters
text
: - The text to draw.font
: - The name of the font to use. Can be the name of any installed system font.size
: - The size to draw the text at.area
: - The area to draw the text within.color
: - The color to use for the text.