mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Updated projection and modelview matrices in the print methods
This commit is contained in:
@@ -3969,8 +3969,14 @@ public class PGraphicsOpenGL2 extends PGraphics {
|
||||
*/
|
||||
public void printMatrix() {
|
||||
if (matrixMode == PROJECTION) {
|
||||
if (!projectionUpdated) {
|
||||
getProjectionMatrix();
|
||||
}
|
||||
projection.print();
|
||||
} else {
|
||||
if (!modelviewUpdated) {
|
||||
getModelviewMatrix();
|
||||
}
|
||||
modelview.print();
|
||||
}
|
||||
}
|
||||
@@ -4602,6 +4608,9 @@ public class PGraphicsOpenGL2 extends PGraphics {
|
||||
* Print the current projection matrix.
|
||||
*/
|
||||
public void printProjection() {
|
||||
if (!projectionUpdated) {
|
||||
getProjectionMatrix();
|
||||
}
|
||||
projection.print();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user