UNPKG

starling-framework

Version:

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

31 lines 1.07 kB
import ConcreteTexture from "./ConcreteTexture"; import ByteArray from "openfl/utils/ByteArray"; import Texture from "openfl/display3D/textures/Texture"; import BitmapData from "openfl/display/BitmapData"; declare namespace starling.textures { /** * @private * * * * A concrete texture that wraps a <code>Texture</code> base. * * For internal use only. */ export class ConcretePotTexture extends ConcreteTexture { /** * Creates a new instance with the given parameters. */ protected constructor(base: Texture, format: string, width: number, height: number, mipMapping: boolean, premultipliedAlpha: boolean, optimizedForRenderTexture?: boolean, scale?: number); /** * @inheritDoc */ override dispose(): void; /** * @inheritDoc */ override uploadBitmapData(data: BitmapData, async?: (arg0: ConcreteTexture) => void): void; /** * @inheritDoc */ override uploadAtfData(data: ByteArray, offset?: number, async?: (arg0: ConcreteTexture) => void): void; } } export default starling.textures.ConcretePotTexture;