mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-26 16:55:39 +00:00
43 lines
822 B
C#
43 lines
822 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Text;
|
|||
|
|
|||
|
namespace OpenTK.Graphics.Text
|
|||
|
{
|
|||
|
class PoolableTextExtents : TextExtents, IPoolable<PoolableTextExtents>
|
|||
|
{
|
|||
|
ObjectPool<PoolableTextExtents> owner;
|
|||
|
|
|||
|
#region Constructors
|
|||
|
|
|||
|
public PoolableTextExtents()
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region IPoolable<PoolableTextExtents> Members
|
|||
|
|
|||
|
ObjectPool<PoolableTextExtents> IPoolable<PoolableTextExtents>.Owner
|
|||
|
{
|
|||
|
get { return owner; }
|
|||
|
set { owner = value; }
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region IPoolable Members
|
|||
|
|
|||
|
void IPoolable.OnAcquire()
|
|||
|
{
|
|||
|
Clear();
|
|||
|
}
|
|||
|
|
|||
|
void IPoolable.OnRelease()
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|
|||
|
}
|