#include "UltraEngine.h"
using namespace UltraEngine;
int main(int argc, const char* argv[]) {
//Get the displays
auto displays = GetDisplays();
//Create window
auto window = CreateWindow("Ultra Engine", 0, 0, 200, 300, displays[0]);
//Create user interface
auto ui = CreateInterface(window);
//Create a pixmap
auto icon = LoadIcon("https://raw.githubusercontent.com/UltraEngine/Documentation/master/Assets/Materials/Logos/23.svg");
auto icon2 = icon->Copy()->As<Icon>();
auto panel1 = CreatePanel(0, 0, 100, 100, ui->root);
panel1->SetIcon(icon, PIXMAP_STRETCH);
auto panel2 = CreatePanel(0, 101, 100, 100, ui->root);
panel2->SetIcon(icon2, PIXMAP_STRETCH);
//Show the icon
//ui->root->SetIcon(icon);
while (true) {
const Event ev = WaitEvent();
switch (ev.id) {
case EVENT_WINDOWCLOSE:
return 0;
break;
}
}
return 0;
}