Function BlamRendering::DirectX::Drawing::DrawRect(float, float, float, D2D1_RECT_F, float)

Function Documentation

HRESULT BlamRendering::DirectX::Drawing::DrawRect(float r, float g, float b, D2D1_RECT_F rect, float thickness)

Draws a rectangle.

Return

S_OK if the item was drawn successfully, otherwise returns an error code.

Parameters
  • r: - The Red color for the rectangle’s border and interior.

  • g: - The Green color for the rectangle’s border and interior.

  • b: - The Blue color for the rectangle’s border and interior.

  • rect: - The area of the rectangle.

  • thickness: - The thickness of the rectangle’s border.