Class FloatBufferDataUtil

java.lang.Object
com.ardor3d.scenegraph.FloatBufferDataUtil

public class FloatBufferDataUtil extends Object
  • Constructor Details

    • FloatBufferDataUtil

      public FloatBufferDataUtil()
  • Method Details

    • makeNew

      public static FloatBufferData makeNew(ReadOnlyVector2[] coords)
    • makeNew

      public static FloatBufferData makeNew(ReadOnlyVector3[] coords)
    • makeNew

      public static FloatBufferData makeNew(float[] coords)
    • ensureSize

      public static FloatBufferData ensureSize(FloatBufferData tc, int vertexCount, int coordsPerVertex)
      Check an incoming TexCoords object for null and correct size.
      Parameters:
      tc - the buffer data
      vertexCount - the vertex count
      coordsPerVertex - the number of coordinates per vertex
      Returns:
      tc if it is not null and the right size, otherwise it will be a new TexCoords object.