// See header for documentation. #include #include #include #include #include "base/colorutil.h" #include "ui/ui.h" #include "ui/ui_context.h" #include "gfx/texture_atlas.h" #include "gfx_es2/draw_buffer.h" // TODO: UI should probably not own these. DrawBuffer ui_draw2d; DrawBuffer ui_draw2d_front; void UIBegin(Draw::Pipeline *shaderSet) { ui_draw2d.Begin(shaderSet); ui_draw2d_front.Begin(shaderSet); } void UIFlush() { ui_draw2d.Flush(); ui_draw2d_front.Flush(); } void UIEnd() { ui_draw2d.End(); ui_draw2d_front.End(); ui_draw2d.Flush(); ui_draw2d_front.Flush(); }