class CrShaderPlugin
- CrShaderPlugin
- Godot::EditorPlugin
- Godot::Node
- Godot::Object
- Reference
- Object
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.crConstructors
Class Method Summary
- ._godot_has_virtual_method(method_name : String) : Bool
- ._godot_register_node_class : Void
- .godot_class_name : String
- .godot_parent_class_name : String
Macro Summary
-
autoload(*args, **kwargs)
DSL directives for in-body autoload configuration
- autoload_node(*args, **kwargs)
- build(**kwargs, &block)
- create(**kwargs, &block)
Instance Method Summary
-
#_enter_tree : Void
Lifecycle callback called when the node enters the tree hierarchy.
-
#_exit_tree : Void
Lifecycle callback called when the node exits the tree hierarchy.
-
#_godot_call_tool_button(button_name : String) : Void
Dispatches inspector tool button clicks on this object.
-
#_godot_call_virtual(method_name : String, delta : Float64) : Void
Virtual method and property dispatch hooks overridden by class registration macros.
-
#_godot_call_virtual_with_data(method_name : String, args : Pointer(Pointer(Void)), ret : Pointer(Void)) : Void
Dispatches generic virtual methods with raw arguments and return buffer.
- #_godot_dispatch_crystal_0(method : String) : Bool
- #_godot_dispatch_crystal_1(method : String, a0 : Godot::Variant) : Bool
-
#_godot_get_property(prop_name : String, ret_ptr : Pointer(Void)) : Void
Invoked by the GDExtension bridge when retrieving an exposed
@exportproperty. -
#_godot_has_crystal_method?(method : String) : Bool
Internal hooks overridden by Lapis
node/gdclass/resourceclasses to expose Crystal-defined methods. -
#_godot_set_property(prop_name : String, val_ptr : Pointer(Void)) : Void
Invoked by the GDExtension bridge when setting an exposed
@exportproperty. -
#_process(delta : Float64) : Void
Per-frame process callback receiving delta timestep in seconds (
Float64). -
#apply_dictionary_properties!(dict : Godot::Dictionary) : Void
Populates
@[Export]properties on this object from aGodot::Dictionary. - #apply_editor_highlighter_if_needed : Void
- #check_interval : Float64
- #check_interval=(check_interval : Float64)
-
#edit_object(object : Godot::Object | Nil) : Void
Invoked by
addons/crshader/plugin.gd(_edit) and GDExtension_editvirtual. - #effective_editor_plugin : Godot::Object
-
#export_config_hash : UInt64
Computes a deterministic 64-bit hash of all
@[Export]properties on this object. -
#handles_object(object : Godot::Object | Nil) : Bool
Invoked by
addons/crshader/plugin.gd(_handles) and GDExtension_handlesvirtual. - #make_shader_editor_visible(visible : Bool) : Void
- #save_open_shaders : Void
- #set_host_editor_plugin(plugin : Godot::Object | Nil) : Void
-
#setup_editor_highlighter_hook : Void
Connects to Godot ScriptEditor to dynamically highlight .crshader files if opened as text
- #time_since_last_check : Float64
- #time_since_last_check=(time_since_last_check : Float64)
Constructor Detail
Class Method Detail
Macro Detail
Instance Method Detail
Lifecycle callback called when the node enters the tree hierarchy.
Lifecycle callback called when the node exits the tree hierarchy.
Dispatches inspector tool button clicks on this object.
Virtual method and property dispatch hooks overridden by class registration macros.
Delta timestep is received with 64-bit precision (Float64).
Dispatches generic virtual methods with raw arguments and return buffer.
Invoked by the GDExtension bridge when retrieving an exposed @export property.
Internal hooks overridden by Lapis node/gdclass/resource classes to expose Crystal-defined methods.
Invoked by the GDExtension bridge when setting an exposed @export property.
Per-frame process callback receiving delta timestep in seconds (Float64).
Populates @[Export] properties on this object from a Godot::Dictionary.
Invoked by addons/crshader/plugin.gd (_edit) and GDExtension _edit virtual.
Computes a deterministic 64-bit hash of all @[Export] properties on this object.
Invoked by addons/crshader/plugin.gd (_handles) and GDExtension _handles virtual.
Connects to Godot ScriptEditor to dynamically highlight .crshader files if opened as text