renderer: unify image.zig

The code in metal/image.zig and opengl/image.zig was virtually identical
save for the texture options, so I've moved that to the GraphicsAPI and
unified them in to renderer/image.zig
This commit is contained in:
Qwerasd
2025-06-23 13:12:17 -06:00
parent 7eb3e813dd
commit df8dc33ab6
6 changed files with 96 additions and 465 deletions

View File

@@ -3,6 +3,7 @@ const std = @import("std");
pub const png = @import("png.zig");
pub const jpeg = @import("jpeg.zig");
pub const swizzle = @import("swizzle.zig");
pub const Error = @import("error.zig").Error;
pub const ImageData = struct {
width: u32,