public class Points
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
Matrix4d |
mat
If the matrix is set the points will be transformed by this matrix first.
|
| Constructor and Description |
|---|
Points() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(java.lang.String name,
GeometryRawPoints.Type type)
Add an attribute of the given type.
|
void |
addFloatValues(java.lang.String name,
float[] floatVals)
Add an array of floating values.
|
void |
addIntValues(java.lang.String name,
int[] intVals)
Add an array of integer values.
|
void |
addPoint2fValues(java.lang.String name,
float[] pt2fVals)
Add an array of 2 floating point values.
|
void |
addPoint3dValues(java.lang.String name,
double[] pt3dVals)
Add an array of 3 double values
|
void |
addPoint3fValues(java.lang.String name,
float[] pt3fVals)
Add an array of 3 floating point values
|
void |
addPoint4fValues(java.lang.String name,
float[] pt4fVals)
Add an array of 4 floating point values
|
void |
setMatrix(Matrix4d inMat)
If the matrix is set the points will be transformed by this matrix first.
|
public Matrix4d mat
public void setMatrix(Matrix4d inMat)
public void addIntValues(java.lang.String name,
int[] intVals)
name - Name of attribute in shaderintVals - Integer valuespublic void addFloatValues(java.lang.String name,
float[] floatVals)
name - Name of attribute in shaderfloatVals - Floating point valuespublic void addPoint2fValues(java.lang.String name,
float[] pt2fVals)
name - Name of attribute in shaderpt2fVals - 2*numPts floating point valuespublic void addPoint3fValues(java.lang.String name,
float[] pt3fVals)
name - Name of attribute in shaderpt3fVals - 3*numPts floating point valuespublic void addPoint3dValues(java.lang.String name,
double[] pt3dVals)
name - Name of attribute in shaderpt3dVals - 3*numPts double valuespublic void addPoint4fValues(java.lang.String name,
float[] pt4fVals)
name - Name of attribute in shaderpt4fVals - 4*numPts floating valuespublic void addAttribute(java.lang.String name,
GeometryRawPoints.Type type)
name - Name of attribute in shadertype - Type of shader attribute