summaryrefslogtreecommitdiff
path: root/src/common/client/assets.rs
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-02-16 22:55:43 -0500
committerLLLL Colonq <llll@colonq>2025-02-16 22:55:43 -0500
commit4d0a8140130ebd0f46744b86eeb2a708657a942e (patch)
tree6b1a11e07173c769d0f3522c2f6088409b69332d /src/common/client/assets.rs
parent33d69b282e082acce3c5d36cc08cd99a7ccf738d (diff)
Switch to workspace
Diffstat (limited to 'src/common/client/assets.rs')
-rw-r--r--src/common/client/assets.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/common/client/assets.rs b/src/common/client/assets.rs
deleted file mode 100644
index 742f9ea..0000000
--- a/src/common/client/assets.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-use teleia::*;
-
-pub struct Assets {
- pub font: font::Bitmap,
- pub shader_flat: shader::Shader,
- pub mesh_square: mesh::Mesh,
- pub texture_test: texture::Texture,
-}
-
-impl Assets {
- pub fn new(ctx: &context::Context) -> Self {
- Self {
- font: font::Bitmap::new(ctx),
- shader_flat: shader::Shader::new(
- ctx,
- include_str!("assets/shaders/flat/vert.glsl"),
- include_str!("assets/shaders/flat/frag.glsl"),
- ),
- mesh_square: mesh::Mesh::from_obj(ctx, include_bytes!("assets/meshes/square.obj")),
- texture_test: texture::Texture::new(ctx, include_bytes!("assets/textures/test.png")),
- }
- }
-}