Creates a {BABYLON.DynamicTexture}
defines the name of the texture
provides 3 alternatives for width and height of texture, a canvas, object with width and height properties, number for both width and height
defines the scene where you want the texture
defines the use of MinMaps or not (default is false)
defines the sampling mode to use (default is BABYLON.Texture.TRILINEAR_SAMPLINGMODE)
defines the texture format to use (default is BABYLON.Engine.TEXTUREFORMAT_RGBA)
Gets the current state of canRescale
How a texture is mapped.
Value | Type | Description |
---|---|---|
0 | EXPLICIT_MODE | |
1 | SPHERICAL_MODE | |
2 | PLANAR_MODE | |
3 | CUBIC_MODE | |
4 | PROJECTION_MODE | |
5 | SKYBOX_MODE | |
6 | INVCUBIC_MODE | |
7 | EQUIRECTANGULAR_MODE | |
8 | FIXED_EQUIRECTANGULAR_MODE | |
9 | FIXED_EQUIRECTANGULAR_MIRRORED_MODE |
An event triggered when the texture is disposed.
Value | Type | Description |
---|---|---|
0 | CLAMP_ADDRESSMODE | |
1 | WRAP_ADDRESSMODE | |
2 | MIRROR_ADDRESSMODE |
Value | Type | Description |
---|---|---|
0 | CLAMP_ADDRESSMODE | |
1 | WRAP_ADDRESSMODE | |
2 | MIRROR_ADDRESSMODE |
Value | Type | Description |
---|---|---|
0 | CLAMP_ADDRESSMODE | |
1 | WRAP_ADDRESSMODE | |
2 | MIRROR_ADDRESSMODE |
Gets or sets a boolean which defines if the texture url must be build from the serialized URL instead of just using the name and loading them side by side with the scene file
Clears the texture
Clones the texture
the clone of the texture.
Draws text onto the texture
defines the text to be drawn
defines the placement of the text from the left
defines the placement of the text from the top when invertY is true and from the bottom when false
defines the font to be used with font-style, font-size, font-name
defines the color used for the text
defines the color for the canvas, use null to not overwrite canvas
defines the direction for the Y axis (default is true - y increases downwards)
defines whether texture is immediately update (default is true)
Gets the context of the canvas used by the texture
the canvas context of the dynamic texture
Scales the texture
the scale factor to apply to both width and height
Resizes the texture
the new width
the new height
Updates the texture
defines the direction for the Y axis (default is true - y increases downwards)
Generated using TypeDoc
A class extending {BABYLON.Texture} allowing drawing on a texture
http://doc.babylonjs.com/how_to/dynamictexture