KmlGlVertexLayout

class KmlGlVertexLayout(val program: KmlGlProgram)

Constructors

Link copied to clipboard
constructor(program: KmlGlProgram)

Types

Link copied to clipboard
data class Element(val index: Int, val size: Int, val type: Int, val pointer: Int, val normalized: Boolean)

Properties

Link copied to clipboard
val gl: KmlGl
Link copied to clipboard

Functions

Link copied to clipboard
fun byte(name: String, count: Int, normalized: Boolean = false): KmlGlVertexLayout
Link copied to clipboard
fun disable()
Link copied to clipboard
inline fun KmlGlVertexLayout.drawArrays(vertices: KmlGlBuffer, mode: Int, first: Int, count: Int, uniforms: KmlGl.() -> Unit = {})
Link copied to clipboard
inline fun KmlGlVertexLayout.drawElements(vertices: KmlGlBuffer, indices: KmlGlBuffer, mode: Int, count: Int, type: Int = gl.UNSIGNED_SHORT, offset: Int = 0, uniforms: KmlGl.() -> Unit = {})
Link copied to clipboard
fun enable()
Link copied to clipboard
fun float(name: String, count: Int, normalized: Boolean = false): KmlGlVertexLayout
Link copied to clipboard
fun int(name: String, count: Int, normalized: Boolean = false): KmlGlVertexLayout
Link copied to clipboard
fun short(name: String, count: Int, normalized: Boolean = false): KmlGlVertexLayout
Link copied to clipboard
fun ubyte(name: String, count: Int, normalized: Boolean = false): KmlGlVertexLayout
Link copied to clipboard
inline fun use(callback: () -> Unit)
Link copied to clipboard
fun ushort(name: String, count: Int, normalized: Boolean = false): KmlGlVertexLayout