Class InternalTexture
Hierarchy
- InternalTexture
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
-
Creates a new InternalTexture
Parameters
-
engine: ThinEngine
defines the engine to use
-
source: InternalTextureSource
defines the type of data that will be used
-
Optional delayAllocation: boolean
if the texture allocation should be delayed (default: false)
Returns InternalTexture
-
Properties
base DepthSearch playground for baseDepth
Gets the initial depth of the texture (It could be rescaled if the current system does not support non power of two textures)
base HeightSearch playground for baseHeight
Gets the initial height of the texture (It could be rescaled if the current system does not support non power of two textures)
base WidthSearch playground for baseWidth
Gets the initial width of the texture (It could be rescaled if the current system does not support non power of two textures)
depthSearch playground for depth
Gets the depth of the texture
formatSearch playground for format
Gets the format of the texture (RGB, RGBA...)
generate Mip MapsSearch playground for generateMipMaps
Gets a boolean indicating if the texture needs mipmaps generation
heightSearch playground for height
Gets the height of the texture
invertYSearch playground for invertY
Gets a boolean indicating if the texture is inverted on Y axis
is2DArraySearch playground for is2DArray
Defines if the texture contains 2D array data
is3DSearch playground for is3D
Defines if the texture contains 3D data
is CubeSearch playground for isCube
Defines if the texture is a cube texture
is MultiviewSearch playground for isMultiview
Defines if the texture contains multiview data
is ReadySearch playground for isReady
Defines if the texture is ready
on Loaded ObservableSearch playground for onLoadedObservable
Observable called when the texture is loaded
samplesSearch playground for samples
Gets the number of samples used by the texture (WebGL2+ only)
sampling ModeSearch playground for samplingMode
Gets the sampling mode of the texture
typeSearch playground for type
Gets the type of the texture (int, float...)
urlSearch playground for url
Gets the URL used to load this texture
widthSearch playground for width
Gets the width of the texture
Accessors
source
-
Gets the data source type of the texture
Returns InternalTextureSource
unique Id
-
Gets the unique id of the internal texture
Returns number
Methods
disposeSearch playground for dispose
-
Dispose the current allocated resources
Returns void
get EngineSearch playground for getEngine
-
Gets the Engine the texture belongs to.
Returns ThinEngine
The babylon engine
increment ReferencesSearch playground for incrementReferences
-
Increments the number of references (ie. the number of Texture that point to it)
Returns void
Class used to store data associated with WebGL texture data for the engine This class should not be used directly