private void CreateSubmeshes() { var res = Resource.Get(); Bounds = res.Bounds; RenderMesh = new NvmRenderer(this, Resource); //Bounds = res.Bounds; }
public void Dispose() { if (RenderMesh != null) { RenderMesh.Dispose(); RenderMesh = null; } }
public void OnResourceUnloaded(IResourceHandle handle) { if (Resource != null) { Created = false; UnregisterWithScene(); RenderMesh = null; } }
public void UnregisterAndRelease() { if (Registered) { UnregisterWithScene(); } if (Resource != null) { Resource.Release(); } Resource = null; Created = false; RenderMesh = null; }