docs/android/dokka/filament-android/com.google.android.filament/-renderable-manager/-builder/geometry.md
//filament-android/com.google.android.filament/RenderableManager/Builder/geometry
[main]
open fun geometry(index: Int, type: RenderableManager.PrimitiveType, vertices: VertexBuffer, indices: IndexBuffer, offset: Int, minIndex: Int, maxIndex: Int, count: Int): RenderableManager.Builder
Specifies the geometry data for a primitive. Filament primitives must have an associated VertexBuffer and IndexBuffer. Typically, each primitive is specified with a pair of daisy-chained calls: geometry() and material().
main
| index | zero-based index of the primitive, must be less than the count passed to Builder constructor |
| type | specifies the topology of the primitive (e.g., TRIANGLES) |
| vertices | specifies the vertex buffer, which in turn specifies a set of attributes |
| indices | specifies the index buffer (either u16 or u32) |
| offset | specifies where in the index buffer to start reading (expressed as a number of indices) |
| minIndex | specifies the minimum index contained in the index buffer |
| maxIndex | specifies the maximum index contained in the index buffer |
| count | number of indices to read (for triangles, this should be a multiple of 3) |
[main]
open fun geometry(index: Int, type: RenderableManager.PrimitiveType, vertices: VertexBuffer, indices: IndexBuffer, offset: Int, count: Int): RenderableManager.Builder
open fun geometry(index: Int, type: RenderableManager.PrimitiveType, vertices: VertexBuffer, indices: IndexBuffer): RenderableManager.Builder
For details, see the geometry primary overload.
[main]
open fun geometry(index: Int, type: RenderableManager.PrimitiveType, vertices: VertexBuffer, offset: Int, count: Int): RenderableManager.Builder
open fun geometry(index: Int, type: RenderableManager.PrimitiveType, vertices: VertexBuffer): RenderableManager.Builder
For details, see the geometry primary overload. (non-indexed version)