summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-04-24 19:29:28 +0200
committerHampusM <hampus@hampusmat.com>2024-04-24 19:29:28 +0200
commit711a34d0543575d69d298ade7cc980c5cf2d2e57 (patch)
tree1b57d62aeacd1e06c34c1a1cd2cdf641179d8f1c
parent77a061f73309c596e464ebb4fa787a23c62199e6 (diff)
feat(engine): add jpeg texture support
-rw-r--r--Cargo.lock7
-rw-r--r--engine/Cargo.toml2
2 files changed, 8 insertions, 1 deletions
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",
@@ -256,6 +257,12 @@ dependencies = [
]
[[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"
source = "registry+https://github.com/rust-lang/crates.io-index"
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"]