Loading a window texture from a HWND into an OpenGL texture
问题 So what I'm trying to accomplish is getting a handle to a window by name (e.g. Slack) and copying that windows pixel information into an OpenGL texture. I've been basically learning C++ and OpenGL as I've been trying to accomplish this. Before this I had mostly worked with Java. I managed to load a picture of a cute kitten into a texture and display that on a quad. I've also found a HWND handle to a specific window. The problem I have is loading the pixel information from the window and