@tolokoban/tgd
Version:
ToloGameDev library for WebGL2
24 lines • 726 B
TypeScript
import { TgdProgram } from "../program";
import { TgdTextureCubeOptions } from "../types";
export declare class TgdTextureCubeImpl {
readonly context: {
gl: WebGL2RenderingContext;
paint: () => void;
};
readonly texture: WebGLTexture;
private _width;
private _height;
private numberOfImagesToLoad;
constructor(context: {
gl: WebGL2RenderingContext;
paint: () => void;
}, options: TgdTextureCubeOptions);
delete(): void;
get ready(): boolean;
get width(): number;
get height(): number;
bind(): void;
activate(unit: number, program: TgdProgram, uniformName: string): void;
private loadImage;
}
//# sourceMappingURL=texture-cube.d.ts.map