This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* A simple Wayland EGL program to show a triangle | |
* | |
* cc -o triangle_simple triangle_simple.c -lwayland-client -lwayland-egl -lEGL -lGLESv2 | |
*/ | |
#include <EGL/egl.h> | |
#include <GLES2/gl2.h> | |
#include <assert.h> | |
#include <string.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <pthread.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <stdio.h> | |
// Small channel library here. | |
// It mimics unbuffered Go channels. | |
typedef struct chan_int { | |
int message; |