modern-canvas 0.27.18 → 0.27.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -17,6 +17,8 @@ export interface Batchable2D {
|
|
|
17
17
|
blendMode?: GlBlendMode;
|
|
18
18
|
roundPixels?: boolean;
|
|
19
19
|
clipOutsideUv?: boolean;
|
|
20
|
+
/** 本次绘制钳制图片边缘;不修改共享纹理,平铺绘制仍使用纹理原有采样方式。 */
|
|
21
|
+
clampTexture?: boolean;
|
|
20
22
|
/**
|
|
21
23
|
* Effect flag bits (bit 1+ of the aTextureParams.y byte; bit 0 is reserved
|
|
22
24
|
* for clipOutsideUv). Semantics are defined by the registered
|
|
@@ -34,6 +36,7 @@ type DrawCall = Required<GlDrawOptions> & {
|
|
|
34
36
|
id: number;
|
|
35
37
|
textures: TextureLike[];
|
|
36
38
|
textureLocationMap: Map<TextureLike, number>;
|
|
39
|
+
textureClampMap: Map<TextureLike, boolean>;
|
|
37
40
|
blendMode: GlBlendMode;
|
|
38
41
|
};
|
|
39
42
|
interface BatchProgram {
|
|
@@ -20,7 +20,7 @@ export declare class GlTextureSystem extends GlSystem {
|
|
|
20
20
|
protected _updateContext(gl: GlRenderingContext): void;
|
|
21
21
|
getGlTexture(texture: TextureLike): GlTexture;
|
|
22
22
|
protected _createGlTexture(texture: TextureLike): GlTexture;
|
|
23
|
-
bind(texture?: TextureLike | null, location?: number): void;
|
|
23
|
+
bind(texture?: TextureLike | null, location?: number, clampOverride?: boolean): void;
|
|
24
24
|
protected _activateLocation(location: number): void;
|
|
25
25
|
unbind(source: TextureLike | number): void;
|
|
26
26
|
protected _sourceUnload(source: TextureLike): void;
|