| CRM64Pro GDK v0.18.0 A free cross-platform game development kit built on top of SDL 3.0

Loading...
Searching...
No Matches
CRM64Pro::SceneCameraParams
Scene modules

Camera configuration parameters. More...

## Detailed Description

Camera configuration parameters.

Parameters are stored per layer and used by camera modes other than ::SCM_MANUAL.

Note
  Values are sanitized by setCameraParams(): anchors are clamped to [0..1], deadzone width/height to >= 0, and damping to >= 0.

## Public Attributes
SDL_FRect | rDeadZone
| Deadzone rectangle in viewport pixels for ::SCM_DEADZONE. Currently only w/h are used (x/y are ignored). w/h <= 0 disables deadzone behavior. The deadzone is centered on ptScreenAnchor.
SDL_FPoint | ptAutoScrollSpeed
| Camera autoscroll speed in pixels/second for ::SCM_AUTOSCROLL. Positive X moves right, positive Y moves down.
float | fDamping
| Exponential damping strength in 1/second. 0 means no smoothing (instant move), larger values converge faster. Valid range: >= 0.
bool | bClampToBounds
| If true, clamp camera to explicit camera bounds (if set) or to layer/world bounds. Repeat-enabled axes (SLF_REPEATX/Y) are not clamped on their respective axis.
SDL_FPoint | ptTargetAnchor
| Normalized target anchor [0..1]x[0..1] on the followed object (0,0=top-left, 0.5,1.0=feet-center). Values outside range are clamped.
SDL_FPoint | ptScreenAnchor
| Normalized viewport anchor [0..1]x[0..1] where the target anchor should appear on screen. (0.5,0.5=center). Values outside range are clamped.