Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: frame buffer backend  (Read 494 times)

0 Members and 1 Guest are viewing this topic.

BMB

  • Newbie
  • *
  • Posts: 22
    • View Profile
frame buffer backend
« on: February 04, 2025, 10:05:15 am »
Hi. I am looking for a way to implement a minimalist UI on an embedded system with a small display. I am running a custom kernel and have access to the frame buffer device. Can SFML render to a frame buffer? Or does it need X11? I found no docs on how to change the rendering backend (if it is an option)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11145
    • View Profile
    • development blog
    • Email
Re: frame buffer backend
« Reply #1 on: February 04, 2025, 10:42:08 am »
Depends on your specific frame buffer device.

SFML supports Direct Rendering Manager (DRM), but it requires SFML to be compiled for it.
There's currently no dynamic switching between the two.

In order to use it, build SFML with the CMake option SFML_USE_DRM enabled.
This way, you won't need X11.
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/