UNPKG

@awayjs/stage

Version:
48 lines 1.73 kB
import { ParserBase, ResourceDependency } from '@awayjs/core'; /** * ImageCubeParser provides a "parser" for natively supported image types (jpg, png). While it simply loads bytes into * a loader object, it wraps it in a BitmapImage2DResource so resource management can happen consistently without * exception cases. */ export declare class ImageCubeParser extends ParserBase { private static posX; private static negX; private static posY; private static negY; private static posZ; private static negZ; private _imgDependencyDictionary; /** * Creates a new ImageCubeParser object. * @param uri The url or id of the data or file to be parsed. * @param extra The holder for extra contextual data that the parser might need. */ constructor(); /** * Indicates whether or not a given file extension is supported by the parser. * @param extension The file extension of a potential file to be parsed. * @return Whether or not the given file type is supported. */ static supportsType(extension: string): boolean; /** * Tests whether a data block can be parsed by the parser. * @param data The data block to potentially be parsed. * @return Whether or not the given data is supported. */ static supportsData(data: any): boolean; /** * @inheritDoc */ resolveDependency(resourceDependency: ResourceDependency): void; /** * @inheritDoc */ resolveDependencyFailure(resourceDependency: ResourceDependency): void; /** * @inheritDoc */ protected proceedParsing(): void; private _validateCubeData; private _getBitmapImage2D; } //# sourceMappingURL=ImageCubeParser.d.ts.map