java.lang.Object
de.pirckheimer_gymnasium.jbox2d.testbed.pooling.ColorPool<C>

public abstract class ColorPool<C> extends Object
Sun just HAD to make Color immutable, so now I have to make another stupid pool and now I'm all hot and bothered. Also, this pool isn't thread safe!
Author:
Daniel Murphy
  • Constructor Details

    • ColorPool

      public ColorPool()
  • Method Details

    • getColor

      public C getColor(float r, float g, float b, float alpha)
    • newColor

      protected abstract C newColor(float r, float g, float b, float alpha)
    • getColor

      public C getColor(float r, float g, float b)