Skip to content

Commit e973a78

Browse files
committed
feat: initially 2d is now working...
1 parent aba0f61 commit e973a78

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

Diff for: .cargo/config.toml

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55

66
[target.x86_64-unknown-linux-gnu]
77
linker = "clang"
8-
rustflags = ["-Clink-arg=-fuse-ld=lld", "-Zshare-generics=y"]
8+
rustflags = [
9+
"-Clink-arg=-fuse-ld=lld",
10+
"-Zshare-generics=yes",
11+
"-Clink-arg=--ld-path=/usr/local/bin/mold",
12+
]
913

1014
# NOTE: you must install [Mach-O LLD Port](https://lld.llvm.org/MachO/index.html) on mac. you can easily do this by installing llvm which includes lld with the "brew" package manager:
1115
# `brew install llvm`
@@ -24,3 +28,6 @@ rustflags = ["-Zshare-generics=n"]
2428
# In most cases the gains are negligible, but if you are on macos and have slow compile times you should see significant gains.
2529
#[profile.dev]
2630
#debug = 1
31+
#
32+
[build]
33+
rustc-wrapper = "/home/jer/.cargo/bin/sccache"

Diff for: .direnv/flake-profile

-1
This file was deleted.

Diff for: .direnv/flake-profile-1-link

-1
This file was deleted.

Diff for: .gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -189,5 +189,4 @@ cython_debug/
189189
#.idea/
190190

191191
.direnv/*
192-
.cargo
193-
.direnv
192+
.cargo/config.toml

Diff for: src/plugin.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@ impl Plugin for ShadPlayPlugin {
5555
// DEBUG:
5656
// #[cfg(debug_assertions)]
5757
// drag_n_drop::debug_tex_keys,
58-
//
5958
file_drag_and_drop_listener,
60-
//TODO:
61-
// add_and_set_dropped_file.run_if(on_event::<UserAddedTexture>()),
62-
// override_current_shader.run_if(on_event::<DragNDropShader>()),
59+
add_and_set_dropped_file.run_if(on_event::<UserAddedTexture>),
60+
override_current_shader.run_if(on_event::<DragNDropShader>),
6361
cam_switch_system,
6462
quit,
6563
switch_level,
@@ -76,7 +74,6 @@ impl Plugin for ShadPlayPlugin {
7674
size_quad
7775
.run_if(in_state(AppState::TwoD))
7876
.run_if(on_event::<WindowResized>),
79-
//TODO:
8077
swap_2d_tex_from_idx.run_if(on_event::<KeyboardInput>),
8178
),
8279
);

0 commit comments

Comments
 (0)