ClipRect

A utility object that clips the draw area.

Constructors

this
this(Fill3DShader s)

Members

Functions

apply
void apply()

Redraws the stencil buffer.

popRect
void popRect()

Removes the clipping rect added last.

pushRect
void pushRect(vec2 pos, vec2 size)

Adds clipping rect.

Properties

currentRect
currentRect [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isClipping
isClipping [@property getter]

Checks if clipping is enabled.

Structs

Rect
struct Rect
Undocumented in source.

Variables

_elm
RectElement _elm;
Undocumented in source.
_rcStack
Rect[] _rcStack;
Undocumented in source.
_shader
Fill3DShader _shader;
Undocumented in source.

Meta