Resizes this Dynamic Texture to the new dimensions given.
In WebGL it will destroy and then re-create the frame buffer being used by this Dynamic Texture. In Canvas it will resize the underlying canvas DOM element.
Both approaches will erase everything currently drawn to this texture.
If the dimensions given are the same as those already being used, calling this method will do nothing.
name | type | arguments | Default | description |
---|---|---|---|---|
width | number |
The new width of this Dynamic Texture. |
||
height | number | <optional> | width |
The new height of this Dynamic Texture. If not specified, will be set the same as the |
This Dynamic Texture.