CanvasTexture class

Creates a texture from a canvas element.

This is almost the same as the base Texture class, except that it sets needsUpdate to true immediately.

Inheritance

Constructors

CanvasTexture([dynamic canvas, int? mapping, int? wrapS, int? wrapT, int? magFilter, int? minFilter, int? format, int? type, int? anisotropy])
canvas -- The HTML canvas element from which to load the texture.

Properties

anisotropy int
getter/setter pairinherited
center ↔ Vector2
getter/setter pairinherited
colorSpace String
getter/setter pairinherited
encoding int
getter/setter pairinherited
flipY bool
getter/setter pairinherited
format int
getter/setter pairinherited
generateMipmaps bool
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id int
getter/setter pairinherited
image ↔ dynamic
getter/setter pairinherited
internalFormat int?
getter/setter pairinherited
isCanvasTexture bool
getter/setter pair
isCompressedTexture bool
getter/setter pairinherited
isDepthTexture bool
getter/setter pairinherited
isOpenGLTexture bool
getter/setter pairinherited
isRenderTargetTexture bool
getter/setter pairinherited
isTexture bool
getter/setter pairinherited
isVideoTexture bool
getter/setter pairinherited
isWebGLRenderTarget bool
getter/setter pairinherited
magFilter int
getter/setter pairinherited
mapping int?
getter/setter pairinherited
matrix ↔ Matrix3
getter/setter pairinherited
matrixAutoUpdate bool
getter/setter pairinherited
minFilter int
getter/setter pairinherited
mipmaps List
getter/setter pairinherited
name String
getter/setter pairinherited
needsPMREMUpdate bool
getter/setter pairinherited
needsUpdate bool
no getterinherited
offset ↔ Vector2
getter/setter pairinherited
onUpdate Function?
getter/setter pairinherited
premultiplyAlpha bool
getter/setter pairinherited
repeat ↔ Vector2
getter/setter pairinherited
rotation double
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source Source
getter/setter pairinherited
type int
getter/setter pairinherited
unpackAlignment int
getter/setter pairinherited
userData Map
getter/setter pairinherited
uuid String
getter/setter pairinherited
version int
getter/setter pairinherited
wrapR int
getter/setter pairinherited
wrapS int
getter/setter pairinherited
wrapT int
getter/setter pairinherited

Methods

addEventListener(String type, Function listener) → void
type - The type of event to listen to.
inherited
clearListeners() → void
Remove all Listeners.
inherited
clone() Texture
inherited
copy(Texture source) Texture
inherited
dispatchEvent(Event event) → void
event - The event that gets fired.
inherited
dispose() → void
inherited
hasEventListener(String type, Function listener) bool
type - The type of event to listen to.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventListener(String type, Function listener) → void
type - The type of the listener that gets removed.
inherited
toJson(dynamic meta) Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
transformUv(Vector2 uv) → Vector2
inherited
updateMatrix() → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited