// See header for documentation. #include #include #include #include #include "Common/Data/Color/RGBAUtil.h" #include "Common/UI/UI.h" #include "Common/UI/Context.h" #include "Common/Render/TextureAtlas.h" #include "Common/Render/DrawBuffer.h" // TODO: UI should probably not own these. DrawBuffer ui_draw2d; DrawBuffer ui_draw2d_front; void UIBegin(Draw::Pipeline *pipeline) { ui_draw2d.Begin(pipeline); ui_draw2d_front.Begin(pipeline); } void UIFlush() { ui_draw2d.Flush(); ui_draw2d_front.Flush(); }