UNPKG

1.73 kBSource Map (JSON)View Raw
1{"version":3,"file":"GLTexture.js","sources":["../../src/textures/GLTexture.ts"],"sourcesContent":["import { FORMATS, TYPES } from '@pixi/constants';\n\n/**\n * Internal texture for WebGL context.\n * @memberof PIXI\n */\nexport class GLTexture\n{\n /** The WebGL texture. */\n public texture: WebGLTexture;\n\n /** Width of texture that was used in texImage2D. */\n public width: number;\n\n /** Height of texture that was used in texImage2D. */\n public height: number;\n\n /** Whether mip levels has to be generated. */\n public mipmap: boolean;\n\n /** WrapMode copied from baseTexture. */\n public wrapMode: number;\n\n /** Type copied from baseTexture. */\n public type: number;\n\n /** Type copied from baseTexture. */\n public internalFormat: number;\n\n /** Type of sampler corresponding to this texture. See {@link PIXI.SAMPLER_TYPES} */\n public samplerType: number;\n\n /** Texture contents dirty flag. */\n dirtyId: number;\n\n /** Texture style dirty flag. */\n dirtyStyleId: number;\n\n constructor(texture: WebGLTexture)\n {\n this.texture = texture;\n this.width = -1;\n this.height = -1;\n this.dirtyId = -1;\n this.dirtyStyleId = -1;\n this.mipmap = false;\n this.wrapMode = 33071;\n this.type = TYPES.UNSIGNED_BYTE;\n this.internalFormat = FORMATS.RGBA;\n\n this.samplerType = 0;\n }\n}\n"],"names":["TYPES","FORMATS"],"mappings":";;AAMO,MAAM,UACb;AAAA,EA+BI,YAAY,SACZ;AACI,SAAK,UAAU,SACf,KAAK,QAAQ,IACb,KAAK,SAAS,IACd,KAAK,UAAU,IACf,KAAK,eAAe,IACpB,KAAK,SAAS,IACd,KAAK,WAAW,OAChB,KAAK,OAAOA,UAAAA,MAAM,eAClB,KAAK,iBAAiBC,UAAQ,QAAA,MAE9B,KAAK,cAAc;AAAA,EACvB;AACJ;;"}
\No newline at end of file