Interface TileRendererBase.TileRendererListener
-
- Enclosing class:
- TileRendererBase
public static interface TileRendererBase.TileRendererListenerListener for tile renderer events, intended to extendGLEventListenerimplementations, enabling tile rendering viaTileRendererBase.attachAutoDrawable(GLAutoDrawable).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddTileRendererNotify(TileRendererBase tr)voidendTileRendering(TileRendererBase tr)Called by theTileRendererduring tile-rendering afterTileRendererBase.endTile(GL)andGLDrawable.swapBuffers().voidremoveTileRendererNotify(TileRendererBase tr)voidreshapeTile(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).voidstartTileRendering(TileRendererBase tr)Called by theTileRendererBaseduring tile-rendering afterTileRendererBase.beginTile(GL)and beforereshapeTile(..).
-
-
-
Method Detail
-
addTileRendererNotify
void addTileRendererNotify(TileRendererBase tr)
The owningGLAutoDrawableisattachedto the givenTileRendererBaseinstance.The
GLContextof theTileRendererBase'sattachedGLAutoDrawableis not current.- Parameters:
tr- the associatedTileRendererBase- See Also:
TileRendererBase.getAttachedDrawable()
-
removeTileRendererNotify
void removeTileRendererNotify(TileRendererBase tr)
The owningGLAutoDrawableisdetachedfrom the givenTileRendererBaseinstance.The
GLContextof theTileRendererBase'sattachedGLAutoDrawableis not current.- Parameters:
tr- the disassociatedTileRendererBase- See Also:
TileRendererBase.getAttachedDrawable()
-
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:
TileRendererBase.getAttachedDrawable()
-
startTileRendering
void startTileRendering(TileRendererBase tr)
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
void endTileRendering(TileRendererBase tr)
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
-
-