36 lines
899 B
GDScript
36 lines
899 B
GDScript
@tool
|
|
extends EditorPlugin
|
|
|
|
## VavCore AV1 Decoder Plugin for Godot 4.4.1
|
|
##
|
|
## Provides hardware-accelerated AV1 video decoding for Android devices
|
|
## Optimized for Godot 4 Vulkan and OpenGL ES rendering pipelines
|
|
|
|
const VavCorePlayer = preload("res://addons/vavcore/VavCorePlayer.gd")
|
|
|
|
func _enter_tree():
|
|
print("VavCore Plugin: Entering tree")
|
|
|
|
# Add custom types for Godot editor
|
|
add_custom_type(
|
|
"VavCorePlayer",
|
|
"Control",
|
|
VavCorePlayer,
|
|
preload("res://addons/vavcore/icons/vavcore_player.svg")
|
|
)
|
|
|
|
print("VavCore Plugin: Added VavCorePlayer custom type")
|
|
|
|
func _exit_tree():
|
|
print("VavCore Plugin: Exiting tree")
|
|
|
|
# Remove custom types
|
|
remove_custom_type("VavCorePlayer")
|
|
|
|
print("VavCore Plugin: Removed VavCorePlayer custom type")
|
|
|
|
func get_plugin_name():
|
|
return "VavCore AV1 Decoder"
|
|
|
|
func get_plugin_icon():
|
|
return preload("res://addons/vavcore/icons/vavcore_plugin.svg") |