Camera2DD class
Camera2D, defines position/orientation in 2d space
- Inheritance
-
- Object
- RaylibStruct<
Camera2DD> - RaylibStructLiteral<
Camera2DD> - Camera2DD
Constructors
-
Camera2DD({StructPointer<
Camera2DD> ? op, Vector2D? offset, Vector2D? target, double rotation = 0, double zoom = 1}) - Camera2DD.zero()
-
factory
Properties
- $state → RaylibTempStructState
-
Per-instance allocation state tracking slot keys, disposal, and identity.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- offset ↔ Vector2D
-
Camera offset (screen space offset from window origin)
getter/setter pair
-
op
↔ StructPointer<
Camera2DD> ? -
The C-owned or RaylibTemp-owned typed pointer for this struct, if any.
getter/setter pairinherited
- rotation ↔ double
-
Camera rotation in degrees (pivots around target)
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- structIsDisposed → bool
-
Whether structMarkDisposed has been called on this instance.
no setterinherited
- structName → String
-
The Dart-side type name of this struct
no setterinherited
- target ↔ Vector2D
-
Camera target (world space target point that is mapped to screen space offset)
getter/setter pair
- zoom ↔ double
-
Camera zoom (scaling around target), must not be set to 0, set to 1.0f for no scale
getter/setter pair
Methods
-
clone(
) → Camera2DD -
Returns a deep copy of this instance, preserving op if present.
override
-
copy(
) → Camera2DD -
Returns a deep copy of this instance without op.
inherited
-
getOp(
) → StructPointer< Camera2DD> -
Returns op, throwing a descriptive StateError if unavailable or this instance RaylibTempStructState.isDisposed.
inherited
-
getOpAndDispose(
) → StructPointer< Camera2DD> -
Returns op and immediately disposes this struct.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setDart(
Camera2DD o) → Camera2DD -
Copies the fields of
ointo this instance.override -
signature(
) → String -
Returns a human-readable representation of this struct.
override
-
structAllocateInto(
RaylibTemp< RaylibBase> temp, MemoryPointer<RType> p, String key) → void -
Allocates nested pointers into
tempunderkeyas needed.inherited -
structMarkDisposed(
) → void -
Marks this instance as disposed and clears op.
inherited
-
structOnOp(
void callback(StructPointer< Camera2DD> p)) → void -
Calls
callbackwith op if it is set, otherwise no-ops.inherited -
structReadFrom(
MemoryPointer< RType> p) → void -
override
-
structSetTag(
String newTag) → Camera2DD -
Sets RaylibTempStructState.tag to
newTag.inherited -
structSyncFromMemory(
) → void -
Syncs all fields from the memory. Requires op.
inherited
-
structSyncToMemory(
) → void -
Syncs all fields to the memory. Requires op.
inherited
-
structWriteInto(
MemoryPointer< RType> p) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
field_offset
→ StructValueField<
Vector2D, RStruct> -
Field descriptor for offset.
final
-
field_rotation
→ StructValueField<
double, RFloat> -
Field descriptor for rotation.
final
-
field_target
→ StructValueField<
Vector2D, RStruct> -
Field descriptor for target.
final
-
field_zoom
→ StructValueField<
double, RFloat> -
Field descriptor for zoom.
final
-
struct
→ StructType<
Camera2DD> -
Describes the raw memory layout, construction, and pointer representation
of this struct type.
final
-
structLayout
→ StructLayout<
Camera2DField> -
Raw memory layout of this object.
final