From e9a9ba7c67f34d8c2778665b1ec61d80133e8bf0 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 24 Jul 2004 19:50:50 +0000 Subject: [PATCH] Added Pbuffer.isUsingDisplayContext() --- src/java/org/lwjgl/opengl/Pbuffer.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/java/org/lwjgl/opengl/Pbuffer.java b/src/java/org/lwjgl/opengl/Pbuffer.java index 6a6aabdb..eba7fc87 100644 --- a/src/java/org/lwjgl/opengl/Pbuffer.java +++ b/src/java/org/lwjgl/opengl/Pbuffer.java @@ -158,6 +158,15 @@ public final class Pbuffer { Sys.initialize(); } + /** + * Determine whether the Pbuffer is using the Display context. + * + * @return true of the Pbuffer is using the Display context, false if not. + */ + public boolean isUsingDisplayContext() { + return display_context != null; + } + /** * Create an instance of a Pbuffer using the Display context. The buffer is double-buffered, like the Display. *