def deleteBuffer(self): """ Deletes this buffer, restoring the previous state """ MemoryMonitor.unregisterRenderTarget(self._name, self) self._internalBuffer.clearRenderTextures() self._engine.removeWindow(self._internalBuffer) self._active = False BufferViewerGUI.unregisterBuffer(self._name) if self._createOverlayQuad: self._quad.removeNode()
def deleteBuffer(self): """ Deletes this buffer, restoring the previous state """ MemoryMonitor.unregisterRenderTarget(self._name, self) self._internalBuffer.clearRenderTextures() self._engine.removeWindow(self._internalBuffer) self._active = False BufferViewerGUI.unregisterBuffer(self._name) if self._createOverlayQuad: self._quad.removeNode() for target in RenderTargetType.All: if self.hasTarget(target): tex = self.getTarget(target)
def _unregisterBuffer(self): """ Internal method to unregister the buffer from the buffer viewer """ BufferViewerGUI.unregisterBuffer(self._name)
def _unregisterBuffer(self): """ Internal method to unregister the buffer from the buffer viewer """ BufferViewerGUI.unregisterBuffer(self._name)