I am trying to create an invisible overlay that captures touch events (which will be responsible with sending packets using oscpack
). Therefore, I need to create a transparent fullscreen window. (EDIT: win32 would be just fine if cross compatibility is a problem)
In the official documentation, ofBackground
seems to accept alpha blending, but when I write ofBackground(0, 255, 0, 10);
and run the project, the window is not transparent.
I also tried using ofEnableAlphaBlending();
, but the result was the same. (I think it only enables the alpha blending for new drawn stuff)
I tried to dig some more and I found a little comment inside this method:
ofAppGlutWindow::setupOpenGL(int w, int h, int screenMode)
{
//code
}
/*
ofBackground(200,200,200); // default bg color
ofSetColor(0xFFFFFF); // default draw color
// used to be black, but
// black + texture = black
// so maybe grey bg
// and "white" fg color
// as default works the best...
*/
This didn't help me as much as I thought initially, I am still stuck.