tonarino / just-gl

Run an OpenGL application on Linux, and nothing more.
1 stars 0 forks source link

just-gl

Run an OpenGL application on Linux, and nothing more.

Terminology

Kernel Setup for Nvidia Cards

I had to add nvidia_drm.modeset=1 as a kernel commandline parameter. On Arch this was done by editing /boot/loader/entries/arch.conf.

Reading References

https://gitlab.freedesktop.org/mesa/kmscube

https://github.com/dvdhrm/docs/tree/master/drm-howto

https://zamundaaa.github.io/wayland/2023/03/10/porting-away-from-gbm-surface.html

https://github.com/nyorain/kms-vulkan#what-are-egl-and-gbm

https://github.com/CuarzoSoftware/SRM

https://github.com/rust-windowing/winit/pull/2272

Remote Environment Setup

Development can take place much faster if you develop in your local environment, and run/test on a remote machine without X11 or Wayland.

It's also necessary if you're developing on a non-linux platform, as libdrm and others are highly linux-specific.

I (bschwind) am currently using Sublime Text with this remote setup:

Sublime RSync SSH Config

``` { "folders": [ { "path": "/Users/brian/projects/tonari/just-gl", } ], "settings": { "rsync_ssh": { "excludes": [ ".git*", "_build", "blib", "Build" ], "options": [ "--delete" ], "remotes": { "/Users/brian/projects/tonari/just-gl": [ { "command": "rsync", "enabled": 1, "excludes": [ ], "options": [ ], "remote_host": "tonarchi-test-machine.tonari.wg", "remote_path": "/home/tonari/projects/just-gl", "remote_port": 22, "remote_post_command": "", "remote_pre_command": "", "remote_user": "tonari" } ] }, "sync_on_save": true } }, } ```