Geometry

open class Geometry

Geometry parameters for building and updating a Renderable

A renderable is made of several primitives. You can ever declare only 1 if you want each parts of your Geometry to have the same material or one for each triangle indices with a different material. We could declare n primitives (n per face) and give each of them a different material instance, setup with different parameters

See also

Inheritors

Types

Link copied to clipboard
open class Builder(val primitiveType: RenderableManager.PrimitiveType = PrimitiveType.TRIANGLES)
Link copied to clipboard
data class Vertex(val position: Position = Position(), val normal: Direction? = null, val uvCoordinate: UvCoordinate? = null, val color: Color? = null)

Used for constructing renderables dynamically

Properties

Link copied to clipboard
var boundingBox: Box
Link copied to clipboard
val indexBuffer: IndexBuffer
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val primitiveType: RenderableManager.PrimitiveType
Link copied to clipboard
val vertexBuffer: VertexBuffer
Link copied to clipboard

Functions

Link copied to clipboard
fun setPrimitivesIndices(engine: Engine, primitivesIndices: List<List<Int>>)
Link copied to clipboard
fun setVertices(engine: Engine, vertices: List<Geometry.Vertex>)
Link copied to clipboard
fun update(engine: Engine, vertices: List<Geometry.Vertex> = this.vertices, primitivesIndices: List<List<Int>> = this.primitivesIndices): Geometry