class CrShaderPlugin

Overview

============================================================================= CRShaderPlugin - Godot 4.8 EditorPlugin & Shader Editor Tab Integration

Can be compiled either standalone (addons/crshader/bin/game.dll) or directly into a host Lapis project (require "crshader/addon" in src/main.cr).

Defined in:

crshader/addon.cr

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Constructor Detail

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

Class Method Detail

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

def self._godot_register_node_class : Void #

def self.godot_class_name : String #

def self.godot_parent_class_name : String #

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 _enter_tree : Void #
Description copied from class Godot::Node

Lifecycle callback called when the node enters the tree hierarchy.


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

Lifecycle callback called when the node exits the tree hierarchy.


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 #
Description copied from class Godot::Object

Virtual method and property dispatch hooks overridden by class registration macros. Delta timestep is received with 64-bit precision (Float64).


def _godot_call_virtual_with_data(method_name : String, args : Pointer(Pointer(Void)), ret : Pointer(Void)) : Void #
Description copied from class Godot::Object

Dispatches generic virtual methods with raw arguments and return buffer.


def _godot_dispatch_crystal_0(method : String) : Bool #

def _godot_dispatch_crystal_1(method : String, a0 : Godot::Variant) : Bool #

def _godot_get_property(prop_name : String, ret_ptr : Pointer(Void)) : Void #
Description copied from class Godot::Object

Invoked by the GDExtension bridge when retrieving an exposed @export property.


def _godot_has_crystal_method?(method : String) : Bool #
Description copied from class Godot::Object

Internal hooks overridden by Lapis node/gdclass/resource classes to expose Crystal-defined methods.


def _godot_set_property(prop_name : String, val_ptr : Pointer(Void)) : Void #
Description copied from class Godot::Object

Invoked by the GDExtension bridge when setting an exposed @export property.


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

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


def apply_dictionary_properties!(dict : Godot::Dictionary) : Void #
Description copied from class Godot::Object

Populates @[Export] properties on this object from a Godot::Dictionary.


def apply_editor_highlighter_if_needed : Void #

def check_interval : Float64 #

def check_interval=(check_interval : Float64) #

def edit_object(object : Godot::Object | Nil) : Void #

Invoked by addons/crshader/plugin.gd (_edit) and GDExtension _edit virtual.


def effective_editor_plugin : Godot::Object #

def export_config_hash : UInt64 #
Description copied from class Godot::Object

Computes a deterministic 64-bit hash of all @[Export] properties on this object.


def handles_object(object : Godot::Object | Nil) : Bool #

Invoked by addons/crshader/plugin.gd (_handles) and GDExtension _handles virtual.


def make_shader_editor_visible(visible : Bool) : Void #

def save_open_shaders : Void #

def set_host_editor_plugin(plugin : Godot::Object | Nil) : Void #

def setup_editor_highlighter_hook : Void #

Connects to Godot ScriptEditor to dynamically highlight .crshader files if opened as text


def time_since_last_check : Float64 #

def time_since_last_check=(time_since_last_check : Float64) #