Constructor
new L3D.Texture()
Extends
Properties
The colorspace of the stored texture image.
The image data
HDR encoding type of the image, if any.
- Overrides:
Get the filename of the asset.
The format of the stored texture image.
The vertical resolution of the texture.
- Overrides:
The unique identifier of the object. Changing a node's ID can have unintended consequences.
- Overrides:
True if the asset has finished loading.
- Overrides:
True if the asset is in the process of loading.
- Overrides:
True if the asset does not have an error.
The magnification filter. This can be: GL.NEAREST, GL.LINEAR
The minification filter. This can be: GL.NEAREST, GL.LINEAR, GL.LINEAR_MIPMAP_LINEAR, GL.LINEAR_MIPMAP_NEAREST, GL.NEAREST_MIPMAP_LINEAR, GL.NEAREST_MIPMAP_NEAREST
- Overrides:
The name of the object.
- Overrides:
Emitted when there was an error loaading the asset.
- Overrides:
Emitted when the asset has finished loading.
- Overrides:
Emitted when the asset has started loading.
- Overrides:
Fired when the object has been modified.
- Overrides:
Fired when the object's name changes.
- Overrides:
Emitted when the state of the asset has changed.
- Overrides:
Emitted when the assets data has been updated.
- Overrides:
The URL of the asset.
- Overrides:
Inidicates whether the asset is Unloaded, Loading, Loaded, or Error. The onStateChange signal will be emitted when the state's value changes.
The type of the stored image data.
The horizontal resolution of the texture.
The depth wrapping behavior of the texture. This can be: GL.CLAMP_TO_EDGE, GL.REPEAT, GL.MIRRORED_REPEAT
The horizontal wrapping behavior of the texture. This can be: GL.CLAMP_TO_EDGE, GL.REPEAT, GL.MIRRORED_REPEAT
The vertical wrapping behavior of the texture. This can be: GL.CLAMP_TO_EDGE, GL.REPEAT, GL.MIRRORED_REPEAT
Methods
clone(options) → Object
- Overrides:
Creates a clone of this object.
options |
Object | Options for the clone method. |
- Object
configure(o)
- Overrides:
Set the properties of the object from a JSON structure.
o |
Object | Serialized data to configure the object with |
destroy()
- Overrides:
Destroy any render assets created by the asset.
getPropertyInfo(path) → Object
- Overrides:
Get information about a particular property of this object.
path |
String |
- Object
getRenderAsset(gl) → RenderAsset
- Overrides:
Get a RenderAsset for this asset. If a RenderAsset hadn't been requested for the given GLContext yet, a new one will be created. Otherwise the previous one will be updated and returned.
A RenderAsset is the WebGL version of the asset, such as the GLTexture for an Texture asset. Because the editor has multiple GLContexts, RenderAssets are generated for each GLContext that requires it.
gl |
GLContext |
serialize() → Object
- Overrides:
Serialize the object to a JSON structure.
- Object
The serialized version of the object.
setModified()
- Overrides:
Fires the objects onModified signal.
toJSON() → Object
- Overrides:
Serialize the object to a JSON structure
- Object
The serialized version of the object.
updateRenderAsset(renderAsset)
- Overrides:
Update the given RenderAsset.
renderAsset |
RenderAsset | The RenderAsset to update. |