new MediaTexture(texture, locked, size)
This object stores a THREE.Texture used for multi resolutions scene. It is
simplier (in terms of memory to store this object as it is tinier than a
FORGE.Image. It also remove the fact that we need to create a THREE.Texture
in the renderer.
Parameters:
Name | Type | Description |
---|---|---|
texture |
THREE.Texture | the THREE.Texture to store |
locked |
boolean | is the texture locked (i.e. it isn't deletable) |
size |
number | the size of the texture |
- Source:
Members
(readonly) count :number
Get the number of times it was called.
Type:
- number
- Source:
(readonly) lastTime :number
Get the last time when it was called.
Type:
- number
- Source:
(readonly) locked :boolean
Is the texture locked ?
Type:
- boolean
- Source:
(readonly) size :number
Get the size of the texture
Type:
- number
- Source:
(readonly) texture :THREE.Texture
Get the texture.
Type:
- THREE.Texture
- Source:
Methods
destroy()
Destroy routine
- Source: