UIElement.onDraw

Draw method. You should redraw the area there. For better efficiency, you may only redraw the part in _dirtyRect. diffuseMap and depthMap are made to span _position exactly, so you can draw in the area (0 .. _position.width, 0 .. _position.height)

class UIElement
protected nothrow @nogc nothrow @nogc
void
onDraw
(
ImageRef!RGBA diffuseMap
,
ImageRef!L16 depthMap
,
ImageRef!RGBA materialMap
,
box2i[] dirtyRects
)

Meta