private void DeleteTexture(ImageHandler cachedImage) { TextureDeleted?.Invoke(this, cachedImage.Handle); GL.DeleteTexture(cachedImage.Handle); }
private static ClearBufferMask GetClearMask(ImageHandler CachedImage) { return((CachedImage.HasColor ? ClearBufferMask.ColorBufferBit : 0) | (CachedImage.HasDepth ? ClearBufferMask.DepthBufferBit : 0) | (CachedImage.HasStencil ? ClearBufferMask.StencilBufferBit : 0)); }
private static void DeleteTexture(ImageHandler CachedImage) { GL.DeleteTexture(CachedImage.Handle); }