Skip to content

Commit 47f5e16

Browse files
committed
GLFW Window Enable Transparency with settings variable. Start Draw with: ofClear(0, 0, 0, 0);
1 parent 26490c5 commit 47f5e16

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libs/openFrameworks/app/ofAppGLFWWindow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ void ofAppGLFWWindow::setup(const ofGLFWWindowSettings & _settings){
178178
glfwWindowHint(GLFW_SAMPLES, settings.numSamples);
179179
glfwWindowHint(GLFW_RESIZABLE, settings.resizable);
180180
glfwWindowHint(GLFW_DECORATED, settings.decorated);
181+
glfwWindowHint(GLFW_TRANSPARENT_FRAMEBUFFER, settings.transparent);
181182
#ifdef TARGET_OPENGLES
182183
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, settings.glesVersion);
183184
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);

libs/openFrameworks/app/ofAppGLFWWindow.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class ofGLFWWindowSettings: public ofGLWindowSettings{
5050
bool iconified = false;
5151
bool decorated = true;
5252
bool resizable = true;
53+
bool transparent = false;
5354
int monitor = 0;
5455
bool multiMonitorFullScreen = false;
5556
std::shared_ptr<ofAppBaseWindow> shareContextWith;

0 commit comments

Comments
 (0)