More asset handles

This commit is contained in:
Simon Lübeß
2023-03-13 20:35:36 +01:00
parent c22d122921
commit c3fb9bbd5d
11 changed files with 97 additions and 75 deletions
+6 -3
View File
@@ -1,12 +1,15 @@
using System;
using GlitchyEngine.World;
using GlitchyEngine.Content;
namespace GlitchyEngine.Renderer
{
public struct MeshComponent : IDisposableComponent
public struct MeshComponent// : IDisposableComponent
{
public AssetHandle<GeometryBinding> Mesh {get; set mut;}
/*
private GeometryBinding _mesh;
public GeometryBinding Mesh
public AssetHandle<GeometryBinding> Mesh
{
[Inline]
get => _mesh;
@@ -22,6 +25,6 @@ namespace GlitchyEngine.Renderer
public void Dispose() mut
{
ReleaseRefAndNullify!(_mesh);
}
}*/
}
}