aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/net/java/games/jogl/GLPbuffer.java3
-rw-r--r--src/net/java/games/jogl/impl/GLPbufferImpl.java9
2 files changed, 12 insertions, 0 deletions
diff --git a/src/net/java/games/jogl/GLPbuffer.java b/src/net/java/games/jogl/GLPbuffer.java
index de85f6950..5df8d616c 100644
--- a/src/net/java/games/jogl/GLPbuffer.java
+++ b/src/net/java/games/jogl/GLPbuffer.java
@@ -60,4 +60,7 @@ public interface GLPbuffer extends GLDrawable {
/** Unbinds the pbuffer from its internal texture target. */
public void releaseTexture();
+
+ /** Querries initialization status a <code>this</code> pBuffer*/
+ public boolean isInitialized();
}
diff --git a/src/net/java/games/jogl/impl/GLPbufferImpl.java b/src/net/java/games/jogl/impl/GLPbufferImpl.java
index 860fc8422..028929573 100644
--- a/src/net/java/games/jogl/impl/GLPbufferImpl.java
+++ b/src/net/java/games/jogl/impl/GLPbufferImpl.java
@@ -54,6 +54,7 @@ public class GLPbufferImpl implements GLPbuffer {
// GLPbufferContext
private GLContext context;
private GLDrawableHelper drawableHelper = new GLDrawableHelper();
+ private boolean isInitialized=false;
public GLPbufferImpl(GLContext context) {
this.context = context;
@@ -176,6 +177,13 @@ public class GLPbufferImpl implements GLPbuffer {
public void removePropertyChangeListener(String propertyName,
PropertyChangeListener listener) {}
+ /** Querries initialization status a <code>this</code> pBuffer
+ * @return true if initialized
+ * */
+ public boolean isInitialized(){
+ return isInitialized;
+ }
+
//----------------------------------------------------------------------
// Internals only below this point
//
@@ -183,6 +191,7 @@ public class GLPbufferImpl implements GLPbuffer {
class InitAction implements Runnable {
public void run() {
drawableHelper.init(GLPbufferImpl.this);
+ isInitialized=true;
}
}
private InitAction initAction = new InitAction();