mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
made canDraw() abstract in PGL
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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() { }
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user