mirror of
https://github.com/photonstorm/phaser
synced 2024-12-22 11:03:23 +00:00
1 line
8.6 KiB
JSON
1 line
8.6 KiB
JSON
|
{"class":{"name":"PIXI.WebGLRenderer","extends":"","static":false,"constructor":true,"parameters":[{"name":"[width=0]","type":["number"],"help":"the width of the canvas view","optional":false,"default":null},{"name":"[height=0]","type":["number"],"help":"the height of the canvas view","optional":false,"default":null},{"name":"[options]","type":["object"],"help":"The optional renderer parameters","optional":false,"default":null},{"name":"[options.view]","type":["HTMLCanvasElement"],"help":"the canvas to use as a view, optional","optional":false,"default":null},{"name":"[options.transparent=false]","type":["boolean"],"help":"If the render view is transparent, default false","optional":false,"default":null},{"name":"[options.antialias=false]","type":["boolean"],"help":"sets antialias (only applicable in chrome at the moment)","optional":false,"default":null},{"name":"[options.preserveDrawingBuffer=false]","type":["boolean"],"help":"enables drawing buffer preservation, enable this if you need to call toDataUrl on the webgl context","optional":false,"default":null},{"name":"[options.resolution=1]","type":["number"],"help":"the resolution of the renderer retina would be 2","optional":false,"default":null}],"help":"The WebGLRenderer draws the stage and all its content onto a webGL enabled canvas. This renderer\\nshould be used for browsers that support webGL. This Render works by automatically managing webGLBatchs.\\nSo no need for Sprite Batches or Sprite Clouds.\\nDon't forget to add the view to your DOM or you will not see anything :)"},"consts":[],"methods":{"public":[{"name":"destroy","static":false,"returns":null,"help":"Removes everything from the renderer (event listeners, spritebatch, etc...)","line":465,"public":true,"protected":false,"private":false,"parameters":[],"inherited":false,"inheritedFrom":""},{"name":"initContext","static":false,"returns":null,"help":"","line":231,"public":true,"protected":false,"private":false,"parameters":[],"inherited":false,"inheritedFrom":""},{"name":"mapBlendModes","static":false,"returns":null,"help":"Maps Pixi blend modes to WebGL blend modes.","line":496,"public":true,"protected":false,"private":false,"parameters":[],"inherited":false,"inheritedFrom":""},{"name":"render","static":false,"returns":null,"help":"Renders the stage to its webGL view","line":270,"public":true,"protected":false,"private":false,"parameters":[{"name":"stage","type":["PIXI.Stage"],"help":"the Stage element to be rendered","optional":false,"default":null}],"inherited":false,"inheritedFrom":""},{"name":"renderDisplayObject","static":false,"returns":null,"help":"Renders a Display Object.","line":340,"public":true,"protected":false,"private":false,"parameters":[{"name":"displayObject","type":["PIXI.DisplayObject"],"help":"The DisplayObject to render","optional":false,"default":null},{"name":"projection","type":["Phaser.Point"],"help":"The projection","optional":false,"default":null},{"name":"buffer","type":["array"],"help":"a standard WebGL buffer","optional":false,"default":null}],"inherited":false,"inheritedFrom":""},{"name":"resize","static":false,"returns":null,"help":"Resizes the webGL view to the specified width and height.","line":373,"public":true,"protected":false,"private":false,"parameters":[{"name":"width","type":["number"],"help":"the new width of the webGL view","optional":false,"default":null},{"name":"height","type":["number"],"help":"the new height of the webGL view","optional":false,"default":null}],"inherited":false,"inheritedFrom":""},{"name":"updateTexture","static":false,"returns":null,"help":"Updates and Creates a WebGL texture for the renderers context.","line":393,"public":true,"protected":false,"private":false,"parameters":[{"name":"texture","type":["PIXI.Texture"],"help":"the texture to update","optional":false,"default":null}],"inherited":false,"inheritedFrom":""}],"protected":[],"private":[{"name":"handleContextLost","static":false,"returns":null,"help":"Handles a lost webgl context","line":433,"public":false,"protected":false,"private":true,"parameters":[{"name":"event","type":["Eve
|