Package com.ardor3d.scenegraph
Class FloatBufferDataUtil
java.lang.Object
com.ardor3d.scenegraph.FloatBufferDataUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FloatBufferData
ensureSize
(FloatBufferData tc, int vertexCount, int coordsPerVertex) Check an incoming TexCoords object for null and correct size.static FloatBufferData
makeNew
(float[] coords) static FloatBufferData
makeNew
(ReadOnlyVector2[] coords) static FloatBufferData
makeNew
(ReadOnlyVector3[] coords)
-
Constructor Details
-
FloatBufferDataUtil
public FloatBufferDataUtil()
-
-
Method Details
-
makeNew
-
makeNew
-
makeNew
-
ensureSize
Check an incoming TexCoords object for null and correct size.- Parameters:
tc
- the buffer datavertexCount
- the vertex countcoordsPerVertex
- 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.
-