1 | <?php |
||
29 | class CameraComponent extends ComponentAbstract implements CameraInterface |
||
30 | { |
||
31 | /** |
||
32 | * Initialize Component |
||
33 | * |
||
34 | * {@inheritdoc} |
||
35 | * |
||
36 | * @return bool |
||
37 | */ |
||
38 | 6 | public function initializeComponent(): bool |
|
43 | |||
44 | /** |
||
45 | * Camera active |
||
46 | * |
||
47 | * Whether the camera is currently the active camera in a scene with multiple cameras. |
||
48 | * |
||
49 | * @param bool $active |
||
50 | * @return void |
||
51 | */ |
||
52 | 1 | public function active(bool $active = false) |
|
56 | |||
57 | /** |
||
58 | * Camera frustum far clipping plane. |
||
59 | * |
||
60 | * @param int|float $far |
||
61 | * @return void |
||
62 | */ |
||
63 | 1 | public function far(float $far = 10000) |
|
67 | |||
68 | /** |
||
69 | * Field of view (in degrees). |
||
70 | * |
||
71 | * @param int $fov |
||
72 | * @return void |
||
73 | */ |
||
74 | 1 | public function fov(int $fov = 80) |
|
78 | |||
79 | /** |
||
80 | * Camera frustum near clipping plane. |
||
81 | * |
||
82 | * @param float $near |
||
83 | * @return void |
||
84 | */ |
||
85 | 4 | public function near(float $near = 0.5) |
|
89 | |||
90 | /** |
||
91 | * Camera zoom |
||
92 | * |
||
93 | * @param int|float $zoom |
||
94 | * @return void |
||
95 | */ |
||
96 | 1 | public function zoom(float $zoom = 1) |
|
100 | } |