made canDraw() abstract in PGL

This commit is contained in:
codeanticode
2013-09-19 10:05:13 -04:00
parent 3cf2194e8f
commit d6ce4aa7b9
3 changed files with 12 additions and 3 deletions
+1 -3
View File
@@ -714,9 +714,7 @@ public abstract class PGL {
}
protected boolean canDraw() {
return pg.initialized && pg.parent.isDisplayable();
}
protected abstract boolean canDraw();
protected abstract void requestFocus();
+6
View File
@@ -557,6 +557,12 @@ public class PJOGL extends PGL {
}
@Override
protected boolean canDraw() {
return pg.initialized && pg.parent.isDisplayable();
}
@Override
protected void requestFocus() { }
@@ -229,6 +229,11 @@ public class PLWJGL extends PGL {
// Frame rendering
protected boolean canDraw() {
return pg.initialized && pg.parent.isDisplayable();
}
protected void requestFocus() { }