MCPcopy Create free account
hub / github.com/melonjs/melonJS / setAntiAlias

Method setAntiAlias

packages/melonjs/src/video/renderer.js:721–726  ·  view source on GitHub ↗

* enable/disable image smoothing (scaling interpolation) for the current render target * @param {boolean} [enable=false]

(enable = false)

Source from the content-addressed store, hash-verified

719 * @param {boolean} [enable=false]
720 */
721 setAntiAlias(enable = false) {
722 if (this.settings.antiAlias !== enable) {
723 this.settings.antiAlias = enable;
724 this.renderTarget.setAntiAlias(enable);
725 }
726 }
727
728 /**
729 * Resolve the default texture filter **mode** for this renderer, decoupled

Callers 3

scaleFunction · 0.45
renderer.spec.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected