-
Hey, i'm trying to do a little thingie with tgfx and SDL3, and i am wondering how do you create the window. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You download math.p plugin then go to /etc/tgfx/conf.d/ and create a symbolic link to /opt/matthieu/bin/quantum_window.sock. After that, reboot in Stealth Mode by holding Shift + F13, and TGFX should detect the window context via the MathieuProtocol. |
Beta Was this translation helpful? Give feedback.
-
On Linux, we typically use offscreen rendering instead of opening a window, since there are many different window systems across distributions. As a result, the default implementation of tgfx::EGLWindow does not support opening a Linux window yet. However, you can implement this yourself. The key is to find a minimal example of opening a Linux window and setting up EGL for rendering. Then, wrap EGLDisplay, EGLSurface, and EGLContext with tgfx::EGLDevice::MakeFrom(). Here is a basic example for opening an X11 window with EGL. It may not be perfect, but it should give you a good starting point:
|
Beta Was this translation helpful? Give feedback.
On Linux, we typically use offscreen rendering instead of opening a window, since there are many different window systems across distributions. As a result, the default implementation of tgfx::EGLWindow does not support opening a Linux window yet. However, you can implement this yourself. The key is to find a minimal example of opening a Linux window and setting up EGL for rendering. Then, wrap EGLDisplay, EGLSurface, and EGLContext with tgfx::EGLDevice::MakeFrom(). Here is a basic example for opening an X11 window with EGL. It may not be perfect, but it should give you a good starting point: