import type { GLCat } from './GLCat'; import { GLCatTexture } from './GLCatTexture'; declare type WebGL1 = WebGLRenderingContext; declare type WebGL2 = WebGL2RenderingContext; /** * It's a WebGLTexture, but cubemap. */ export declare class GLCatTextureCubemap extends GLCatTexture { protected get __target(): GLenum; /** * Create a new GLCatTexture instance. */ constructor(glCat: GLCat, texture: WebGLTexture); /** * Bind this texture. */ bind(): void; bind(callback: (texture: this) => T): T; /** * Return a value for the passed parameter name. * See: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getParameter */ getParameter(pname: GLenum): any; /** * Specify the pixel storage modes. * See: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/pixelStorei */ pixelStorei(pname: GLenum, param: number | boolean): void; /** * Set new cubemap data into this texture. * @param textures Array of iamges. Order: `X+`, `X-`, `Y+`, `Y-`, `Z+`, `Z-` * @todo due to compatibility of its `width` and `height` it should not be used yet */ setCubemap(textures: TexImageSource[]): void; /** * Set new data into this cubemap. * This function uses TypedArray. If you want to source image data, use `GLCat.setCubemap()` instead. */ setCubemapFromArray(width: number, height: number, sources: (ArrayBufferView | null)[] | null, { internalformat, format, type }?: { internalformat?: number | undefined; format?: number | undefined; type?: number | undefined; }): void; /** * Set [ 0, 0, 0, 0 ] to this texture. * Useful for temporary use.. */ setZeroTexture(): void; } export {};