From c5bae46342c1f1ac33c5e7c67dfecd26d51edfd8 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Sun, 18 Nov 2012 13:19:44 -0800 Subject: j3dcore: remove status from swapBuffers, was only used by the D3D backend Signed-off-by: Harvey Harrison --- src/classes/share/javax/media/j3d/Canvas3D.java | 64 ++++------------------ .../share/javax/media/j3d/JoglPipeline.java | 13 ++--- .../share/javax/media/j3d/NoopPipeline.java | 4 +- src/classes/share/javax/media/j3d/Pipeline.java | 2 +- src/classes/share/javax/media/j3d/Renderer.java | 2 +- 5 files changed, 20 insertions(+), 65 deletions(-) diff --git a/src/classes/share/javax/media/j3d/Canvas3D.java b/src/classes/share/javax/media/j3d/Canvas3D.java index c8aaa87..e709c2a 100644 --- a/src/classes/share/javax/media/j3d/Canvas3D.java +++ b/src/classes/share/javax/media/j3d/Canvas3D.java @@ -342,13 +342,6 @@ public class Canvas3D extends Canvas { static final int VIEW_MATRIX_DIRTY = 0x8000; // static final int SHADER_DIRTY = 0x10000; Not ready for this yet -- JADA - // Use to notify D3D Canvas when window change - static final int RESIZE = 1; - static final int TOGGLEFULLSCREEN = 2; - static final int NOCHANGE = 0; - static final int RESETSURFACE = 1; - static final int RECREATEDDRAW = 2; - // // Flag that indicates whether this Canvas3D is an off-screen Canvas3D // @@ -3838,49 +3831,17 @@ ArrayList textureIDResourceTable = new ArrayList= 0; id--) { - tex = textureIDResourceTable.get(id); - if (tex != null) { - tex.resourceCreationMask &= ~canvasBit; - - } - } - } - - // reset all attributes so that everything e.g. display list, - // texture will recreate again in the next frame - void resetRendering(int status) { - - if (status == RECREATEDDRAW) { - // D3D use MANAGE_POOL when createTexture, so there - // is no need to download texture again in case of RESETSURFACE - resetTextureBin(); - screen.renderer.needToResendTextureDown = true; - } - +// reset all attributes so that everything e.g. display list, +// texture will recreate again in the next frame +void resetRendering() { reset(); - synchronized (dirtyMaskLock) { - cvDirtyMask[0] |= VIEW_INFO_DIRTY; - cvDirtyMask[1] |= VIEW_INFO_DIRTY; - } - - } + synchronized (dirtyMaskLock) { + cvDirtyMask[0] |= VIEW_INFO_DIRTY; + cvDirtyMask[1] |= VIEW_INFO_DIRTY; + } +} void reset() { int i; @@ -3967,7 +3928,7 @@ ArrayList textureIDResourceTable = new ArrayList textureIDResourceTable = new ArrayList textureIDResourceTable = new ArrayList textureIDResourceTable = new ArrayList