org.openmali.vecmath2.pools
Class ColorfPool
java.lang.Object
org.openmali.pooling.ObjectPool<Colorf>
org.openmali.vecmath2.pools.ColorfPool
public class ColorfPool
- extends ObjectPool<Colorf>
An instance pool for Colorf instances.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorfPool
public ColorfPool(int initialSize)
newInstance
protected Colorf newInstance()
- Creates a new instance of a pooled object.
- Specified by:
newInstance in class ObjectPool<Colorf>
- Returns:
- the new object instance
alloc
public Colorf alloc()
-
- Overrides:
alloc in class ObjectPool<Colorf>
alloc
public Colorf alloc(float r,
float g,
float b)
alloc
public Colorf alloc(float r,
float g,
float b,
float a)