UNPKG

@xeokit/xeokit-sdk

Version:

3D BIM IFC Viewer SDK for AEC engineering applications. Open Source JavaScript Toolkit based on pure WebGL for top performance, real-world coordinates and full double precision

27 lines (24 loc) 953 B
import { Component } from '../Component'; export declare type CubeTextureConfiguration = { /**Optional ID for this CubeTexture, unique among all components in the parent scene, generated automatically when omitted. */ id?: string; /**Paths to six image files to load into this CubeTexture. */ src: string[]; /**Flips this CubeTexture's source data along its vertical axis when true. */ flipY?: boolean; /**Encoding format. Supported values are {@link LinearEncoding} and {@link sRGBEncoding}. */ encoding?: number; } export declare class CubeTexture extends Component { /** * @constructor * @param {Component} owner Owner component. When destroyed, the owner will destroy this component as well. * @param {CubeTextureConfiguration} [cfg] Configs */ constructor(owner: Component, cfg?: CubeTextureConfiguration); /** * Destroys this CubeTexture * */ destroy(): void; }