public static interface TileRendererBase.TileRendererListener
GLEventListener
implementations,
enabling tile rendering via TileRendererBase.attachAutoDrawable(GLAutoDrawable)
.Modifier and Type | Method and Description |
---|---|
void |
addTileRendererNotify(TileRendererBase tr)
|
void |
endTileRendering(TileRendererBase tr)
Called by the
TileRenderer during tile-rendering
after TileRendererBase.endTile(GL) and GLDrawable.swapBuffers() . |
void |
removeTileRendererNotify(TileRendererBase tr)
|
void |
reshapeTile(TileRendererBase tr,
int tileX,
int tileY,
int tileWidth,
int tileHeight,
int imageWidth,
int imageHeight)
Called by the
TileRendererBase during tile-rendering via an
attached GLAutoDrawable 's
GLAutoDrawable.display() call for each tile before #display(GLAutoDrawable) . |
void |
startTileRendering(TileRendererBase tr)
Called by the
TileRendererBase during tile-rendering
after TileRendererBase.beginTile(GL) and before reshapeTile(..) . |
void addTileRendererNotify(TileRendererBase tr)
GLAutoDrawable
is attached
to the given TileRendererBase
instance.
The GLContext
of the TileRendererBase
's attached
GLAutoDrawable
is not current.
tr
- the associated TileRendererBase
TileRendererBase.getAttachedDrawable()
void removeTileRendererNotify(TileRendererBase tr)
GLAutoDrawable
is detached
from the given TileRendererBase
instance.
The GLContext
of the TileRendererBase
's attached
GLAutoDrawable
is not current.
tr
- the disassociated TileRendererBase
TileRendererBase.getAttachedDrawable()
void reshapeTile(TileRendererBase tr, int tileX, int tileY, int tileWidth, int tileHeight, int imageWidth, int imageHeight)
TileRendererBase
during tile-rendering via an
attached
GLAutoDrawable
's
GLAutoDrawable.display()
call for each tile before #display(GLAutoDrawable)
.
The PMV Matrix shall be reshaped according to the given
TileRendererBase.beginTile(GL)
.
The GLContext
of the TileRendererBase
's attached
GLAutoDrawable
is current.
tr
- the issuing TileRendererBase
tileX
- the current tile's x-pos
tileY
- the current tile's y-pos
tileWidth
- the current tile's width
tileHeight
- the current tile's height
imageWidth
- the final image width
imageHeight
- the final image height
TileRendererBase.getAttachedDrawable()
void startTileRendering(TileRendererBase tr)
TileRendererBase
during tile-rendering
after TileRendererBase.beginTile(GL)
and before reshapeTile(..)
.
If TileRendererBase
is of type TileRenderer
,
method is called for the first tile of all tiles.
Otherwise, i.e. RandomTileRenderer
, method is called for each particular tile.
The GLContext
of the TileRenderer
's attached
GLAutoDrawable
is current.
tr
- the issuing TileRendererBase
void endTileRendering(TileRendererBase tr)
TileRenderer
during tile-rendering
after TileRendererBase.endTile(GL)
and GLDrawable.swapBuffers()
.
If TileRendererBase
is of type TileRenderer
,
method is called for the last tile of all tiles.
Otherwise, i.e. RandomTileRenderer
, method is called for each particular tile.
The GLContext
of the TileRenderer
's attached
GLAutoDrawable
is current.
tr
- the issuing TileRendererBase
Copyright 2010 JogAmp Community.