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