Constructor
new SurfaceTile(sector)
Constructs a surface tile for a specified sector.
Parameters:
Name | Type | Description |
---|---|---|
sector |
Sector | The sector of this surface tile. |
- Source:
Throws:
-
If the specified sector is null or undefined.
- Type
- ArgumentError
Members
sector :Sector
The sector spanned by this surface tile.
Type:
- Source:
Methods
applyInternalTransform(dc, matrix)
Applies this surface tile's internal transform, typically a texture transform to align the associated
resource with the terrain.
Subclasses must override this function.
Parameters:
Name | Type | Description |
---|---|---|
dc |
DrawContext | The current draw context. |
matrix |
Matrix | The transform to apply. |
- Source:
bind(dc) → {Boolean}
Causes this surface tile to be active, typically by binding the tile's texture in WebGL.
Subclasses must override this function.
Parameters:
Name | Type | Description |
---|---|---|
dc |
DrawContext | The current draw context. |
- Source:
Returns:
true if the resource was successfully bound, otherwise false.
- Type
- Boolean