On Monday, 5 January 2015 at 09:43:28 UTC, Manu via
On 26 December 2014 at 22:33, Vadim Lopatin via
Is there any chance of supporting user-supplied rendering
If this were a library that lived above some application
DlangUI project is alive and under active development.
rendering primitives, then I could make use of this.
What rendering primitives are required? Pixel buffers? Any
processing happening? Text I imagine is a tough one...
Not sure what do you mean under user supplied rendering
If you want to render UI into custom rendering buffer, you can
define DrawBuf based class.
It requires following drawing primitives to be implemented:
- fill whole buffer with solid color
- fill rectangle with solid color
- draw font glyph (8 bit alpha image)
- draw 32 bit RGBA image
If your app is OpenGL based, there is already GLDrawBuf wich
draws into opengl.
As well, UI can be drawn in ColorDrawBuf - 32bit RGBA buffer -
and then transferred to your surface.
For embedding into third party framework, dlangui needs external
mouse and key events translated into its own events.