SceneProjector
interface SceneProjector
Abstraction over the isometric projection pipeline.
Decouples the renderer from the concrete IsometricEngine, enabling tests to provide fake projectors that return canned PreparedScene data without running real 3D projection and depth sorting.
Inheritors
Properties
Functions
Link copied to clipboard
abstract fun findItemAt(preparedScene: PreparedScene, x: Double, y: Double, order: HitOrder = HitOrder.FRONT_TO_BACK, touchRadius: Double = 0.0): RenderCommand?
Find the frontmost item at a screen position (hit testing).
Link copied to clipboard
abstract fun projectScene(width: Int, height: Int, renderOptions: RenderOptions = RenderOptions.Default, lightDirection: Vector = DEFAULT_LIGHT_DIRECTION.normalize()): PreparedScene
Project the scene to 2D and produce sorted render commands.