Commit Graph

9 Commits

Author SHA1 Message Date
Daniel Barlow 03b32ffa7e make event_loop_add_fd available to Lua on kiwmi singleton
CAUTION - the implementation is unfinished, as it doesn't
clean up when the fd is closed
2022-07-01 22:17:41 +01:00
Daniel Barlow 49229c75f3 add per-view transformation matrices
Note that this breaks output layout. Would prefer to deal with that
stuff ("monitor 1 is left of monitor 2") in Lua for more flexibility
2022-05-21 20:30:54 +01:00
Daniel Barlow 7c061624c7 output render callback accepts { : output : renderer } 2022-05-05 23:38:39 +01:00
Daniel Barlow b804bb1c1f add "render" callback on output 2022-05-05 23:23:49 +01:00
Daniel Barlow f626324825 new lua bindings for textures
- output:renderer
- renderer:texture_from_pixels
- renderer:draw_texture

We need to be able to access the renderer outside of the post_render
hook (hence output:renderer) because we can't call
wlr_texture_from_pixels while rendering

texture_from_pixels accepts a string as the data argument not a
userdata, because that matches what we getk from GdkPixbuf.Pixbuf
new_from_file when using gobject-introspection.
2022-04-28 20:27:09 +01:00
Daniel Barlow 77444ac47c add binding to iterate through outputs 2022-04-26 15:51:29 +01:00
Daniel Barlow a43acd458f add output:set_mode, allows setting width/height of backend window
handy when running under wayland
probably not very useful on a hardware device
2022-04-26 15:51:15 +01:00
Daniel Barlow bbb9d40c69 Merge commit '28156e0c9d098738f56a976ac8fa983bf22cf6b8' as 'kiwmi' 2022-04-26 15:34:04 +01:00
Daniel Barlow 28156e0c9d Squashed 'kiwmi/' content from commit d9f4f51
git-subtree-dir: kiwmi
git-subtree-split: d9f4f519597b0eef004369af917bab3d6b73a9b0
2022-04-26 15:34:04 +01:00