Package icyllis.arc3d.core
Class Vertices
java.lang.Object
icyllis.arc3d.core.Vertices
An immutable set of vertex data that can be used with
Canvas.drawVertices(icyllis.arc3d.core.Vertices, icyllis.arc3d.core.Blender, icyllis.arc3d.core.Paint)
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
byte[]
int
short[]
float[]
float[]
int
int
boolean
boolean
boolean
static Vertices
makeCopy
(int vertexMode, int vertexCount, float[] positions, int positionOffset, float[] texCoords, int texCoordOffset, int[] colors, int colorOffset) static Vertices
makeCopy
(int vertexMode, int vertexCount, float[] positions, int positionOffset, float[] texCoords, int texCoordOffset, int[] colors, int colorOffset, short[] indices, int indexOffset, int indexCount) static Vertices
makeCopy
(int vertexMode, FloatBuffer positions, FloatBuffer texCoords, IntBuffer colors, ShortBuffer indices)
-
Field Details
-
kPoints_VertexMode
public static final int kPoints_VertexMode- See Also:
-
kLines_VertexMode
public static final int kLines_VertexMode- See Also:
-
kLineStrip_VertexMode
public static final int kLineStrip_VertexMode- See Also:
-
kTriangles_VertexMode
public static final int kTriangles_VertexMode- See Also:
-
kTriangleStrip_VertexMode
public static final int kTriangleStrip_VertexMode- See Also:
-
kVertexModeCount
public static final int kVertexModeCount- See Also:
-
-
Method Details
-
makeCopy
@Nonnull public static Vertices makeCopy(int vertexMode, int vertexCount, @Nonnull float[] positions, int positionOffset, @Nullable float[] texCoords, int texCoordOffset, @Nullable int[] colors, int colorOffset) -
makeCopy
@Nonnull public static Vertices makeCopy(int vertexMode, int vertexCount, @Nonnull float[] positions, int positionOffset, @Nullable float[] texCoords, int texCoordOffset, @Nullable int[] colors, int colorOffset, @Nullable short[] indices, int indexOffset, int indexCount) -
makeCopy
@Nonnull public static Vertices makeCopy(int vertexMode, @Nonnull FloatBuffer positions, @Nullable FloatBuffer texCoords, @Nullable IntBuffer colors, @Nullable ShortBuffer indices) -
getBounds
-
getBounds
-
getVertexMode
@Internal public int getVertexMode() -
hasColors
@Internal public boolean hasColors() -
hasTexCoords
@Internal public boolean hasTexCoords() -
hasIndices
@Internal public boolean hasIndices() -
getVertexCount
@Internal public int getVertexCount() -
getIndexCount
@Internal public int getIndexCount() -
getPositions
@Internal public float[] getPositions() -
getTexCoords
@Internal public float[] getTexCoords() -
getColors
@Internal public byte[] getColors() -
getIndices
@Internal public short[] getIndices()
-