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