From 383d2da6dcddfbf49f2b28057fa97531648a9a07 Mon Sep 17 00:00:00 2001 From: jack Date: Wed, 27 Nov 2024 20:59:08 +0800 Subject: [PATCH] gif support (progressing) --- src/utils.zig | 3 +++ src/utils/easing.zig | 4 ++-- src/utils/gif.zig | 8 ++++++++ src/utils/tiled.zig | 2 ++ 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 src/utils/gif.zig diff --git a/src/utils.zig b/src/utils.zig index 641bb8e1..148654c7 100644 --- a/src/utils.zig +++ b/src/utils.zig @@ -19,6 +19,9 @@ pub const asynctool = @import("utils/async.zig"); /// Tile map support pub const tiled = @import("utils/tiled.zig"); +/// GIF support +pub const gif = @import("utils/gif.zig"); + /// Generic ring data structure pub const ring = @import("utils/ring.zig"); diff --git a/src/utils/easing.zig b/src/utils/easing.zig index 35a80954..a15da8f9 100644 --- a/src/utils/easing.zig +++ b/src/utils/easing.zig @@ -1,5 +1,5 @@ -/// Easing system -/// Checkout link: https://easings.net +/// Easing System +/// https://easings.net const std = @import("std"); const math = std.math; const assert = std.debug.assert; diff --git a/src/utils/gif.zig b/src/utils/gif.zig new file mode 100644 index 00000000..42dcc24f --- /dev/null +++ b/src/utils/gif.zig @@ -0,0 +1,8 @@ +/// Graphics Interchange Format +/// https://www.w3.org/Graphics/GIF/spec-gif89a.txt +const std = @import("std"); +const assert = std.debug.assert; +const jok = @import("../jok.zig"); +const j2d = jok.j2d; +const physfs = jok.physfs; +const log = std.log.scoped(.jok); diff --git a/src/utils/tiled.zig b/src/utils/tiled.zig index 433832ea..49ef2e43 100644 --- a/src/utils/tiled.zig +++ b/src/utils/tiled.zig @@ -1,3 +1,5 @@ +/// Tiled Editor +/// https://doc.mapeditor.org/en/stable/reference/tmx-map-format/ const std = @import("std"); const assert = std.debug.assert; const xml = @import("xml.zig");