class
#include <Jazz2/Rendering/PlayerViewport.h>
PlayerViewport Player viewport.
Constructors, destructors, conversion operators
-
PlayerViewport(LevelHandler* levelHandler,
Actors::
Player* targetPlayer)
Public functions
- auto Initialize(SceneNode* sceneNode, SceneNode* outputNode, Recti bounds, bool useHalfRes) -> bool
- void Register()
- auto GetBounds() const -> Rectf
- auto GetViewportSize() const -> Vector2i
-
auto GetTargetPlayer() const -> Actors::
Player* - void OnEndFrame()
- void UpdateCamera(float timeMult)
- void ShakeCameraView(float duration)
- void OverrideCamera(float x, float y, bool topLeft = false)
- void WarpCameraToTarget(bool fast)