@tolokoban/tgd
Version:
ToloGameDev library for WebGL2
33 lines • 1.13 kB
TypeScript
import { TgdColor } from "../color";
import type { TgdContext } from "../context";
import type { TgdVec4 } from "../math";
import type { TgdProgram } from "../program";
import type { ArrayNumber4, TgdTextureCubeOptions } from "../types";
export declare class TgdTextureCube {
readonly context: TgdContext;
static lazyLoad(context: TgdContext, { size, initialColor, name, posX, posY, posZ, negX, negY, negZ, }: {
size: number;
initialColor?: ArrayNumber4 | TgdVec4 | TgdColor | string;
name?: string;
posX: string;
posY: string;
posZ: string;
negX: string;
negY: string;
negZ: string;
}): TgdTextureCube;
private static ID;
name: string;
readonly texture: WebGLTexture;
private _width;
private _height;
constructor(context: TgdContext, options: TgdTextureCubeOptions);
delete(): void;
get width(): number;
get height(): number;
bind(): void;
unbind(): void;
activate(unit: number, program: TgdProgram, uniformName: string): void;
private loadImage;
}
//# sourceMappingURL=texture-cube.d.ts.map