Skip to content

jqcorreia/wayland-odin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wayland-odin

Usage

Vendor the wayland folder into your project and add the following to your odin file:

import wl "wayland"

Nothing else, pretty standard.

You can also submodule it and import it with

import wl "wayland-odin/wayland"

If you want to use the scanner, you can do so by running the following command:

odin run wayland -i <xml-input-file> -o <output-file>

The code will be generated with package wayland at the header. PR are accepted to do it otherwise.

Devlog

  • Port just enough to call wl_display_get_registry and receive the globals list
  • Usable wayland-scanner that ports code to odin.
  • Write obligatory cornflower blue example
  • Solve shm file allocation bug that makes Hyprland crap its pants
  • Generate _destroy methods that don't collide with interface 'destroy' methods, check C scanner for this
  • Fix WAYLAND_DEBUG=1 crash
  • Implement server side generation.
  • Generate more ergonomic code maybe without cdecl procs
  • Have quality enough to submit as vendor
  • Do not depend on libwayland (if this goes in a really awesome fashion)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published