Offscreen buffer failing to update in 2.0b9?
in
Programming Questions
•
5 months ago
Hi.
I have a rather large project I've been working on for quite some time. It uses PGraphics objects to draw offscreen, as this psuedocode hopefully shows:
Sorry for not pasting 100% real code, but it's a very large module.
This was working as expected in 2.0b8, but the latest revision of 2.0b9 (0217?) will only draw the first frame on the buffer.
Does anyone know why, or can aid me in making it function using beta9?
I have a rather large project I've been working on for quite some time. It uses PGraphics objects to draw offscreen, as this psuedocode hopefully shows:
- PGraphics guiOverlay;
- guiOverlay = createGraphics(width, height);
- draw {
- camera();
- camera(cameraX, cameraY, cameraZ, cameraX, cameraY, 0, 0, 1, 0);
- hint(ENABLE_DEPTH_TEST);
- guiOverlay.beginDraw();
- ...
- guiOverlay.doingstuff
- doingOtherStuffAsWell
- ...
- guiOverlay.endDraw();
- camera(); // Reset the camera to draw the GUI.
- hint(DISABLE_DEPTH_TEST);
- image(guiOverlay, width/2, height/2);
- }
Sorry for not pasting 100% real code, but it's a very large module.
This was working as expected in 2.0b8, but the latest revision of 2.0b9 (0217?) will only draw the first frame on the buffer.
Does anyone know why, or can aid me in making it function using beta9?
1