UNPKG

@egjs/view360

Version:

360 integrated viewing solution from inside-out view to outside-in view. It provides user-friendly service by rotating 360 degrees through various user interaction such as motion sensor and touch.

23 lines (22 loc) 1.21 kB
import { CubemapConfig } from "../../types/internal"; import Renderer from "./Renderer"; declare class CubeRenderer extends Renderer { static extractOrder(imageConfig: CubemapConfig): string; private static _VERTEX_POSITION_DATA; private static _INDEX_DATA; getVertexPositionData(): number[]; getIndexData(): number[]; getTextureCoordData({ image, imageConfig }: { image: HTMLImageElement | HTMLVideoElement; imageConfig: CubemapConfig; }): number[]; getVertexShaderSource(): string; getFragmentShaderSource(): string; updateTexture(gl: WebGLRenderingContext, image: HTMLImageElement | HTMLVideoElement, imageConfig: CubemapConfig): void; bindTexture(gl: WebGLRenderingContext, texture: WebGLTexture, image: HTMLImageElement | HTMLVideoElement, imageConfig: CubemapConfig): void; getSourceTileSize(image: HTMLImageElement | HTMLVideoElement): any; extractTileFromImage(image: HTMLImageElement | HTMLVideoElement, tileIdx: number, outputTextureSize: number): HTMLCanvasElement; getMaxCubeMapTextureSize(gl: WebGLRenderingContext, image: HTMLImageElement | HTMLVideoElement): number; private _shrinkCoord; } export default CubeRenderer;