SetHudClipRect

From ZDoom Wiki
Jump to: navigation, search

void SetHUDClipRect (int x; int y, int width, int height[, int wrapwidth]); (New from 2.7.1)

Usage

Set the clipping rectangle for future HUD messages. If you do not specify wrapwidth, the HUD message will be laid out as normal, but pixels outside the rectangle will not be drawn. If you specify wrapwidth, then the message will be wrapped to that width. Use SetHUDClipRect(0, 0, 0, 0[, 0]) to reset everything back to normal.

Parameters

  • x
The X coordinate at which the clipping rectangle starts.
  • y
The Y coordinate at which the clipping rectangle starts.
  • width
The width of the clipping rectangle.
  • height
The height of the clipping rectangle.
  • wrapwidth
(Need more info)

Examples

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated.