Package sc.fiji.snt.util
Class GLUtils
java.lang.Object
sc.fiji.snt.util.GLUtils
Helpers for querying GPU/OpenGL capabilities.
- Author:
- Tiago Ferreira
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic GLUtils.InfogetInfo()Queries GPU/OpenGL info via a 1x1 offscreen drawable.
-
Method Details
-
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
-