Wayland example window
This commit is contained in:
parent
160b746182
commit
26f54c4581
30 changed files with 825 additions and 22 deletions
23
test/windows/TestWaylandWindow.cpp
Normal file
23
test/windows/TestWaylandWindow.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "WaylandWindowInterface.h"
|
||||
|
||||
#include "Window.h"
|
||||
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
WaylandWindowInterface window_interface;
|
||||
window_interface.connect();
|
||||
|
||||
auto window = mt::Window::Create();
|
||||
window->SetSize(800, 600);
|
||||
|
||||
window_interface.addWindow(window.get());
|
||||
|
||||
window_interface.createSurface();
|
||||
|
||||
window_interface.run();
|
||||
|
||||
window_interface.disconnect();
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue