-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDL2 instead of Xlib, possible? #7
Comments
It largely depends on how the KMSDRM backend is implemented in SDL2. I haven't looked into it too much, but in general if it's possible to create an OpenGL 3.3 context then it won't be too hard to do. This is definitely going on my to-do list though! |
@mdodis Thing is, I did part of the KMSDRM backen on SDL2! |
That's amazing! I'll give it a try on the next session then! Thank you for the advice! |
@mdodis This is the fn that lets you create a window in SDL2: https://wiki.libsdl.org/SDL_CreateWindow Just pass the SDL_WINDOW_OPENGL flag, and presto! You can also set the context version (GLES; OpenGL version, etc..) This will init a GLES2 context:
|
Okay, a8a3c15 seems to be working ok, in terms of GLES stuff. I'll test out the KMSDRM backend to see if everything's alright tomorrow and then I'll upload the new build. Thank you so much for the help! |
@mdodis You seem to be using GLES3 there. Can you please use GLES2? That would allow Raspberry Pi 1-2-3 compatibility. |
@mdodis Also remember that in order to test the KMSDRM backend, you have to build your own SDL2 passing You can do so in the latest SDL2 version from mercurial, which you can download like this:
|
@vanfanel Alright, I've tested it on the one machine I have and it seems to be working, (I also needed to build SDL with libudev). Audio should be working as well, though that's not a main priority. Regarding the use of GLES3, that's going to take a bit more time because version 2 doesn't have the extension I use for tilemaps. |
I loved Solomon's Key on the NES and it inspired some of the mechanics in my pygame-based game Flyboy. Did you ever get the game running on gles and without requiring x-lib? I would like to add it to the portmaster project for the Anbernic rg351 retro handheld. The firmware I run on it lacks x-windows but well supports sld2. |
I'm not 100% sure that it will work, but the latest version here does include an sdl_solomons_key executable that should support the KMS-DRM backend. I don't have anything to test it on right now but can you try running it with "-fullscreen"? It should work if your device supports GLES 3 |
Hi there!
I am a big fan of open source games on GNU/Linux and I would like to build this Solomon's Key to Raspberry Pi without Xorg. Gaming without Xorg is possible by using the KMSDRM backend that SDL2 has.
So, do you have any plans for SDL2 instead of Xlib?
The text was updated successfully, but these errors were encountered: