Class: FramebufferTileController

FramebufferTileController()

Provides access to a multi-resolution WebGL framebuffer arranged as adjacent tiles in a pyramid. WorldWind shapes use this class internally to draw on the terrain surface. Applications typically do not interact with this class.

Constructor

new FramebufferTileController()

Constructs a framebuffer tile controller.
Source:

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
Source:

(readonly) tileWidth :Number

The width in pixels of framebuffers associated with this controller's tiles.
Type:
  • Number
Source:

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.
Source:

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.
Source:
Throws:
If the specified sector is null.
Type
ArgumentError
Returns:
The set of multi-resolution framebuffer tiles that overlap the sector.
Type
Array