UNPKG

xl-pano

Version:

一个基于 Typescript 的,同时支持立方体和球体场景的轻量开源库。

11 lines (10 loc) 319 B
/** * 对 WebGLRenderingContext 进行扩展,加上 program,方便使用 * */ export interface WebGLRenderingContextWithProgram extends WebGLRenderingContext { program?: WebGLProgram; } /** * 纹理资源:可以是图像或者资源地址 * */ export declare type TextureSource = TexImageSource | string;