Constructor
new FramebufferTileController()
Constructs a framebuffer tile controller.
Members
detailControl :Number
Controls the level of detail switching for this controller. The next highest resolution level is
used when an image's texel size is greater than this number of pixels.
Type:
- Number
- Default Value:
- 1.75
- Source:
(readonly) tileHeight :Number
The height in pixels of framebuffers associated with this controller's tiles.
Type:
- Number
(readonly) tileWidth :Number
The width in pixels of framebuffers associated with this controller's tiles.
Type:
- Number
Methods
render(dc)
Draws this multi-resolution framebuffer on the terrain surface then clears the framebuffer. This has no
effect if the framebuffer is unchanged since the last call to render.
Parameters:
Name | Type | Description |
---|---|---|
dc |
DrawContext | The current draw context. |
selectTiles(dc, sector) → {Array}
Returns a set of multi-resolution FramebufferTile instances appropriate for the
current draw context that overlap a specified sector.
Parameters:
Name | Type | Description |
---|---|---|
dc |
DrawContext | The current draw context. |
sector |
Sector | The geographic region of interest. |
Throws:
-
If the specified sector is null.
- Type
- ArgumentError
Returns:
The set of multi-resolution framebuffer tiles that overlap the sector.
- Type
- Array