Skip to content

Commit

Permalink
Remove obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
Helco committed Jan 17, 2024
1 parent e93f750 commit 7401546
Show file tree
Hide file tree
Showing 18 changed files with 4 additions and 528 deletions.
6 changes: 3 additions & 3 deletions zzre/game/systems/ActorRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public ActorRenderer(ITagContainer diContainer) :
camera = diContainer.GetTag<Camera>();
textureLoader = diContainer.GetTag<IAssetLoader<Texture>>();
addSubscription = World.SubscribeEntityComponentAdded<components.ActorPart>(HandleAddedComponent);
removeSubscription = World.SubscribeEntityComponentRemoved<ModelSkinnedMaterial[]>(HandleRemovedComponent);
removeSubscription = World.SubscribeEntityComponentRemoved<ModelMaterial[]>(HandleRemovedComponent);
}

public override void Dispose()
Expand Down Expand Up @@ -102,11 +102,11 @@ private void HandleAddedComponent(in DefaultEcs.Entity entity, in components.Act
entity.Set(zzreMaterials);
}

private void HandleRemovedComponent(in DefaultEcs.Entity entity, in ModelSkinnedMaterial[] materials)
private void HandleRemovedComponent(in DefaultEcs.Entity entity, in ModelMaterial[] materials)
{
foreach (var material in materials)
{
material.MainTexture.Texture?.Dispose();
material.Texture.Texture?.Dispose();
material.Sampler.Sampler.Dispose();
material.Dispose();
}
Expand Down
134 changes: 0 additions & 134 deletions zzre/materials/ModelInstancedMaterial.cs

This file was deleted.

49 changes: 0 additions & 49 deletions zzre/materials/ModelSkinnedMaterial.cs

This file was deleted.

10 changes: 0 additions & 10 deletions zzre/shaders/DebugSkinAll.frag

This file was deleted.

39 changes: 0 additions & 39 deletions zzre/shaders/DebugSkinAll.vert

This file was deleted.

10 changes: 0 additions & 10 deletions zzre/shaders/DebugSkinSingle.frag

This file was deleted.

30 changes: 0 additions & 30 deletions zzre/shaders/DebugSkinSingle.vert

This file was deleted.

32 changes: 0 additions & 32 deletions zzre/shaders/ModelInstanced.frag

This file was deleted.

35 changes: 0 additions & 35 deletions zzre/shaders/ModelInstanced.vert

This file was deleted.

Loading

0 comments on commit 7401546

Please sign in to comment.