updated Readme

This commit is contained in:
vurtun 2015-06-24 12:31:07 +02:00
parent 591175f02d
commit 88aee720af

View File

@ -320,6 +320,12 @@ struct gui_config config;
struct gui_font font = {...}
gui_config_default(&config, GUI_DEFAULT_ALL, &font);
/* setup layout */
struct gui_layout tiled;
gui_layout_begin(&tiled, 0, window_width, window_height);
gui_layout_slot(&tiled, GUI_SLOT_LEFT, 1.0f, GUI_LAYOUT_VERTICAL, 1);
gui_layout_end(&tiled);
struct gui_panel panel;
struct gui_input input = {0};
gui_panel_init(&panel, 0, 0, 0, 0, 0, &config, &buffer);
@ -329,12 +335,6 @@ while (1) {
/* record input */
gui_input_end(&input);
/* setup layout */
struct gui_layout tiled;
gui_layout_begin(&tiled, 0, window_width, window_height);
gui_layout_slot(&tiled, GUI_SLOT_LEFT, 1.0f, GUI_LAYOUT_VERTICAL, 1);
gui_layout_end(&tiled);
/* GUI */
struct gui_panel_layout layout;
gui_panel_begin_tiled(&layout, &panel, &tiled, GUI_SLOT_LEFT, 0, "Demo", &input);