Interface TileRendererBase.TileRendererListener
- Enclosing class:
- TileRendererBase
GLEventListener implementations,
enabling tile rendering via TileRendererBase.attachAutoDrawable(GLAutoDrawable).-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidCalled by theTileRendererduring tile-rendering afterTileRendererBase.endTile(GL)andGLDrawable.swapBuffers().voidvoidreshapeTile(TileRendererBase tr, int tileX, int tileY, int tileWidth, int tileHeight, int imageWidth, int imageHeight) Called by theTileRendererBaseduring tile-rendering via anattachedGLAutoDrawable'sGLAutoDrawable.display()call for each tile before#display(GLAutoDrawable).voidCalled by theTileRendererBaseduring tile-rendering afterTileRendererBase.beginTile(GL)and beforereshapeTile(..).
-
Method Details
-
addTileRendererNotify
The owningGLAutoDrawableisattachedto the givenTileRendererBaseinstance.The
GLContextof theTileRendererBase'sattachedGLAutoDrawableis not current.- Parameters:
tr- the associatedTileRendererBase- See Also:
-
removeTileRendererNotify
The owningGLAutoDrawableisdetachedfrom the givenTileRendererBaseinstance.The
GLContextof theTileRendererBase'sattachedGLAutoDrawableis not current.- Parameters:
tr- the disassociatedTileRendererBase- See Also:
-
reshapeTile
void reshapeTile(TileRendererBase tr, int tileX, int tileY, int tileWidth, int tileHeight, int imageWidth, int imageHeight) Called by theTileRendererBaseduring tile-rendering via anattachedGLAutoDrawable'sGLAutoDrawable.display()call for each tile before#display(GLAutoDrawable).The PMV Matrix shall be reshaped according to the given
- current tile-position
- current tile-size
- final image-size
See details inTileRendererBase.beginTile(GL).
The
GLContextof theTileRendererBase'sattachedGLAutoDrawableis current.- Parameters:
tr- the issuingTileRendererBasetileX- thecurrent tile's x-postileY- thecurrent tile's y-postileWidth- thecurrent tile's widthtileHeight- thecurrent tile's heightimageWidth- thefinal image widthimageHeight- thefinal image height- See Also:
-
startTileRendering
Called by theTileRendererBaseduring tile-rendering afterTileRendererBase.beginTile(GL)and beforereshapeTile(..).If
TileRendererBaseis of typeTileRenderer, method is called for the first tile of all tiles.
Otherwise, i.e.RandomTileRenderer, method is called for each particular tile.The
GLContextof theTileRenderer'sattachedGLAutoDrawableis current.- Parameters:
tr- the issuingTileRendererBase
-
endTileRendering
Called by theTileRendererduring tile-rendering afterTileRendererBase.endTile(GL)andGLDrawable.swapBuffers().If
TileRendererBaseis of typeTileRenderer, method is called for the last tile of all tiles.
Otherwise, i.e.RandomTileRenderer, method is called for each particular tile.The
GLContextof theTileRenderer'sattachedGLAutoDrawableis current.- Parameters:
tr- the issuingTileRendererBase
-