Opentk/Source/Utilities/IPoolable.cs
the_fiddler c0549b11fa Fixed TextExtents behavior when returning either cached or uncached instances.
Reduced memory pressure by adding object pooling to TextExtents.
2008-11-26 16:34:50 +00:00

17 lines
336 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace OpenTK
{
interface IPoolable : IDisposable
{
void OnAcquire();
void OnRelease();
}
interface IPoolable<T> : IPoolable where T : IPoolable<T>, new()
{
ObjectPool<T> Owner { get; set; }
}
}