TerrainLayerSlot
Description
- Derived from
-
Disposable abstract
Represents a single texture slot in a TerrainLayer.
A single pixel pyramid may be specified as texture source for each terrain layer slot (see Set). Additionally, the sRGB behaviour for encoding texels may be specified separately for each terrain layer slot. This flag may be different to the sRGB behaviour of the cache textures in the texture atlas (see ISrgb.Srgb).
Public / Methods
Prepare
Prepares the given pixel pyramid so that when passed to Set, no adjustments will be necessary and PixelPyramid will return the same object.
- GeorefException
-
If pyramid in needs to be projected at runtime but has an invalid geo-reference.
Set
Assigns the given texture to this terrain layer slot.
Because of adjustments that might be necessary for the given pyramid in, the actual pixel pyramid of the layer (see PixelPyramid) can be a different instance than the given pyramid in. To make sure that the actual pixel pyramid is the same as pyramid in, use Prepare.
Once a pixel pyramid has been assigned to the persistent cache, modifications made to it will invalidate the cache contents.
The PyramidFlags.Alpha flag is used to choose the texture atlas (see TerrainBufferOptions.TextureAtlas) to use for the given layer pyramid in.
- GeorefException
-
If pyramid in needs to be projected at runtime but has an invalid geo-reference.