Add parsing of XML layout files into a ParsedLayoutNode tree

This commit is contained in:
Keavon Chambers
2020-05-25 22:08:27 -07:00
parent 474b2b39f9
commit f8025b15ea
13 changed files with 221 additions and 55 deletions
+3 -1
View File
@@ -3,7 +3,7 @@ use crate::window_events;
use crate::pipeline::Pipeline;
use crate::texture::Texture;
use crate::resource_cache::ResourceCache;
use crate::draw_command::DrawCommand;
use crate::component_layout::ComponentLayout;
use crate::gui_node::GuiNode;
use winit::event::*;
use winit::event_loop::*;
@@ -75,6 +75,8 @@ impl Application {
let gui_root_data = GuiNode::new(swap_chain_descriptor.width, swap_chain_descriptor.height, ColorPalette::get_color_srgb(ColorPalette::Accent));
let gui_root = rctree::Node::new(gui_root_data);
ComponentLayout::new();
Self {
surface,
adapter,