OpenGL

The NxLib uses OpenGL for some rendering operations, including

Headless Rendering on Linux

The NxLib uses EGL 1.5 to initialize the rendering context on Linux. In most cases, this should simply work using Mesa or the manufacturer’s driver for your GPU.

Manual Specification of the EGL Platform

Use eglinfo to list the available EGL platforms. The name of the platforms is printed before the platform: suffix.

You can specify an explicit platform to use by setting the EGL_PLATFORM environment variable to the name of the platform (e.g. Device).

Headless Rendering with X Server and Nvidia Driver

For some usages like in an SSH session the X server with the Nvidia driver automatically falls back to software rendering using Mesa instead of the hardware. You can enforce rendering on hardware by unsetting the DISPLAY environment variable (if you don’t actually need X) or setting the EGL_PLATFORM environment variable as described above.