![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <ECS_Systems.h>
Collaboration diagram for CameraTransform:Public Member Functions | |
| Vector | WorldToScreen (const Vector &worldPos) const |
| Vector | WorldSizeToScreenSize (const Vector &worldSize) const |
| Vector | ScreenToWorld (const Vector &screenPos) const |
| bool | IsVisible (const SDL_FRect &worldBounds) const |
Public Attributes | |
| Vector | worldPosition |
| Vector | screenOffset |
| float | zoom = 0.f |
| float | rotation = 0.f |
| SDL_FRect | viewport = {0.f, 0.f, 0.f, 0.f} |
| bool | isActive = false |
Definition at line 309 of file ECS_Systems.h.
Definition at line 409 of file ECS_Systems.h.
References GetComponentTypeID_Static(), isActive, viewport, and WorldToScreen().
Here is the call graph for this function:Definition at line 367 of file ECS_Systems.h.
References GetComponentTypeID_Static(), isActive, k_PI, rotation, screenOffset, viewport, worldPosition, Vector::x, Vector::y, and zoom.
Here is the call graph for this function:Definition at line 360 of file ECS_Systems.h.
References zoom.
Definition at line 319 of file ECS_Systems.h.
References GetComponentTypeID_Static(), isActive, k_PI, rotation, screenOffset, viewport, worldPosition, Vector::x, Vector::y, and zoom.
Referenced by IsVisible().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 316 of file ECS_Systems.h.
Referenced by GetActiveCameraTransform(), IsVisible(), RenderContext::RenderContext(), ScreenToWorld(), and WorldToScreen().
Definition at line 314 of file ECS_Systems.h.
Referenced by RenderContext::RenderContext(), ScreenToWorld(), and WorldToScreen().
| Vector CameraTransform::screenOffset |
Definition at line 312 of file ECS_Systems.h.
Referenced by RenderContext::RenderContext(), ScreenToWorld(), and WorldToScreen().
Definition at line 315 of file ECS_Systems.h.
Referenced by IsVisible(), RenderContext::RenderContext(), ScreenToWorld(), and WorldToScreen().
| Vector CameraTransform::worldPosition |
Definition at line 311 of file ECS_Systems.h.
Referenced by RenderContext::RenderContext(), ScreenToWorld(), and WorldToScreen().
Definition at line 313 of file ECS_Systems.h.
Referenced by RenderContext::RenderContext(), ScreenToWorld(), WorldSizeToScreenSize(), and WorldToScreen().