Moving elemental to immediate drawer.

This commit is contained in:
Ben Vanik
2015-11-07 09:52:57 -08:00
parent 440c807936
commit fdf59fec5f
11 changed files with 169 additions and 363 deletions

View File

@@ -23,6 +23,7 @@
#include "xenia/base/assert.h"
#include "xenia/base/clock.h"
#include "xenia/base/logging.h"
#include "xenia/ui/elemental_drawer.h"
namespace xe {
namespace ui {
@@ -129,7 +130,7 @@ bool Window::InitializeElemental(Loop* loop, el::graphics::Renderer* renderer) {
bool Window::OnCreate() { return true; }
bool Window::MakeReady() {
renderer_ = context_->CreateElementalRenderer();
renderer_ = std::make_unique<ElementalDrawer>(this);
// Initialize elemental.
// TODO(benvanik): once? Do we care about multiple controls?
@@ -143,7 +144,7 @@ bool Window::MakeReady() {
root_element_->set_background_skin(TBIDC("background"));
root_element_->set_rect({0, 0, width(), height()});
// el::util::ShowDebugInfoSettingsWindow(root_element_.get());
el::util::ShowDebugInfoSettingsForm(root_element_.get());
return true;
}