Пример #1
0
 protected override unsafe void Release()
 {
     fixed(uint *addr = &_hdc)
     {
         Gl.DeleteRenderbuffers(1, addr);
     }
 }
Пример #2
0
        public void Dispose()
        {
            if (DepthID != 0 || BufferID != 0 || TextureID != null)
            {
                Gl.DeleteTextures(TextureID.Length, TextureID);
                Gl.DeleteFramebuffers(1, new uint[] { BufferID });
                Gl.DeleteRenderbuffers(1, new uint[] { DepthID });

                BufferID  = 0;
                DepthID   = 0;
                TextureID = null;
            }
        }
Пример #3
0
 /// <summary>
 /// Delete a RenderBuffer name.
 /// </summary>
 /// <param name="ctx">
 /// A <see cref="GraphicsContext"/> used for deleting this object name.
 /// </param>
 /// <param name="name">
 /// A <see cref="UInt32"/> that specify the object name to delete.
 /// </param>
 protected override void DeleteName(GraphicsContext ctx, uint name)
 {
     // Delete this render buffer
     Gl.DeleteRenderbuffers(name);
 }