Search the Community
Showing results for tags 'webglprepare'.
Found 1 result
Pixi v4 WebGLPrepare usage
danrostron posted a topic in Pixi.jsHi I'm trying to use the WebGLPrepare class to upload textures to the GPU before starting my game, however I'm unsure how to use this class. https://github.com/pixijs/pixi.js/blob/58ccf3381566c009c418aa305924539f372281f3/src/prepare/webgl/WebGLPrepare.js When I try: let prep:WebGLPrepare = new PIXI.prepare.WebGLPrepare(this.renderer as WebGLRenderer); I get an error - PixiMediator.ts:118Uncaught TypeError: PIXI.prepare.WebGLPrepare is not a constructor Any ideas would be greatly appreciated? Thanks Dan