VertexFormat

VertexBuffer Layout describes how data is organized in the VertexBuffer

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
val size: Int

The size of the VertexFormat in bytes

Functions

Link copied to clipboard
fun attribute(name: String, type: VertexElementType, arraySize: Int = 1)

Adds a custom attribute to the VertexFormat

Link copied to clipboard
fun color(dimensions: Int)

Appends a color attribute to the layout

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun normal(dimensions: Int)

Appends a normal component to the layout

Link copied to clipboard
fun padding(paddingInBytes: Int)

Insert padding in the layout

Link copied to clipboard
fun position(dimensions: Int)

Appends a position component to the layout

Link copied to clipboard
fun textureCoordinate(dimensions: Int = 2, index: Int = 0)
Link copied to clipboard
open override fun toString(): String