mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 13:49:18 +01:00
hint() and begin/endPGL bits
This commit is contained in:
@@ -1496,6 +1496,17 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
}
|
||||
|
||||
|
||||
public PGL beginPGL() {
|
||||
saveGLState();
|
||||
return pgl;
|
||||
}
|
||||
|
||||
|
||||
public void endPGL() {
|
||||
restoreGLState();
|
||||
}
|
||||
|
||||
|
||||
public void updatePGL() {
|
||||
if (primarySurface) {
|
||||
pgl.updatePrimary();
|
||||
@@ -1681,10 +1692,10 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
// HINTS
|
||||
|
||||
public void hint(int which) {
|
||||
boolean oldValue = which > 0 ? hints[which] : hints[-which];
|
||||
boolean oldValue = hints[Math.abs(which)];
|
||||
super.hint(which);
|
||||
boolean newValue = which > 0 ? hints[which] : hints[-which];
|
||||
|
||||
boolean newValue = hints[Math.abs(which)];
|
||||
|
||||
if (oldValue == newValue) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user