CLASSES
TagsA - Z

DynamicTexture

BaseTextureTexture

Description

class DynamicTexture extends Texture

Constructor

new DynamicTexture(name, options, scene, generateMipMaps, samplingMode, format)

Parameters

Name Type Description
name string
options any
scene Scene
generateMipMaps boolean
optional samplingMode number

Members

canRescale : boolean

Methods

scale(ratio) void

Parameters

Name Type Description
ratio number

scaleTo(width, height) void

Parameters

Name Type Description
width number
height number

getContext() CanvasRenderingContext2D

clear() void

update(invertY) void

Parameters

Name Type Description
optional invertY boolean

drawText(text, x, y, font, color, clearColor, invertY, update) void

Parameters

Name Type Description
text string
x number
y number
font string
color string
clearColor string
optional invertY boolean

clone() DynamicTexture