- compositor
ICompositor compositor;
Undocumented in source.
- ~this
~this()
Undocumented in source.
- openUI
void* openUI(void* parentInfo, void* controlInfo, DAW daw, GraphicsBackend backend)
Undocumented in source. Be warned that the author may not have intended to support it.
- closeUI
void closeUI()
Undocumented in source. Be warned that the author may not have intended to support it.
- getGUISize
void getGUISize(int* width, int* height)
Undocumented in source. Be warned that the author may not have intended to support it.
- StopWatch
class StopWatch
Undocumented in source.
- WindowListener
class WindowListener
Undocumented in source.
- setUpdateMargin
void setUpdateMargin(int margin)
Tune this to tune the trade-off between light quality and speed.
The default value was tuned by hand on very shiny light sources.
Too high and processing becomes very expensive.
Too little and the ligth decay doesn't feel natural.
- _uiContext
UIContext _uiContext;
Undocumented in source.
- _windowListener
WindowListener _windowListener;
Undocumented in source.
- _window
IWindow _window;
Undocumented in source.
- _threadPool
ThreadPool _threadPool;
Undocumented in source.
- _askedWidth
int _askedWidth;
Undocumented in source.
- _askedHeight
int _askedHeight;
Undocumented in source.
- _diffuseMap
Mipmap!RGBA _diffuseMap;
Undocumented in source.
- _depthMap
Mipmap!L16 _depthMap;
Undocumented in source.
- _materialMap
Mipmap!RGBA _materialMap;
Undocumented in source.
- _areasToUpdateNonOverlapping
AlignedBuffer!box2i _areasToUpdateNonOverlapping;
Undocumented in source.
- _areasToUpdateTemp
AlignedBuffer!box2i _areasToUpdateTemp;
Undocumented in source.
- _updateRectScratch
AlignedBuffer!box2i[2] _updateRectScratch;
Undocumented in source.
- _areasToRender
AlignedBuffer!box2i _areasToRender;
Undocumented in source.
- _areasToRenderNonOverlapping
AlignedBuffer!box2i _areasToRenderNonOverlapping;
Undocumented in source.
- _areasToRenderNonOverlappingTiled
AlignedBuffer!box2i _areasToRenderNonOverlappingTiled;
Undocumented in source.
- _elemsToDraw
AlignedBuffer!UIElement _elemsToDraw;
Undocumented in source.
- _elemsToDrawScratch
AlignedBuffer!UIElement _elemsToDrawScratch;
Temporary buffer for stable sorting of _elemsToDraw
- _updateMargin
int _updateMargin;
Amount of pixels dirty rectangles are extended with.
- _renderedBuffer
ubyte* _renderedBuffer;
Undocumented in source.
- _compositingWatch
StopWatch _compositingWatch;
Undocumented in source.
- _mipmapWatch
StopWatch _mipmapWatch;
Undocumented in source.
- _drawWatch
StopWatch _drawWatch;
Undocumented in source.
- doDraw
void doDraw(WindowPixelFormat pf)
Undocumented in source. Be warned that the author may not have intended to support it.
- recomputeDirtyAreas
void recomputeDirtyAreas()
Undocumented in source. Be warned that the author may not have intended to support it.
- extendsDirtyRect
box2i extendsDirtyRect(box2i rect, int width, int height)
Undocumented in source. Be warned that the author may not have intended to support it.
- doResize
ImageRef!RGBA doResize(int width, int height)
Undocumented in source. Be warned that the author may not have intended to support it.
- renderElements
void renderElements()
- compositeGUI
void compositeGUI(ImageRef!RGBA wfb, WindowPixelFormat pf)
Compose lighting effects from depth and diffuse into a result.
takes output image and non-overlapping areas as input
Useful multithreading code.
- regenerateMipmaps
void regenerateMipmaps()
Compose lighting effects from depth and diffuse into a result.
takes output image and non-overlapping areas as input
Useful multithreading code.
PBRBackgroundGUI provides a PBR background loaded from PNG or JPEG images. It's very practical while in development because it let's you reload the six images used with the press of ENTER. The path of each of these images (given as a template parameter) must be in your "stringImportPaths" settings.