UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

18 lines 1.12 kB
/** * Copy a patch from another sampler with a margin. * This is useful for texture rendering where filtering can cause bleeding along the edges of the patch. * @param {Sampler2D} destination * @param {Sampler2D} source where to copy from * @param {Number} sourceX where to start reading from, X coordinate * @param {Number} sourceY where to start reading from, X coordinate * @param {Number} destinationX where to start writing to, X coordinate * @param {Number} destinationY where to start writing to, X coordinate * @param {Number} width size of the patch that is to be copied * @param {Number} height size of the patch that is to be copied * @param {Number} marginLeft * @param {Number} marginRight * @param {Number} marginTop * @param {Number} marginBottom */ export function sampler2d_copy_with_margins(destination: Sampler2D, source: Sampler2D, sourceX: number, sourceY: number, destinationX: number, destinationY: number, width: number, height: number, marginLeft: number, marginRight: number, marginTop: number, marginBottom: number): void; //# sourceMappingURL=sampler2d_copy_with_margins.d.ts.map