class Diorite::DebugShape2D

Overview

Base inspector-configurable 2D debug shape node rendered on Godot's canvas.

Supports live-previewing in the Godot Editor (@[Tool] mode) and updates wireframe geometry dynamically using Lapis::Core::FrameArena scratchpad buffers whenever properties are modified in the Inspector or script. Concrete subclasses (like DebugRect2D or DebugCircle2D) implement build_shape and build_shape_arena.

Direct Known Subclasses

Defined in:

diorite/nodes/debug_shape_2d.cr

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(&block : self -> ) : self #

Class Method Detail

def self._godot_auto_register_class : Void #

Base inspector-configurable 2D debug shape node rendered on Godot's canvas.

Supports live-previewing in the Godot Editor (@[Tool] mode) and updates wireframe geometry dynamically using Lapis::Core::FrameArena scratchpad buffers whenever properties are modified in the Inspector or script. Concrete subclasses (like DebugRect2D or DebugCircle2D) implement build_shape and build_shape_arena.


def self._godot_has_virtual_method(method_name : String) : Bool #

Base inspector-configurable 2D debug shape node rendered on Godot's canvas.

Supports live-previewing in the Godot Editor (@[Tool] mode) and updates wireframe geometry dynamically using Lapis::Core::FrameArena scratchpad buffers whenever properties are modified in the Inspector or script. Concrete subclasses (like DebugRect2D or DebugCircle2D) implement build_shape and build_shape_arena.


def self.godot_class_name : String #

Base inspector-configurable 2D debug shape node rendered on Godot's canvas.

Supports live-previewing in the Godot Editor (@[Tool] mode) and updates wireframe geometry dynamically using Lapis::Core::FrameArena scratchpad buffers whenever properties are modified in the Inspector or script. Concrete subclasses (like DebugRect2D or DebugCircle2D) implement build_shape and build_shape_arena.


def self.godot_parent_class_name : String #

Base inspector-configurable 2D debug shape node rendered on Godot's canvas.

Supports live-previewing in the Godot Editor (@[Tool] mode) and updates wireframe geometry dynamically using Lapis::Core::FrameArena scratchpad buffers whenever properties are modified in the Inspector or script. Concrete subclasses (like DebugRect2D or DebugCircle2D) implement build_shape and build_shape_arena.


Macro Detail

macro autoload(*args, **kwargs) #

DSL directives for in-body autoload configuration


macro autoload_node(*args, **kwargs) #

macro build(**kwargs, &block) #

macro create(**kwargs, &block) #

Instance Method Detail

def _godot_call_tool_button(button_name : String) : Void #
Description copied from class Godot::Object

Dispatches inspector tool button clicks on this object.


def _godot_call_virtual(method_name : String, delta : Float64) : Void #

Base inspector-configurable 2D debug shape node rendered on Godot's canvas.

Supports live-previewing in the Godot Editor (@[Tool] mode) and updates wireframe geometry dynamically using Lapis::Core::FrameArena scratchpad buffers whenever properties are modified in the Inspector or script. Concrete subclasses (like DebugRect2D or DebugCircle2D) implement build_shape and build_shape_arena.


def _godot_get_property(prop_name : String, ret_ptr : Pointer(Void)) : Void #

Base inspector-configurable 2D debug shape node rendered on Godot's canvas.

Supports live-previewing in the Godot Editor (@[Tool] mode) and updates wireframe geometry dynamically using Lapis::Core::FrameArena scratchpad buffers whenever properties are modified in the Inspector or script. Concrete subclasses (like DebugRect2D or DebugCircle2D) implement build_shape and build_shape_arena.


def _godot_set_property(prop_name : String, val_ptr : Pointer(Void)) : Void #

Base inspector-configurable 2D debug shape node rendered on Godot's canvas.

Supports live-previewing in the Godot Editor (@[Tool] mode) and updates wireframe geometry dynamically using Lapis::Core::FrameArena scratchpad buffers whenever properties are modified in the Inspector or script. Concrete subclasses (like DebugRect2D or DebugCircle2D) implement build_shape and build_shape_arena.


def _process(delta : Float64) : Void #
Description copied from class Godot::Node

Per-frame process callback receiving delta timestep in seconds (Float64).


def _ready : Void #
Description copied from class Godot::Node

Lifecycle callback called when the node enters the active scene tree.


def color : Godot::Color #

Line and outline color.


def color=(color : Godot::Color) #

Line and outline color.


def draw_on_top : Bool #

When true, elevates z_index to 4096 so the shape renders on top of canvas elements.


def draw_on_top=(draw_on_top : Bool) #

When true, elevates z_index to 4096 so the shape renders on top of canvas elements.