示例#1
0
 public NewMesh(Scene.RenderScene scene, Resource.ResourceHandle <Resource.FlverResource> res)
 {
     RenderScene = scene;
     Resource    = res;
     Resource.Acquire();
     res.AddResourceEventListener(this);
 }
示例#2
0
 public NewMesh(NewMesh mesh)
 {
     RenderScene = mesh.RenderScene;
     DrawFilter  = mesh.DrawFilter;
     Resource    = mesh.Resource;
     Resource.Acquire();
     Resource.AddResourceEventListener(this);
 }
示例#3
0
 public void RegisterWithScene(RenderScene scene)
 {
     if (RenderScene == scene && Registered)
     {
         return;
     }
     else if (RenderScene != scene && Registered)
     {
         UnregisterWithScene();
         RenderScene = scene;
     }
     if (!Resource.IsLoaded)
     {
         return;
     }
     Registered = true;
 }
示例#4
0
 public void RegisterWithScene(RenderScene scene)
 {
     if (RenderScene == scene && Registered)
     {
         return;
     }
     else if (RenderScene != scene && Registered)
     {
         UnregisterWithScene();
         RenderScene = scene;
     }
     if (RenderMesh == null)
     {
         return;
     }
     Registered = true;
 }