<static> fromCanvas(canvas, scaleMode) → {
[readonly] width : number [read-only] The width of the base texture set when the image has
[readonly] height : number [read-only] The height of the base texture set when the image has
premultipliedAlpha : boolean Controls if RGB channels should be pre-multiplied by Alpha (WebGL only)
updateSourceImage(newSrc) This method is deprecated and should not be used. It may be removed in the future. Changes
skipRender : boolean A BaseTexture can be set to skip the rendering phase in the WebGL Sprite Batch. You may want to do
unloadFromGPU() Removes the base texture from the GPU, useful for managing resources on the GPU.Atexture is still 100% usable
[readonly] hasLoaded : boolean [read-only] Set to true once the base texture has loaded
scaleMode : number The scale mode to apply when scaling this texture Default
dirty() Sets all glTextures to be dirty. Source code:
Page 1 of 2