Exemple #1
0
        private void CreateSubmeshes()
        {
            var res = Resource.Get();

            Bounds     = res.Bounds;
            RenderMesh = new NvmRenderer(this, Resource);
            //Bounds = res.Bounds;
        }
Exemple #2
0
 public void Dispose()
 {
     if (RenderMesh != null)
     {
         RenderMesh.Dispose();
         RenderMesh = null;
     }
 }
Exemple #3
0
 public void OnResourceUnloaded(IResourceHandle handle)
 {
     if (Resource != null)
     {
         Created = false;
         UnregisterWithScene();
         RenderMesh = null;
     }
 }
Exemple #4
0
 public void UnregisterAndRelease()
 {
     if (Registered)
     {
         UnregisterWithScene();
     }
     if (Resource != null)
     {
         Resource.Release();
     }
     Resource   = null;
     Created    = false;
     RenderMesh = null;
 }