Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
LDFLAGS = $(CAIRO_LIBS) $(WAYLAND_LIBS)
bin_PROGRAMS = simple
-simple_SOURCES = simple.cpp display.cpp
+simple_SOURCES = \
+ simple.cpp \
+ display.cpp \
+ window.cpp
wl_compositor* compositor() { return compositor_; }
wl_display* display() { return display_; }
+ wl_shell* shell() { return shell_; }
+ EGLConfig& config() { return argbConfig_; }
+ EGLContext& context() { return argbContext_; }
private:
wl_display* display_;
#include <cstdlib>
#include "display.h"
+#include "window.h"
int main(const int argc, const char** argv)
{
wayland::Display display;
+ wayland::Window window(display);
return 0;
}
+#include <cassert>
+#include <wayland-client.h>
+#include <wayland-egl.h>
+
#include "window.h"
namespace wayland {
wl_shell_surface_set_toplevel(shellSurface_);
assert(
- eglMakeCurrent(display_.display(), eglSurface_, eglSurface_, display_.context()
+ eglMakeCurrent(display_.display(), eglSurface_, eglSurface_, &display_.context())
== EGL_TRUE
);
}