Entradas

Mostrando entradas de septiembre, 2023

Creating an OpenGL app without display server on Linux (tutorial)

Imagen
Are you in the process of crafting an OpenGL application but wish to remain independent of display servers like Wayland or X11? Perhaps you're developing a graphical application for a resource-constrained embedded device, or you've ventured into the creation of your own display server, only to encounter challenges when using the low-level DRM/KMS API. If any of these scenarios resonate with you, you've come to the right place. In this tutorial, we will guide you through the process of creating an OpenGL application using the SRM library, which stands for Simple Rendering Manager. This library streamlines the configuration of all available GPUs and displays, allowing you to concentrate on developing your OpenGL ES 2.0 application. Moreover, it offers valuable features such as listeners for display hotplugging events, such as HDMI display connections and disconnections. Additionally, it facilitates rendering with multiple GPUs and enables texture sharing between them, all thr