Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/you-win/spout-gd
Spout for Godot 4
https://github.com/you-win/spout-gd
creative-coding godot godotengine spout
Last synced: about 1 month ago
JSON representation
Spout for Godot 4
- Host: GitHub
- URL: https://github.com/you-win/spout-gd
- Owner: you-win
- License: mpl-2.0
- Created: 2022-02-03T09:03:02.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-07T02:01:52.000Z (about 1 year ago)
- Last Synced: 2024-08-02T06:19:28.748Z (4 months ago)
- Topics: creative-coding, godot, godotengine, spout
- Language: C++
- Homepage:
- Size: 44.9 KB
- Stars: 34
- Watchers: 5
- Forks: 5
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-godot - spout-gd - Share OpenGL textures across Windows applications through your GPU using [Spout](https://github.com/leadedge/Spout2). (Modules / 3D)
- awesome-godot-3 - spout-gd - Share OpenGL textures across Windows applications through your GPU using [Spout](https://github.com/leadedge/Spout2). (Modules / 3D)
- awesome-godot-3 - spout-gd - Share OpenGL textures across Windows applications through your GPU using [Spout](https://github.com/leadedge/Spout2). (Modules / 3D)
README
# Spout GD
[Godot](https://github.com/godotengine/godot) 4.1.1 bindings for [Spout](https://github.com/leadedge/Spout2).
The Godot 3 engine module is located on the `godot-3` branch.
## Status
The sender/receiver apis have been implemented but are mostly untested. Please open an issue
if something doesn't seem to work.## Building
Prerequisites:
* Windows (Spout only works on Windows)
* git
* bash
* scons
* a C++ compiler capable of [compiling Godot](https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_for_windows.html)
* cmakeClone the repository: `git clone --recurse-submodules https://github.com/you-win/spout-gd.git`
Run `build.sh` in a bash-compatible terminal. This will:
* Compile Spout2
* Compile the gdextension bindings
* Compile spout-gdOnce compilation is finished, the following files should be moved to your project's `addons/spout-gd` folder (create it manually if it does not exist):
* `spout_gd.gdextension`
* `Spout2/Binaries/x64/SpoutLibrary.dll`
* `out/pick_the_correct_file_here.dll`## Basic usage
```gdscript
var spout: Spout
var my_image: Image = load_from_somewhere_idk() # Provide your own image somehow
func _ready():
spout = Spout.new()
spout.send_image(my_image, image.get_width(), image.get_height())
```