UNPKG

ts-game-engine

Version:

Simple WebGL game/render engine written in TypeScript

19 lines (18 loc) 678 B
import { IDisposable } from "../Interfaces"; import { Scene } from "../Scene"; import { PipelineState } from "../Systems/Graphics/PipelineState"; export declare const enum TextureTypes { Texture2D = 3553, TextureCubeMap = 34067 } export declare class Texture implements IDisposable { protected context: WebGL2RenderingContext; protected pipelineState: PipelineState; protected texture: WebGLTexture; get Texture(): WebGLTexture; protected constructor(scene: Scene); Dispose(): void; protected IsPowerOf2(value: number): boolean; protected static readonly textures: Map<string, Texture>; static DisposeAll(): void; }