Skip to content

Linux Framebuffer ​

We can use Linux Framebuffer to draw graphics directly to the screen without X11 or Wayland.

Basic Example ​

EXPLORER
src
main.c
xmake.lua
Lua xmake.lua
12345
add_rules("mode.debug", "mode.release")

target("linux_framebuffer")
    set_kind("binary")
    add_files("src/*.c")

Build and Run ​

bash
$ xmake
$ xmake run