Skip to content

Instantly share code, notes, and snippets.

@leonkasovan
leonkasovan / drm-gbm.c
Created January 19, 2024 08:19 — forked from varphone/drm-gbm.c
drm-gbm
// gcc -o drm-gbm drm-gbm.c -ldrm -lgbm -lEGL -lGL -I/usr/include/libdrm
// general documentation: man drm
#include <xf86drm.h>
#include <xf86drmMode.h>
#include <gbm.h>
#include <EGL/egl.h>
#include <GLES2/gl2.h>
#include <stdlib.h>