Skip to content

Instantly share code, notes, and snippets.

View vicki-c's full-sized avatar

Vicki Cheung vicki-c

  • San Francisco, CA
View GitHub Profile
@Madsy
Madsy / gist:6980061
Last active June 1, 2024 08:57
Working multi-threading two-context OpenGL example with GLFW 3.0.3 and GLEW 1.8
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <vector>
#include <cmath>
#include <cstdio>
#include <limits>
#include <chrono>
#include <thread>
#include <mutex>