class

PointClickEngine::Graphics::Effects::SceneEffects::TransitionEffect

Inherits PointClickEngine::Graphics::Effects::SceneEffects::BaseSceneEffect < PointClickEngine::Graphics::Effects::Effect < Reference < Object

Scene transition effect

Constructors

new(transition_type : TransitionType, duration : Float32 = 1.0_f32, reverse : Bool = false)
Source

Instance methods

apply(context : Effects::EffectContext)

Apply transition effect (delegates to apply_to_layer)

Source
apply_to_layer(context : Effects::EffectContext, layer : Layers::Layer)

Apply effect to a specific layer

Source
cleanup

Cleanup shader and render texture

Source
clone
Source
draw_overlay(renderer : PointClickEngine::Graphics::Renderer, width : Int32 = PointClickEngine::Graphics::Display.reference_width, height : Int32 = PointClickEngine::Graphics::Display.reference_height)

Draw overlay for transition effects

Source
midpoint_callback
Source
on_midpoint

Set callback for midpoint (scene change)

Source
render_with_shader(display : PointClickEngine::Graphics::Display | Nil = nil, &block : -> Nil)

Render scene with transition shader

Source
reverse
Source
transition_type
Source
update(dt : Float32)

Update effect state

Source