Skip to content

Instantly share code, notes, and snippets.

View DevFelixFaber's full-sized avatar

Felix Faber DevFelixFaber

  • Germany
View GitHub Profile
@DevFelixFaber
DevFelixFaber / 00_wayland_opengl_main.c
Created July 10, 2024 19:11
Wayland OpenGL Example Application. Includes Keyboard input (with key-repeat), mouse events, setting the mouse cursor image/icon, retrieving the refreshrate, and measuring render time.
#define _GNU_SOURCE
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <assert.h>
#include <string.h>
#include <time.h>
#include <poll.h>
#include <sys/timerfd.h>