org.openmali.vecmath2.pools
Class ColorPool
java.lang.Object
org.openmali.vecmath2.pools.ObjectPool<Colorf>
org.openmali.vecmath2.pools.ColorPool
public class ColorPool
- extends ObjectPool<Colorf>
An instance pool for Colorf instances.
- Author:
- Marvin Froehlich (aka Qudus)
|
Constructor Summary |
ColorPool(int initialSize)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorPool
public ColorPool(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)