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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
use crateWindowEvent;
use crateCanvas;
use ;
/// Trait that all 2D camera implementations must implement.
///
/// 2D cameras control the view for 2D overlays and scene elements.
/// Unlike 3D cameras, 2D cameras work with 2D transformations and projections.
///
/// # Implementations
/// kiss3d provides built-in 2D camera types:
/// - [`FixedView2d`](crate::camera::FixedView2d) - Static 2D camera
/// - [`PanZoomCamera2d`](crate::camera::PanZoomCamera2d) - Side-scrolling camera