Function BlamRendering::DirectX::Drawing::DWDrawText(std::wstring, std::wstring, float, float, float, float, float, float, float, float)¶
Defined in File drawing.h
Function Documentation¶
-
HRESULT
BlamRendering::DirectX::Drawing
::
DWDrawText
(std::wstring text, std::wstring font, float size, float left, float bottom, float right, float top, float r, float g, float b) 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.left
: - The left edge of the area.bottom
: - The bottom edge of the area.right
: - The right edge of the area.top
: - The top edge of the area.r
: - The Red color for the text color.g
: - The Green color for the text color.b
: - The Blue color for the text color.