Skip Navigation
Homebrew development for the RG35XXH -- How to get a graphical display?

TL;DR: What linux API should be used to render a game to the screen on the RG35XXH?

I'm trying to port a solitaire game to the RG35XXH. Currently I'm using GLFW to get a window on my laptop; however GLFW doesn't support running without an X11 or Wayland server running.

I looked into EGL, which worked, kind of. It can fetch an OpenGL ES context but it has no way to display the rendered framebuffer to the screen.

Most recently I looked into KMS + DRM. I found a repository with code explaining how to interface with the DRM, and got it working on my laptop, which is nice! However on the RG35XXH (with Batocera v40) there is no /dev/dri/ folder 😦 . I can only assume that this means Batocera doesn't use DRI/DRM/KMS at the moment.

Next I might try using a frame buffer device. Running cat /dev/urandom > /dev/fb0 fills the screen with random colors; so I should be able to implement rendering with it. However I don't know if this is the correct route to go.

Now, as I understand it, SDL2 is supposed to support rendering to these types of devices. I've been avoiding SDL2 as I would prefer to distribute the program as a single executable file, and its license makes that more difficult.

0
U.S. Sues Apple, Accusing It of Maintaining an iPhone Monopoly
  • This headline is wrong. The DOJ is alleging that they are being anticompetitive in the Performance Smartphone market, and further that their anticompetitive behavior affects even the regular smartphone market.

  • China's new high-speed train just set a new record as the world’s fastest — and it could travel faster than an airplane
  • I think this is unlikely to happen. Going through security is one of the big sources of useless queues at airports, which trains don't have. Trains also tend to have more doors to get, which should reduce the length of queues to get on the train.

  • What kinda game is that?
  • Is that with Linux kernel specifically or the user space? I've heard that Linus tries to keep the kernel interface stable, but most userspace progtams don't share that philosophy.

  • Deleted
  • The question is underspecified. Why do you want to know if free will exists? What will you do differently if it does exist vs if it does not exist?

    This is similar to questions like, "is water wet?" You can generate endless debate on the topic, but it's all intellectual masturbation until you are genuinely looking for the answer to a specific question.

  • lived in the United States my entire life, and I'm on a trip to Finland and Sweden

    And wow; being able to walk places is amazing 😍! It's so freeing to not need a car for everything. I the US I live close enough to work to walk, but the terrible design of the stroads makes it very unpleasant. I want to stay here, I don't want to go back to the car dependent suburbs 🙁.

    Unfortunately the trip was planned by my parents and we've spent a lot of time in a car traveling to places. I don't mind pretty scenery, but multiple 6 hours days of car travel is boring. And really I wanted to see the urban design, not the country side.

    0
    Are you getting a ROG Ally?
  • I am considering getting an ROG since I recently lost my steam deck (left it behind whole traveling 😞). While I live the steam deck, its bulk makes traveling with it difficult. I mostly play small indie games, so I'm wondering if I something like the Win600 would give me better battery life.

  • InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)GE
    geemili @lemm.ee
    Posts 2
    Comments 16