Skip to content

Instantly share code, notes, and snippets.

View Stehfyn's full-sized avatar

Stephen Foster Stehfyn

View GitHub Profile
@Stehfyn
Stehfyn / opengl-transparency-demo.cpp
Created April 24, 2023 03:56 — forked from wilkie/opengl-transparency-demo.cpp
Rendering directly to a composited window in vista+ with opengl.
#define _WIN32_WINNT 0x0500
#include <windows.h>
#include <windowsx.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <dwmapi.h>
#pragma comment (lib, "opengl32.lib")