- onDrawBufferedPBR
void onDrawBufferedPBR(ImageRef!RGBA diffuseMap, ImageRef!L16 depthMap, ImageRef!RGBA materialMap, ImageRef!L8 diffuseOpacity, ImageRef!L8 depthOpacity, ImageRef!L8 materialOpacity)
Redraws the whole widget without consideration for drawing only in dirty rects.
That is a lot of maps to fill. On the plus side, this happen quite infrequently.
- onDrawPBR
void onDrawPBR(ImageRef!RGBA diffuseMap, ImageRef!L16 depthMap, ImageRef!RGBA materialMap, box2i[] dirtyRects)
Undocumented in source. Be warned that the author may not have intended to support it.
- setDirty
void setDirty(box2i rect, UILayer layer)
Undocumented in source. Be warned that the author may not have intended to support it.
- setDirtyWhole
void setDirtyWhole(UILayer layer)
Undocumented in source. Be warned that the author may not have intended to support it.
Extending the UIElement with an owned drawing buffer. This is intended to have easier dirtyrect-compliant widgets. Also caches expensive drawing, but it's not free at all.
No less than three additional opacity channels must be filled to be able to blend the widgets explicitely. The semantic of the opacity channels are: opacity left at 0 => pixel untouched opacity > 0 => pixel is touched, blending will occur