PointClickEngine::Graphics::Layers::Layer
Inherits Reference < Object
Base class for rendering layers
Layers provide z-ordered rendering and can have independent properties like parallax scrolling, opacity, and effects.
Example
background = Layer.new("background", -100)
background.parallax_factor = 0.5 # Moves at half camera speed
foreground = Layer.new("foreground", 100)
foreground.opacity = 0.8
Constructors
new(name : String, z_order : Int32 = 0)
SourceInstance methods
apply_transform(camera : PointClickEngine::Graphics::Camera, renderer : PointClickEngine::Graphics::Renderer)
Apply layer transformations for rendering
opacity
Sourceopacity=(opacity : Float32)
Sourceparallax_factor
Sourceparallax_factor=(parallax_factor : Float32)
Sourcevisible
Sourcevisible=(visible : Bool)
Sourcez_order
Sourcez_order=(z_order : Int32)
Source