2012-04-10 10:36:38 +00:00
|
|
|
// See header for documentation.
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2012-10-30 12:07:55 +00:00
|
|
|
#include <cmath>
|
2012-11-03 02:34:06 +00:00
|
|
|
#include <cstring>
|
2012-04-10 10:36:38 +00:00
|
|
|
|
2020-10-01 11:05:04 +00:00
|
|
|
#include "Common/Data/Color/RGBAUtil.h"
|
2020-10-04 18:48:47 +00:00
|
|
|
#include "Common/UI/UI.h"
|
|
|
|
#include "Common/UI/Context.h"
|
2020-10-04 21:24:14 +00:00
|
|
|
#include "Common/Render/TextureAtlas.h"
|
|
|
|
#include "Common/Render/DrawBuffer.h"
|
2012-04-10 10:36:38 +00:00
|
|
|
|
2012-05-13 22:42:42 +00:00
|
|
|
// TODO: UI should probably not own these.
|
2012-04-10 10:36:38 +00:00
|
|
|
DrawBuffer ui_draw2d;
|
2012-04-12 20:16:30 +00:00
|
|
|
DrawBuffer ui_draw2d_front;
|
2012-07-26 11:47:15 +00:00
|
|
|
|
2018-12-16 20:48:35 +00:00
|
|
|
void UIBegin(Draw::Pipeline *pipeline) {
|
|
|
|
ui_draw2d.Begin(pipeline);
|
|
|
|
ui_draw2d_front.Begin(pipeline);
|
2012-04-10 10:36:38 +00:00
|
|
|
}
|
|
|
|
|
2013-03-30 18:23:02 +00:00
|
|
|
void UIFlush() {
|
|
|
|
ui_draw2d.Flush();
|
|
|
|
ui_draw2d_front.Flush();
|
|
|
|
}
|