Removing unused buffers.
This commit is contained in:
parent
4c2257a29d
commit
d4356b8cfa
|
@ -16,9 +16,6 @@
|
||||||
namespace xe {
|
namespace xe {
|
||||||
namespace ui {
|
namespace ui {
|
||||||
|
|
||||||
constexpr uint32_t kMaxDrawVertices = 64 * 1024;
|
|
||||||
constexpr uint32_t kMaxDrawIndices = 64 * 1024;
|
|
||||||
|
|
||||||
// File: 'ProggyTiny.ttf' (35656 bytes)
|
// File: 'ProggyTiny.ttf' (35656 bytes)
|
||||||
// Exported using binary_to_compressed_c.cpp
|
// Exported using binary_to_compressed_c.cpp
|
||||||
const char kProggyTinyCompressedDataBase85[10950 + 1] =
|
const char kProggyTinyCompressedDataBase85[10950 + 1] =
|
||||||
|
@ -27,10 +24,7 @@ const char kProggyTinyCompressedDataBase85[10950 + 1] =
|
||||||
ImGuiDrawer* ImGuiDrawer::global_drawer_ = nullptr;
|
ImGuiDrawer* ImGuiDrawer::global_drawer_ = nullptr;
|
||||||
|
|
||||||
ImGuiDrawer::ImGuiDrawer(xe::ui::Window* window)
|
ImGuiDrawer::ImGuiDrawer(xe::ui::Window* window)
|
||||||
: window_(window),
|
: window_(window), graphics_context_(window->context()) {
|
||||||
graphics_context_(window->context()),
|
|
||||||
vertices_(kMaxDrawVertices * sizeof(ImmediateVertex)),
|
|
||||||
indices_(kMaxDrawIndices * sizeof(uint16_t)) {
|
|
||||||
assert_null(global_drawer_);
|
assert_null(global_drawer_);
|
||||||
global_drawer_ = this;
|
global_drawer_ = this;
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#define XENIA_UI_IMGUI_DRAWER_H_
|
#define XENIA_UI_IMGUI_DRAWER_H_
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
#include "xenia/ui/immediate_drawer.h"
|
#include "xenia/ui/immediate_drawer.h"
|
||||||
|
|
||||||
|
@ -39,9 +38,6 @@ class ImGuiDrawer {
|
||||||
Window* window_ = nullptr;
|
Window* window_ = nullptr;
|
||||||
GraphicsContext* graphics_context_ = nullptr;
|
GraphicsContext* graphics_context_ = nullptr;
|
||||||
|
|
||||||
std::vector<ImmediateVertex> vertices_;
|
|
||||||
std::vector<uint16_t> indices_;
|
|
||||||
|
|
||||||
std::unique_ptr<ImmediateTexture> font_texture_;
|
std::unique_ptr<ImmediateTexture> font_texture_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue