Moving graphics context creation around to hide actual creation.

Makes it easier to support APIs that don't have a concept of sharing.
This commit is contained in:
Ben Vanik
2015-11-10 17:38:57 -08:00
parent d8fa54ffc4
commit 6c95ca1cdb
16 changed files with 234 additions and 97 deletions

View File

@@ -9,11 +9,14 @@
#include "xenia/ui/graphics_context.h"
#include "xenia/ui/graphics_provider.h"
namespace xe {
namespace ui {
GraphicsContext::GraphicsContext(Window* target_window)
: target_window_(target_window) {}
GraphicsContext::GraphicsContext(GraphicsProvider* provider,
Window* target_window)
: provider_(provider), target_window_(target_window) {}
GraphicsContext::~GraphicsContext() = default;