From 711a34d0543575d69d298ade7cc980c5cf2d2e57 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 24 Apr 2024 19:29:28 +0200 Subject: feat(engine): add jpeg texture support --- Cargo.lock | 7 +++++++ engine/Cargo.toml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 11c4bb6..c5367c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -240,6 +240,7 @@ dependencies = [ "bytemuck", "byteorder", "color_quant", + "jpeg-decoder", "num-rational", "num-traits", "png", @@ -255,6 +256,12 @@ dependencies = [ "hashbrown", ] +[[package]] +name = "jpeg-decoder" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc0000e42512c92e31c2252315bda326620a4e034105e900c98ec492fa077b3e" + [[package]] name = "khronos_api" version = "3.1.0" diff --git a/engine/Cargo.toml b/engine/Cargo.toml index 13426b5..3691996 100644 --- a/engine/Cargo.toml +++ b/engine/Cargo.toml @@ -19,4 +19,4 @@ ecs = { path = "../ecs" } [dependencies.image] version = "0.24.7" default-features = false -features = ["png"] +features = ["png", "jpeg"] -- cgit v1.2.3-18-g5258