Plugin adding a GifExporter singleton enabling export of Image objects as a GIF file. Currently supports Windows and Linux, both 32 and 64 bit.
GifExporter
will now become available.First create a new instance of GifExport node. Then you can call these methods:
GifExporter.begin_export(filename: String, width: int, height: int, frame_delay: float, loop_count: int = 0, bit_depth: int = 8, dither: bool = false) -> bool
The function returns false if it's called on an unsupported platform, true otherwise.
GifExporter.write_frame(frame : Image, background_color : Color, frame_delay : float, bit_depth : int = 8, dither : bool = false)
GifExporter.end_export()
Init and compile godot_cpp submodule
scons platform=linux generate_bindings=yes target=release bits=32
scons platform=linux generate_bindings=yes target=release bits=64
scons platform=windows generate_bindings=yes target=release bits=32
scons platform=windows generate_bindings=yes target=release bits=64
Compile gifexporter
scons p=x11 bits=32
scons p=x11 bits=64
scons p=windows bits=32
scons p=windows bits=64
Strip all resulting binaries of symbols with strip
tool to greatly reduce size (godot-cpp seems to include a lot of symbols even in the release build)
cstding
and cstring
libraries to gifanim.h