-
public class IndexBuffer.Builder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumIndexBuffer.Builder.IndexTypeType of the index buffer.
-
Constructor Summary
Constructors Constructor Description IndexBuffer.Builder()
-
Method Summary
Modifier and Type Method Description IndexBuffer.BuilderindexCount(@IntRange(from = 1) int indexCount)Size of the index buffer in elements. IndexBuffer.BuilderbufferType(@NonNull() IndexBuffer.Builder.IndexType indexType)Type of the index buffer, 16-bit or 32-bit. IndexBufferbuild(@NonNull() Engine engine)Creates and returns the IndexBufferobject.-
-
Method Detail
-
indexCount
@NonNull() IndexBuffer.Builder indexCount(@IntRange(from = 1) int indexCount)
Size of the index buffer in elements.
- Parameters:
indexCount- number of indices theIndexBuffercan hold
-
bufferType
@NonNull() IndexBuffer.Builder bufferType(@NonNull() IndexBuffer.Builder.IndexType indexType)
Type of the index buffer, 16-bit or 32-bit.
- Parameters:
indexType- type of indices stored in theIndexBuffer
-
-
-
-