forked from heremaps/harp.gl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IPassManager.ts
30 lines (27 loc) · 974 Bytes
/
IPassManager.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* Copyright (C) 2023- XYZ maps contributors
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE
* SPDX-License-Identifier: Apache-2.0
*/
import * as THREE from "three";
/**
* `IPassManager` provides a base interface for {@link Pass}
* managers like {@link MapRenderingManager}.
*/
export interface IPassManager {
/**
* The render method to extend in `IPassManager`'s implementations. This is the place where the
* desired setups and effect composing and chaining happen.
*/
render(renderer: THREE.WebGLRenderer, ...args: any[]): void;
/**
* The resize method to extend in {@link Pass} implementations
* to resize the render targets to match
* the size of the visible canvas. It should be called on resize events.
*
* @param width - Width to resize to.
* @param height - Height to resize to.
*/
setSize(width: number, height: number): void;
}