mirror of
https://github.com/Relintai/programming_tutorials.git
synced 2025-04-21 21:51:22 +02:00
Camera's txt.
This commit is contained in:
parent
8a4c3b0492
commit
ba019f49ad
@ -1,4 +1,9 @@
|
||||
|
||||
Csináljunk, egy Kamera (Camera) osztályt.
|
||||
|
||||
Ez az osztály fogja segíteni a Renderer clip_rect-jét kezelni.
|
||||
|
||||
|
||||
|---------------------------------------------------------------------------------------|
|
||||
| class Camera |
|
||||
|---------------------------------------------------------------------------------------|
|
||||
@ -10,7 +15,7 @@
|
||||
| + bool integer_scaling |
|
||||
| + float scale_w |
|
||||
| + float scale_h |
|
||||
| + viewport |
|
||||
| + Rect2 viewport |
|
||||
| + Rect2 clip_rect |
|
||||
|---------------------------------------------------------------------------------------|
|
||||
|
||||
@ -24,6 +29,9 @@ bind:
|
||||
Renderer::get_singleton()->set_viewport(viewport)
|
||||
Renderer::get_singleton()->set_clip_rect(&clip_rect)
|
||||
|
||||
|
||||
Ezt kell meghívni, hogy a kamera aktív legyen.
|
||||
|
||||
------------------------------------------------------------------------------------------
|
||||
|
||||
Camera:
|
||||
|
Loading…
Reference in New Issue
Block a user