From 8f098091744be77e8a03050b284b203c4bff72d2 Mon Sep 17 00:00:00 2001 From: Rendo Date: Wed, 18 Feb 2026 16:24:17 +0500 Subject: [PATCH] Initial commit --- .gitignore | 0 LICENSE | 10 ++++++++ README.md | 3 +++ grap-gui/.editorconfig | 4 ++++ grap-gui/.gitattributes | 2 ++ grap-gui/.gitignore | 3 +++ grap-gui/bind.gdextension | 14 ++++++++++++ grap-gui/bind.gdextension.uid | 1 + grap-gui/icon.svg | 1 + grap-gui/icon.svg.import | 43 +++++++++++++++++++++++++++++++++++ grap-gui/project.godot | 25 ++++++++++++++++++++ grap-rs | 1 + 12 files changed, 107 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 grap-gui/.editorconfig create mode 100644 grap-gui/.gitattributes create mode 100644 grap-gui/.gitignore create mode 100644 grap-gui/bind.gdextension create mode 100644 grap-gui/bind.gdextension.uid create mode 100644 grap-gui/icon.svg create mode 100644 grap-gui/icon.svg.import create mode 100644 grap-gui/project.godot create mode 160000 grap-rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..fffc368 --- /dev/null +++ b/LICENSE @@ -0,0 +1,10 @@ +The MIT License (MIT) + +Copyright © 2026 Veselov Fedor + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + diff --git a/README.md b/README.md new file mode 100644 index 0000000..383e781 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +A tool to edit raster images made with [Godot Engine](https://github.com/godotengine/godot) + +Very much inspired by [Pixel Composer](https://github.com/Ttanasart-pt/Pixel-Composer)<3 diff --git a/grap-gui/.editorconfig b/grap-gui/.editorconfig new file mode 100644 index 0000000..f28239b --- /dev/null +++ b/grap-gui/.editorconfig @@ -0,0 +1,4 @@ +root = true + +[*] +charset = utf-8 diff --git a/grap-gui/.gitattributes b/grap-gui/.gitattributes new file mode 100644 index 0000000..8ad74f7 --- /dev/null +++ b/grap-gui/.gitattributes @@ -0,0 +1,2 @@ +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf diff --git a/grap-gui/.gitignore b/grap-gui/.gitignore new file mode 100644 index 0000000..0af181c --- /dev/null +++ b/grap-gui/.gitignore @@ -0,0 +1,3 @@ +# Godot 4+ specific ignores +.godot/ +/android/ diff --git a/grap-gui/bind.gdextension b/grap-gui/bind.gdextension new file mode 100644 index 0000000..b320a3e --- /dev/null +++ b/grap-gui/bind.gdextension @@ -0,0 +1,14 @@ +[configuration] +entry_symbol = "gdext_ruust_init" +compatibility_minimum = 4.6 +reloadable = true + +[libraries] +linux.debug.x86_64 = "res://../grap-rs/target/debug/libgrap-rs.so" +linux.release.x86_64 = "res://../grap-rs/target/release/libgrap-rs.so" +windows.debug.x86_64 = "res://../grap-rs/target/debug/grap-rs.dll" +windows.release.x86_64 = "res://../grap-rs/target/release/grap-rs.dll" +macos.debug = "res://../grap-rs/target/debug/libgrap-rs.dylib" +macos.release = "res://../grap-rs/target/release/libgrap-rs.dylib" +macos.debug.arm64 = "res://../grap-rs/target/debug/libgrap-rs.dylib" +macos.release.arm64 = "res://../grap-rs/target/release/libgrap-rs.dylib" diff --git a/grap-gui/bind.gdextension.uid b/grap-gui/bind.gdextension.uid new file mode 100644 index 0000000..a08367f --- /dev/null +++ b/grap-gui/bind.gdextension.uid @@ -0,0 +1 @@ +uid://8rsdqgvmaqqs diff --git a/grap-gui/icon.svg b/grap-gui/icon.svg new file mode 100644 index 0000000..c6bbb7d --- /dev/null +++ b/grap-gui/icon.svg @@ -0,0 +1 @@ + diff --git a/grap-gui/icon.svg.import b/grap-gui/icon.svg.import new file mode 100644 index 0000000..64ce4c3 --- /dev/null +++ b/grap-gui/icon.svg.import @@ -0,0 +1,43 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ukehtcvehfre" +path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.svg" +dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/grap-gui/project.godot b/grap-gui/project.godot new file mode 100644 index 0000000..d13fe4d --- /dev/null +++ b/grap-gui/project.godot @@ -0,0 +1,25 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=5 + +[application] + +config/name="grap-gui" +config/features=PackedStringArray("4.6", "GL Compatibility") +config/icon="res://icon.svg" + +[physics] + +3d/physics_engine="Jolt Physics" + +[rendering] + +rendering_device/driver.windows="d3d12" +renderer/rendering_method="gl_compatibility" +renderer/rendering_method.mobile="gl_compatibility" diff --git a/grap-rs b/grap-rs new file mode 160000 index 0000000..2e7c256 --- /dev/null +++ b/grap-rs @@ -0,0 +1 @@ +Subproject commit 2e7c256a9b00c8fe641baf8be569470dccd53b93