Creates a new instance with the given options.
Indicates if the underlying Stage3D texture should be created as the power-of-two based
Texture
class instead of the more memory efficient RectangleTexture
.
That might be useful when you need to render the texture with wrap mode repeat
.
@default false
The Context3DTextureFormat
of the underlying texture data. Only used
for textures that are created from Bitmaps; the format of ATF files is set when they
are created. @default BGRA
Indicates if the texture contains mip maps. @default false
If this value is set, the texture will be loaded asynchronously (if possible). The texture can only be used when the callback has been executed.
This is the expected definition:
function(texture:Texture):void;
@default null
Indicates if the texture will be used as render target.
Indicates if the alpha values are premultiplied into the RGB values. This is typically
true for textures created from BitmapData and false for textures created from ATF data.
This property will only be read by the Texture.fromTextureBase
factory
method. @default true
The scale factor, which influences width and height properties. If you pass '-1', the current global content scale factor will be used. @default 1.0
Creates a clone of the TextureOptions object with the exact same properties.
Copies all properties from another TextureOptions instance.
Generated using TypeDoc
The TextureOptions class specifies options for loading textures with the
Texture.fromData
andTexture.fromTextureBase
methods.