@tolokoban/tgd
Version:
ToloGameDev library for WebGL2
17 lines • 922 B
TypeScript
import { TgdTexture2D } from "./texture2d";
import { TgdContext } from "../context";
interface TgdTextureDepthStorage {
width: number;
height: number;
format: "DEPTH_COMPONENT16 / DEPTH_COMPONENT / UNSIGNED_SHORT" | "DEPTH_COMPONENT16 / DEPTH_COMPONENT / UNSIGNED_INT" | "DEPTH_COMPONENT24 / DEPTH_COMPONENT / UNSIGNED_INT" | "DEPTH_COMPONENT32F / DEPTH_COMPONENT / FLOAT" | "DEPTH24_STENCIL8 / DEPTH_STENCIL / UNSIGNED_INT_24_8" | "DEPTH32F_STENCIL8 / DEPTH_STENCIL / FLOAT_32_UNSIGNED_INT_24_8_REV";
}
export declare class TgdTextureDepth extends TgdTexture2D {
readonly context: TgdContext;
constructor(context: TgdContext, { width, height, format, }?: Partial<TgdTextureDepthStorage>);
readonly resize: (width: number, height: number) => void;
private readonly resize16;
private readonly resize24;
private readonly resize32F;
}
export {};
//# sourceMappingURL=texture-depth.d.ts.map