From 668ed1ab3ff3aad4366e00ede918b186d6e057a4 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 6 Sep 2013 04:27:46 +0200 Subject: TileRenderer*: TileRenderer adds setTileOffset(..), getParam(pname) shall always return last result, no overloading of attachToAutoDrawable(..); Fix comments TileRenderer: - adds setTileOffset(..) A tile offset might be required, i.e. via a given rectangular clip bounds - getParam(pname) shall always return last result Even when finished tiling, the last value shall be returned, otherwise a post endTile() is unable to retrieve the value. - No overloading of attachToAutoDrawable(..) No reason to complicate usage by mutating semantics, call setTileSize(..) manually TileRendererBase: - Fix API doc: TR_CURRENT_TILE_X_POS, TR_CURRENT_TILE_Y_POS --- .../jogamp/opengl/test/junit/jogl/tile/TestTiledRendering2GL2NEWT.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/test/com') diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledRendering2GL2NEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledRendering2GL2NEWT.java index fb26eeb24..28e1b21c4 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledRendering2GL2NEWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledRendering2GL2NEWT.java @@ -96,8 +96,9 @@ public class TestTiledRendering2GL2NEWT extends UITestCase { // Initialize the tile rendering library final TileRenderer renderer = new TileRenderer(); - renderer.attachToAutoDrawable(glad); renderer.setImageSize(imageWidth, imageHeight); + renderer.setTileSize(glad.getWidth(), glad.getHeight(), 0); + renderer.attachToAutoDrawable(glad); final GLPixelBuffer.GLPixelBufferProvider pixelBufferProvider = GLPixelBuffer.defaultProviderWithRowStride; final boolean[] flipVertically = { false }; -- cgit v1.2.3