Class GLUtils

java.lang.Object
sc.fiji.snt.util.GLUtils

public class GLUtils extends Object
Helpers for querying GPU/OpenGL capabilities.
Author:
Tiago Ferreira
  • Method Details

    • getInfo

      public static GLUtils.Info getInfo()
      Queries GPU/OpenGL info via a 1x1 offscreen drawable. The result is cached after the first call, since neither the active GPU nor its driver change mid-session. Note that on hybrid-graphics systems (e.g., NVIDIA Optimus, AMD Switchable Graphics, macOS automatic graphics switching) this reports whichever GPU the OS bound to this JVM process, not necessarily every GPU installed
      Returns:
      the (cached) result of the query; GLUtils.Info.available() is false if no GL context could be created