c++openglactive-window

How can I determine if the OpenGL window is the active window?


How can I determine if the OpenGL window is the active window?


Solution

  • OpenGL only deals with drawing stuff. Terms like "Window" "Active" or "Focused" are completely outside the scope of OpenGL. You need to consult your windowing system's functions for this (Win32, X11, or functions provided by a cross-plattform toolkit)