From 3923249983f210fc562d8e51b1e6595537a641cf Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Sun, 17 Feb 2013 12:34:08 -0800 Subject: j3dcore: add new Pipeline method resizeOffscreenLayer Signed-off-by: Harvey Harrison --- .../share/javax/media/j3d/JoglPipeline.java | 2 ++ .../share/javax/media/j3d/NoopPipeline.java | 2 ++ src/classes/share/javax/media/j3d/Pipeline.java | 2 ++ src/classes/share/javax/media/j3d/Renderer.java | 40 +++++++++------------- 4 files changed, 23 insertions(+), 23 deletions(-) (limited to 'src') diff --git a/src/classes/share/javax/media/j3d/JoglPipeline.java b/src/classes/share/javax/media/j3d/JoglPipeline.java index 430c970..075f33f 100644 --- a/src/classes/share/javax/media/j3d/JoglPipeline.java +++ b/src/classes/share/javax/media/j3d/JoglPipeline.java @@ -7175,6 +7175,8 @@ private boolean hasFBObjectSizeChanged(JoglDrawable jdraw, int width, int height return (width != fboBack.getWidth() || height != fboBack.getHeight()); } + void resizeOffscreenLayer(Canvas3D cv, int width, int height) {} + // The native method for setting the Viewport. void setViewport(Context ctx, int x, int y, int width, int height) { if (VERBOSE) System.err.println("JoglPipeline.setViewport()"); diff --git a/src/classes/share/javax/media/j3d/NoopPipeline.java b/src/classes/share/javax/media/j3d/NoopPipeline.java index 4c0011c..2e92bfe 100644 --- a/src/classes/share/javax/media/j3d/NoopPipeline.java +++ b/src/classes/share/javax/media/j3d/NoopPipeline.java @@ -1144,6 +1144,8 @@ void swapBuffers(Canvas3D cv, Context ctx, Drawable drawable) {} void setProjectionMatrix(Context ctx, double[] projMatrix) { } + void resizeOffscreenLayer(Canvas3D cv, int width, int height) {} + // The native method for setting the Viewport. void setViewport(Context ctx, int x, int y, int width, int height) { } diff --git a/src/classes/share/javax/media/j3d/Pipeline.java b/src/classes/share/javax/media/j3d/Pipeline.java index baa2c12..77da91d 100644 --- a/src/classes/share/javax/media/j3d/Pipeline.java +++ b/src/classes/share/javax/media/j3d/Pipeline.java @@ -1095,6 +1095,8 @@ public Pipeline run() { // The native method for setting the Projection matrix. abstract void setProjectionMatrix(Context ctx, double[] projMatrix); + abstract void resizeOffscreenLayer(Canvas3D cv, int width, int height); + // The native method for setting the Viewport. abstract void setViewport(Context ctx, int x, int y, int width, int height); diff --git a/src/classes/share/javax/media/j3d/Renderer.java b/src/classes/share/javax/media/j3d/Renderer.java index 1e1f0d1..6bd08d5 100644 --- a/src/classes/share/javax/media/j3d/Renderer.java +++ b/src/classes/share/javax/media/j3d/Renderer.java @@ -983,12 +983,11 @@ ArrayList textureIDResourceTable = new ArrayList textureIDResourceTable = new ArrayList textureIDResourceTable = new ArrayList