o
odinpkg.dev
packages / binding / ow

ow

0a9e6dbbinding archived

Odin wayland bindings

MIT · updated 7 months ago

Wayland bindings for The Odin programming langauge

All the bindings are generated from xml files in protocols/ directory.

The Client side bindings are available in bindings/client/ directory. Server side bindings are W.I.P ATM.

Wayland EGL window bindings and implementation(not yet tested) are available in egl/ directory.

Both the Client and Server bindings are designed to load libwayland-client.so or libwayland-server.so respectively at runtime when init() is called. For more information about bindings, please refer to README in /bindings directory.

Examples

Two examples files used for testing client side bindings are provided. EGL and OpenGL example might be added later.

  1. A simple shared memory example(simple_client_shm.odin)
  2. A simple vulkan renderer(vulkan_blank_screen.odin)

To try them, cd into /examples directory and run odin run <file_name> -file