public void Destroy(DestroyContext ctx) { /* * And remember, since we created the child node, we need to clean up after ourselves! */ ctx.Set.Destroy(Child); }
public void Destroy(DestroyContext ctx) { ClearNodes(ctx.Set); ctx.Set.Destroy(m_DeltaTimeNode); ctx.Set.Destroy(m_TimeNode); ctx.Set.Destroy(m_FalseInputNode); ctx.Set.Destroy(m_TrueInputNode); ctx.Set.Destroy(m_OutputNode); }
public void Destroy(DestroyContext ctx) { ctx.Set.Destroy(m_TimeNode); ctx.Set.Destroy(m_DeltaTimeNode); ctx.Set.Destroy(m_WeightNode); ctx.Set.Destroy(m_Clip0); ctx.Set.Destroy(m_Clip1); ctx.Set.Destroy(m_Clip2); ctx.Set.Destroy(m_Clip3); ctx.Set.Destroy(m_Clip4); ctx.Set.Destroy(m_NMixerNode); ctx.Set.Destroy(m_ComputeWeightNode); }
public AngleBackend(bool isCpuBackend = false) { IsCpuBackend = isCpuBackend; var ptrsize = Marshal.SizeOf(typeof(IntPtr)); if (ptrsize == 8) { EGL = LoadLibrary("x64/libEGL.dll"); GL = LoadLibrary("x64/libGLESv2.dll"); } else { EGL = LoadLibrary("x86/libEGL.dll"); GL = LoadLibrary("x86/libGLESv2.dll"); } EglChooseConfig = (ChooseConfig)EGL_GetProcAddress("eglChooseConfig", typeof(ChooseConfig)); EglGetPlatformDisplayExt = (GetPlatformDisplayExt)EGL_GetProcAddress("eglGetPlatformDisplayEXT", typeof(GetPlatformDisplayExt)); EglInitialize = (Initialize)EGL_GetProcAddress("eglInitialize", typeof(Initialize)); EglGetConfigs = (GetConfigs)EGL_GetProcAddress("eglGetConfigs", typeof(GetConfigs)); EglCreateContext = (CreateContext)EGL_GetProcAddress("eglCreateContext", typeof(CreateContext)); EglCreatePbufferSurface = (CreatePbufferSurface)EGL_GetProcAddress("eglCreatePbufferSurface", typeof(CreatePbufferSurface)); EglCreateWindowSurface = (CreateWindowSurface)EGL_GetProcAddress("eglCreateWindowSurface", typeof(CreateWindowSurface)); EglDestroyContext = (DestroyContext)EGL_GetProcAddress("eglDestroyContext", typeof(DestroyContext)); EglMakeCurrent = (MakeCurrent)EGL_GetProcAddress("eglMakeCurrent", typeof(MakeCurrent)); EglSwapBuffers = (SwapBuffers)EGL_GetProcAddress("eglSwapBuffers", typeof(SwapBuffers)); EglSurfaceAttrib = (SurfaceAttrib)EGL_GetProcAddress("eglSurfaceAttrib", typeof(SurfaceAttrib)); EglWaitClient = (WaitClient)EGL_GetProcAddress("eglWaitClient", typeof(WaitClient)); EglWaitGL = (WaitGL)EGL_GetProcAddress("eglWaitGL", typeof(WaitGL)); EglDestroySurface = (DestroySurface)EGL_GetProcAddress("eglDestroySurface", typeof(DestroySurface)); EglSwapInterval = (SwapInterval)EGL_GetProcAddress("eglSwapInterval", typeof(SwapInterval)); EglTerminate = (Terminate)EGL_GetProcAddress("eglTerminate", typeof(Terminate)); EglSurfaceAttrib = (SurfaceAttrib)EGL_GetProcAddress("eglSurfaceAttrib", typeof(SurfaceAttrib)); EglWaitNative = (WaitNative)EGL_GetProcAddress("eglWaitNative", typeof(WaitNative)); EglGetProcAddress = (EGLGetProcAddress)EGL_GetProcAddress("eglGetProcAddress", typeof(EGLGetProcAddress)); GlGetIntegerv = (GetIntegerv)GL_GetProcAddress("glGetIntegerv", typeof(GetIntegerv)); GlBindRenderbuffer = (BindRenderbuffer)GL_GetProcAddress("glBindRenderbuffer", typeof(BindRenderbuffer)); GlFramebufferRenderbuffer = (FramebufferRenderbuffer)GL_GetProcAddress("glFramebufferRenderbuffer", typeof(FramebufferRenderbuffer)); GlBindFramebuffer = (BindFramebuffer)GL_GetProcAddress("glBindFramebuffer", typeof(BindFramebuffer)); GlGenRenderbuffers = (GenRenderbuffers)GL_GetProcAddress("glGenRenderbuffers", typeof(GenRenderbuffers)); GlGenFramebuffers = (GenFramebuffers)GL_GetProcAddress("glGenFramebuffers", typeof(GenFramebuffers)); GlRenderbufferStorageMultisampleANGLE = (RenderbufferStorageMultisampleANGLE)GL_GetProcAddress("glRenderbufferStorageMultisampleANGLE", typeof(RenderbufferStorageMultisampleANGLE)); GlBlitFramebufferANGLE = (BlitFramebufferANGLE)GL_GetProcAddress("glBlitFramebufferANGLE", typeof(BlitFramebufferANGLE)); }
public void Destroy(DestroyContext ctx) => ctx.Set.ReleaseGraphValue(m_Output);
/* * Similarly, we can do custom destruction for a node by implementing IDestroy.Destroy(). */ public void Destroy(DestroyContext ctx) { Debug.Log($"Destroyed node number: {NodeNumber}"); }