org.openmali.vecmath2.pools
Class TexCoord2fPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<TexCoord2f>
      extended by org.openmali.vecmath2.pools.TexCoord2fPool

public class TexCoord2fPool
extends ObjectPool<TexCoord2f>

An instance pool for TexCoord1f instances.


Constructor Summary
TexCoord2fPool(int initialSize)
           
 
Method Summary
 TexCoord2f alloc()
          
 TexCoord2f alloc(float s, float t)
           
protected  TexCoord2f newInstance()
          Creates a new instance of a pooled object.
 
Methods inherited from class org.openmali.pooling.ObjectPool
free, getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TexCoord2fPool

public TexCoord2fPool(int initialSize)
Method Detail

newInstance

protected TexCoord2f newInstance()
Creates a new instance of a pooled object.

Specified by:
newInstance in class ObjectPool<TexCoord2f>
Returns:
the new object instance

alloc

public TexCoord2f alloc()

Overrides:
alloc in class ObjectPool<TexCoord2f>

alloc

public TexCoord2f alloc(float s,
                        float t)