Interface TileRendererBase.TileRendererListener
- Enclosing class:
- TileRendererBase
GLEventListener
implementations,
enabling tile rendering via TileRendererBase.attachAutoDrawable(GLAutoDrawable)
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Called by theTileRenderer
during tile-rendering afterTileRendererBase.endTile(GL)
andGLDrawable.swapBuffers()
.void
void
reshapeTile
(TileRendererBase tr, int tileX, int tileY, int tileWidth, int tileHeight, int imageWidth, int imageHeight) Called by theTileRendererBase
during tile-rendering via anattached
GLAutoDrawable
'sGLAutoDrawable.display()
call for each tile before#display(GLAutoDrawable)
.void
Called by theTileRendererBase
during tile-rendering afterTileRendererBase.beginTile(GL)
and beforereshapeTile(..)
.
-
Method Details
-
addTileRendererNotify
The owningGLAutoDrawable
isattached
to the givenTileRendererBase
instance.The
GLContext
of theTileRendererBase
'sattached
GLAutoDrawable
is not current.- Parameters:
tr
- the associatedTileRendererBase
- See Also:
-
removeTileRendererNotify
The owningGLAutoDrawable
isdetached
from the givenTileRendererBase
instance.The
GLContext
of theTileRendererBase
'sattached
GLAutoDrawable
is 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 theTileRendererBase
during tile-rendering via anattached
GLAutoDrawable
'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
GLContext
of theTileRendererBase
'sattached
GLAutoDrawable
is current.- Parameters:
tr
- the issuingTileRendererBase
tileX
- thecurrent tile's x-pos
tileY
- thecurrent tile's y-pos
tileWidth
- thecurrent tile's width
tileHeight
- thecurrent tile's height
imageWidth
- thefinal image width
imageHeight
- thefinal image height
- See Also:
-
startTileRendering
Called by theTileRendererBase
during tile-rendering afterTileRendererBase.beginTile(GL)
and beforereshapeTile(..)
.If
TileRendererBase
is of typeTileRenderer
, method is called for the first tile of all tiles.
Otherwise, i.e.RandomTileRenderer
, method is called for each particular tile.The
GLContext
of theTileRenderer
'sattached
GLAutoDrawable
is current.- Parameters:
tr
- the issuingTileRendererBase
-
endTileRendering
Called by theTileRenderer
during tile-rendering afterTileRendererBase.endTile(GL)
andGLDrawable.swapBuffers()
.If
TileRendererBase
is of typeTileRenderer
, method is called for the last tile of all tiles.
Otherwise, i.e.RandomTileRenderer
, method is called for each particular tile.The
GLContext
of theTileRenderer
'sattached
GLAutoDrawable
is current.- Parameters:
tr
- the issuingTileRendererBase
-