UNPKG

starling-framework

Version:

A fast, productive library for 2D cross-platform development.

719 lines 171 kB
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>ConcreteTexture | starling-framework</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../assets/css/main.css"> </head> <body> <header> <div class="tsd-page-toolbar"> <div class="container"> <div class="table-wrap"> <div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base=".."> <div class="field"> <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label> <input id="tsd-search-field" type="text" /> </div> <ul class="results"> <li class="state loading">Preparing search index...</li> <li class="state failure">The search index is not available</li> </ul> <a href="../index.html" class="title">starling-framework</a> </div> <div class="table-cell" id="tsd-widgets"> <div id="tsd-filter"> <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a> <div class="tsd-filter-group"> <div class="tsd-select" id="tsd-filter-visibility"> <span class="tsd-select-label">All</span> <ul class="tsd-select-list"> <li data-value="public">Public</li> <li data-value="protected">Public/Protected</li> <li data-value="private" class="selected">All</li> </ul> </div> <input type="checkbox" id="tsd-filter-inherited" checked /> <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label> <input type="checkbox" id="tsd-filter-externals" checked /> <label class="tsd-widget" for="tsd-filter-externals">Externals</label> <input type="checkbox" id="tsd-filter-only-exported" /> <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label> </div> </div> <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a> </div> </div> </div> </div> <div class="tsd-page-title"> <div class="container"> <ul class="tsd-breadcrumb"> <li> <a href="../index.html">starling</a> </li> <li> <a href="../modules/starling.textures.html">textures</a> </li> <li> <a href="starling.textures.concretetexture.html">ConcreteTexture</a> </li> </ul> <h1>Class ConcreteTexture</h1> </div> </div> </header> <div class="container container-main"> <div class="row"> <div class="col-8 col-content"> <section class="tsd-panel tsd-comment"> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>A ConcreteTexture wraps a Stage3D texture object, storing the properties of the texture and providing utility methods for data upload, etc.</p> </div> <p>This class cannot be instantiated directly; create instances using <code>Texture.fromTextureBase</code> instead. However, that&#39;s only necessary when you need to wrap a <code>TextureBase</code> object in a Starling texture; the preferred way of creating textures is to use one of the other <code>Texture.from...</code> factory methods in the <code>Texture</code> class.</p> <p> @see Texture</p> </div> </section> <section class="tsd-panel tsd-hierarchy"> <h3>Hierarchy</h3> <ul class="tsd-hierarchy"> <li> <a href="starling.textures.texture.html" class="tsd-signature-type">Texture</a> <ul class="tsd-hierarchy"> <li> <span class="target">ConcreteTexture</span> </li> </ul> </li> </ul> </section> <section class="tsd-panel-group tsd-index-group"> <h2>Index</h2> <section class="tsd-panel tsd-index-panel"> <div class="tsd-index-content"> <section class="tsd-index-section tsd-is-external"> <h3>Properties</h3> <ul class="tsd-index-list"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#base" class="tsd-kind-icon">base</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#format" class="tsd-kind-icon">format</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#frame" class="tsd-kind-icon">frame</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#frameheight" class="tsd-kind-icon">frame<wbr>Height</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#framewidth" class="tsd-kind-icon">frame<wbr>Width</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#height" class="tsd-kind-icon">height</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="starling.textures.concretetexture.html#ispottexture" class="tsd-kind-icon">is<wbr>Pot<wbr>Texture</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#mipmapping" class="tsd-kind-icon">mip<wbr>Mapping</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#nativeheight" class="tsd-kind-icon">native<wbr>Height</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#nativewidth" class="tsd-kind-icon">native<wbr>Width</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="starling.textures.concretetexture.html#onrestore" class="tsd-kind-icon">on<wbr>Restore</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="starling.textures.concretetexture.html#optimizedforrendertexture" class="tsd-kind-icon">optimized<wbr>For<wbr>Render<wbr>Texture</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#premultipliedalpha" class="tsd-kind-icon">premultiplied<wbr>Alpha</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#root" class="tsd-kind-icon">root</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#scale" class="tsd-kind-icon">scale</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#transformationmatrix" class="tsd-kind-icon">transformation<wbr>Matrix</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#transformationmatrixtoroot" class="tsd-kind-icon">transformation<wbr>Matrix<wbr>ToRoot</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#width" class="tsd-kind-icon">width</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="starling.textures.concretetexture.html#asyncbitmapuploadenabled" class="tsd-kind-icon">async<wbr>Bitmap<wbr>Upload<wbr>Enabled</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="starling.textures.concretetexture.html#maxsize" class="tsd-kind-icon">max<wbr>Size</a></li> </ul> </section> <section class="tsd-index-section tsd-is-external"> <h3>Methods</h3> <ul class="tsd-index-list"> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="starling.textures.concretetexture.html#attachnetstream" class="tsd-kind-icon">attach<wbr>Net<wbr>Stream</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="starling.textures.concretetexture.html#clear" class="tsd-kind-icon">clear</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-external"><a href="starling.textures.concretetexture.html#dispose" class="tsd-kind-icon">dispose</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#gettexcoords" class="tsd-kind-icon">get<wbr>Tex<wbr>Coords</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#get_base" class="tsd-kind-icon">get_<wbr>base</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#get_format" class="tsd-kind-icon">get_<wbr>format</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#get_frame" class="tsd-kind-icon">get_<wbr>frame</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#get_frameheight" class="tsd-kind-icon">get_<wbr>frame<wbr>Height</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#get_framewidth" class="tsd-kind-icon">get_<wbr>frame<wbr>Width</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#get_height" class="tsd-kind-icon">get_<wbr>height</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#get_ispottexture" class="tsd-kind-icon">get_<wbr>is<wbr>Pot<wbr>Texture</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#get_mipmapping" class="tsd-kind-icon">get_<wbr>mip<wbr>Mapping</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#get_nativeheight" class="tsd-kind-icon">get_<wbr>native<wbr>Height</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#get_nativewidth" class="tsd-kind-icon">get_<wbr>native<wbr>Width</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#get_onrestore" class="tsd-kind-icon">get_<wbr>on<wbr>Restore</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#get_optimizedforrendertexture" class="tsd-kind-icon">get_<wbr>optimized<wbr>For<wbr>Render<wbr>Texture</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#get_premultipliedalpha" class="tsd-kind-icon">get_<wbr>premultiplied<wbr>Alpha</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#get_root" class="tsd-kind-icon">get_<wbr>root</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#get_scale" class="tsd-kind-icon">get_<wbr>scale</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#get_transformationmatrix" class="tsd-kind-icon">get_<wbr>transformation<wbr>Matrix</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#get_transformationmatrixtoroot" class="tsd-kind-icon">get_<wbr>transformation<wbr>Matrix<wbr>ToRoot</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#get_width" class="tsd-kind-icon">get_<wbr>width</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#globaltolocal" class="tsd-kind-icon">global<wbr>ToLocal</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#localtoglobal" class="tsd-kind-icon">local<wbr>ToGlobal</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#settexcoords" class="tsd-kind-icon">set<wbr>Tex<wbr>Coords</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.concretetexture.html#set_onrestore" class="tsd-kind-icon">set_<wbr>on<wbr>Restore</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#setuptexturecoordinates" class="tsd-kind-icon">setup<wbr>Texture<wbr>Coordinates</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="starling.textures.concretetexture.html#setupvertexpositions" class="tsd-kind-icon">setup<wbr>Vertex<wbr>Positions</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="starling.textures.concretetexture.html#uploadatfdata" class="tsd-kind-icon">upload<wbr>Atf<wbr>Data</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="starling.textures.concretetexture.html#uploadbitmap" class="tsd-kind-icon">upload<wbr>Bitmap</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="starling.textures.concretetexture.html#uploadbitmapdata" class="tsd-kind-icon">upload<wbr>Bitmap<wbr>Data</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="starling.textures.concretetexture.html#empty" class="tsd-kind-icon">empty</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="starling.textures.concretetexture.html#fromatfdata" class="tsd-kind-icon">from<wbr>Atf<wbr>Data</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="starling.textures.concretetexture.html#frombitmap" class="tsd-kind-icon">from<wbr>Bitmap</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="starling.textures.concretetexture.html#frombitmapdata" class="tsd-kind-icon">from<wbr>Bitmap<wbr>Data</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="starling.textures.concretetexture.html#fromcolor" class="tsd-kind-icon">from<wbr>Color</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="starling.textures.concretetexture.html#fromdata" class="tsd-kind-icon">from<wbr>Data</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="starling.textures.concretetexture.html#fromembeddedasset" class="tsd-kind-icon">from<wbr>Embedded<wbr>Asset</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="starling.textures.concretetexture.html#fromnetstream" class="tsd-kind-icon">from<wbr>Net<wbr>Stream</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="starling.textures.concretetexture.html#fromtexture" class="tsd-kind-icon">from<wbr>Texture</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="starling.textures.concretetexture.html#fromtexturebase" class="tsd-kind-icon">from<wbr>Texture<wbr>Base</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="starling.textures.concretetexture.html#getmaxsize" class="tsd-kind-icon">get<wbr>Max<wbr>Size</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-static tsd-is-external"><a href="starling.textures.concretetexture.html#get_asyncbitmapuploadenabled" class="tsd-kind-icon">get_<wbr>async<wbr>Bitmap<wbr>Upload<wbr>Enabled</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-static tsd-is-external"><a href="starling.textures.concretetexture.html#get_maxsize" class="tsd-kind-icon">get_<wbr>max<wbr>Size</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-static tsd-is-external"><a href="starling.textures.concretetexture.html#set_asyncbitmapuploadenabled" class="tsd-kind-icon">set_<wbr>async<wbr>Bitmap<wbr>Upload<wbr>Enabled</a></li> </ul> </section> </div> </section> </section> <section class="tsd-panel-group tsd-member-group tsd-is-external"> <h2>Properties</h2> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="base" class="tsd-anchor"></a> <h3>base</h3> <div class="tsd-signature tsd-kind-icon">base<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">TextureBase</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#base">base</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L446">lib/starling/textures/Texture.d.ts:446</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>The Stage3D texture object the texture is based on.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="format" class="tsd-anchor"></a> <h3>format</h3> <div class="tsd-signature tsd-kind-icon">format<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Context3DTextureFormat</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#format">format</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L454">lib/starling/textures/Texture.d.ts:454</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>The <code>Context3DTextureFormat</code> of the underlying texture data.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="frame" class="tsd-anchor"></a> <h3>frame</h3> <div class="tsd-signature tsd-kind-icon">frame<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Rectangle</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#frame">frame</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L412">lib/starling/textures/Texture.d.ts:412</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>The texture frame if it has one (see class description), otherwise <code>null</code>. <p>CAUTION: not a copy, but the actual object! Do not modify!</p></p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="frameheight" class="tsd-anchor"></a> <h3>frame<wbr>Height</h3> <div class="tsd-signature tsd-kind-icon">frame<wbr>Height<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#frameheight">frameHeight</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L422">lib/starling/textures/Texture.d.ts:422</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>The width of the texture in points, taking into account the frame rectangle (if there is one).</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="framewidth" class="tsd-anchor"></a> <h3>frame<wbr>Width</h3> <div class="tsd-signature tsd-kind-icon">frame<wbr>Width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#framewidth">frameWidth</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L417">lib/starling/textures/Texture.d.ts:417</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>The height of the texture in points, taking into account the frame rectangle (if there is one).</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="height" class="tsd-anchor"></a> <h3>height</h3> <div class="tsd-signature tsd-kind-icon">height<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#height">height</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L430">lib/starling/textures/Texture.d.ts:430</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>The height of the texture in points.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="ispottexture" class="tsd-anchor"></a> <h3>is<wbr>Pot<wbr>Texture</h3> <div class="tsd-signature tsd-kind-icon">is<wbr>Pot<wbr>Texture<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/ConcreteTexture.d.ts#L89">lib/starling/textures/ConcreteTexture.d.ts:89</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Indicates if the base texture is a standard power-of-two dimensioned texture of type <code>flash.display3D.textures.Texture</code>.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="mipmapping" class="tsd-anchor"></a> <h3>mip<wbr>Mapping</h3> <div class="tsd-signature tsd-kind-icon">mip<wbr>Mapping<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#mipmapping">mipMapping</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L458">lib/starling/textures/Texture.d.ts:458</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Indicates if the texture contains mip maps.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="nativeheight" class="tsd-anchor"></a> <h3>native<wbr>Height</h3> <div class="tsd-signature tsd-kind-icon">native<wbr>Height<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#nativeheight">nativeHeight</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L438">lib/starling/textures/Texture.d.ts:438</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>The height of the texture in pixels (without scale adjustment).</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="nativewidth" class="tsd-anchor"></a> <h3>native<wbr>Width</h3> <div class="tsd-signature tsd-kind-icon">native<wbr>Width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#nativewidth">nativeWidth</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L434">lib/starling/textures/Texture.d.ts:434</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>The width of the texture in pixels (without scale adjustment).</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="onrestore" class="tsd-anchor"></a> <h3>on<wbr>Restore</h3> <div class="tsd-signature tsd-kind-icon">on<wbr>Restore<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">function</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/ConcreteTexture.d.ts#L104">lib/starling/textures/ConcreteTexture.d.ts:104</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>The that you provide here will be called after a context loss. On execution, a new base texture will already have been created; however, it will be empty. Call one of the &quot;upload...&quot; methods from within the callback to restore the actual texture data.</p> </div> <listing> texture:Texture = Texture.fromBitmap(new EmbeddedBitmap()); texture.root.onRestore = function():void { texture.root.uploadFromBitmap(new EmbeddedBitmap()); };</listing> </div> <div class="tsd-type-declaration"> <h4>Type declaration</h4> <ul class="tsd-parameters"> <li class="tsd-parameter-siganture"> <ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-property"> <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>ConcreteTexture<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>ConcreteTexture: <span class="tsd-signature-type">any</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4> </li> </ul> </li> </ul> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="optimizedforrendertexture" class="tsd-anchor"></a> <h3>optimized<wbr>For<wbr>Render<wbr>Texture</h3> <div class="tsd-signature tsd-kind-icon">optimized<wbr>For<wbr>Render<wbr>Texture<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/ConcreteTexture.d.ts#L84">lib/starling/textures/ConcreteTexture.d.ts:84</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Indicates if the base texture was optimized for being used in a render texture.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="premultipliedalpha" class="tsd-anchor"></a> <h3>premultiplied<wbr>Alpha</h3> <div class="tsd-signature tsd-kind-icon">premultiplied<wbr>Alpha<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#premultipliedalpha">premultipliedAlpha</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L462">lib/starling/textures/Texture.d.ts:462</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Indicates if the alpha values are premultiplied into the RGB values.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="root" class="tsd-anchor"></a> <h3>root</h3> <div class="tsd-signature tsd-kind-icon">root<span class="tsd-signature-symbol">:</span> <a href="starling.textures.concretetexture.html" class="tsd-signature-type">ConcreteTexture</a></div> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#root">root</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L450">lib/starling/textures/Texture.d.ts:450</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>The concrete texture the texture is based on.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="scale" class="tsd-anchor"></a> <h3>scale</h3> <div class="tsd-signature tsd-kind-icon">scale<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#scale">scale</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L442">lib/starling/textures/Texture.d.ts:442</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>The scale factor, which influences width and height properties.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="transformationmatrix" class="tsd-anchor"></a> <h3>transformation<wbr>Matrix</h3> <div class="tsd-signature tsd-kind-icon">transformation<wbr>Matrix<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Matrix</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#transformationmatrix">transformationMatrix</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L469">lib/starling/textures/Texture.d.ts:469</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>The matrix that is used to transform the texture coordinates into the coordinate space of the parent texture, if there is one. @default null</p> </div> <p>CAUTION: not a copy, but the actual object! Never modify this matrix!</p> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="transformationmatrixtoroot" class="tsd-anchor"></a> <h3>transformation<wbr>Matrix<wbr>ToRoot</h3> <div class="tsd-signature tsd-kind-icon">transformation<wbr>Matrix<wbr>ToRoot<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Matrix</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#transformationmatrixtoroot">transformationMatrixToRoot</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L476">lib/starling/textures/Texture.d.ts:476</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>The matrix that is used to transform the texture coordinates into the coordinate space of the root texture, if this instance is not the root. @default null</p> </div> <p>CAUTION: not a copy, but the actual object! Never modify this matrix!</p> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="width" class="tsd-anchor"></a> <h3>width</h3> <div class="tsd-signature tsd-kind-icon">width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#width">width</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L426">lib/starling/textures/Texture.d.ts:426</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>The width of the texture in points.</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"> <a name="asyncbitmapuploadenabled" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> async<wbr>Bitmap<wbr>Upload<wbr>Enabled</h3> <div class="tsd-signature tsd-kind-icon">async<wbr>Bitmap<wbr>Upload<wbr>Enabled<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#asyncbitmapuploadenabled">asyncBitmapUploadEnabled</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L493">lib/starling/textures/Texture.d.ts:493</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Indicates if it should be attempted to upload bitmaps asynchronously when the <code>async</code> parameter is supplied to supported methods. Since this feature is still not 100% reliable in AIR 26 (especially on Android), it defaults to &#39;false&#39; for now.</p> </div> <p>If the feature is disabled or not available in the current AIR/Flash runtime, the async callback will still be executed; however, the upload itself will be made synchronously.</p> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"> <a name="maxsize" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> max<wbr>Size</h3> <div class="tsd-signature tsd-kind-icon">max<wbr>Size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#maxsize">maxSize</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L481">lib/starling/textures/Texture.d.ts:481</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Returns the maximum size constraint (for both width and height) for uncompressed textures in the current Context3D profile.</p> </div> </div> </section> </section> <section class="tsd-panel-group tsd-member-group tsd-is-external"> <h2>Methods</h2> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external"> <a name="attachnetstream" class="tsd-anchor"></a> <h3>attach<wbr>Net<wbr>Stream</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external"> <li class="tsd-signature tsd-kind-icon">attach<wbr>Net<wbr>Stream<span class="tsd-signature-symbol">(</span>netStream<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">NetStream</span>, onComplete<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/ConcreteTexture.d.ts#L70">lib/starling/textures/ConcreteTexture.d.ts:70</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Specifies a video stream to be rendered within the texture.</p> </div> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>netStream: <span class="tsd-signature-type">NetStream</span></h5> </li> <li> <h5><span class="tsd-flag ts-flagOptional">Optional</span> onComplete: <span class="tsd-signature-type">function</span></h5> <ul class="tsd-parameters"> <li class="tsd-parameter-siganture"> <ul class="tsd-signatures tsd-kind-type-literal"> <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>ConcreteTexture<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>ConcreteTexture: <span class="tsd-signature-type">any</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4> </li> </ul> </li> </ul> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external"> <a name="clear" class="tsd-anchor"></a> <h3>clear</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external"> <li class="tsd-signature tsd-kind-icon">clear<span class="tsd-signature-symbol">(</span>color<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, alpha<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/ConcreteTexture.d.ts#L79">lib/starling/textures/ConcreteTexture.d.ts:79</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Clears the texture with a certain color and alpha value. The previous contents of the texture is wiped out.</p> </div> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5><span class="tsd-flag ts-flagOptional">Optional</span> color: <span class="tsd-signature-type">number</span></h5> </li> <li> <h5><span class="tsd-flag ts-flagOptional">Optional</span> alpha: <span class="tsd-signature-type">number</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-external"> <a name="dispose" class="tsd-anchor"></a> <h3>dispose</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-external"> <li class="tsd-signature tsd-kind-icon">dispose<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <p>Overrides <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#dispose">dispose</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/ConcreteTexture.d.ts#L28">lib/starling/textures/ConcreteTexture.d.ts:28</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Disposes the TextureBase object.</p> </div> </div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="gettexcoords" class="tsd-anchor"></a> <h3>get<wbr>Tex<wbr>Coords</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <li class="tsd-signature tsd-kind-icon">get<wbr>Tex<wbr>Coords<span class="tsd-signature-symbol">(</span>vertexData<span class="tsd-signature-symbol">: </span><a href="starling.rendering.vertexdata.html" class="tsd-signature-type">VertexData</a>, vertexID<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, attrName<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, out<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Point</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Point</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#gettexcoords">getTexCoords</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L405">lib/starling/textures/Texture.d.ts:405</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Reads a pair of texture coordinates from the given VertexData instance and transforms them into the current texture&#39;s coordinate system. (Remember, the VertexData instance will always contain the coordinates in the root texture&#39;s coordinate system!)</p> </div> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>vertexData: <a href="starling.rendering.vertexdata.html" class="tsd-signature-type">VertexData</a></h5> </li> <li> <h5>vertexID: <span class="tsd-signature-type">number</span></h5> </li> <li> <h5><span class="tsd-flag ts-flagOptional">Optional</span> attrName: <span class="tsd-signature-type">string</span></h5> </li> <li> <h5><span class="tsd-flag ts-flagOptional">Optional</span> out: <span class="tsd-signature-type">Point</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Point</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"> <a name="get_base" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagProtected">Protected</span> get_<wbr>base</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"> <li class="tsd-signature tsd-kind-icon">get_<wbr>base<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">TextureBase</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#get_base">get_base</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L447">lib/starling/textures/Texture.d.ts:447</a></li> </ul> </aside> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">TextureBase</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"> <a name="get_format" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagProtected">Protected</span> get_<wbr>format</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected tsd-is-external"> <li class="tsd-signature tsd-kind-icon">get_<wbr>format<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Context3DTextureFormat</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <p>Inherited from <a href="starling.textures.texture.html">Texture</a>.<a href="starling.textures.texture.html#get_format">get_format</a></p> <ul> <li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L455">lib/starlin