VertexAttribute
data class VertexAttribute(val usage: VertexAttrUsage, val numComponents: Int, val alias: String, val type: VertexAttrType = if (usage == VertexAttrUsage.COLOR_PACKED) VertexAttrType.UNSIGNED_BYTE else VertexAttrType.FLOAT, val normalized: Boolean = usage == VertexAttrUsage.COLOR_PACKED, val unit: Int = 0, val asInt: Boolean = false)
Author
Colton Daily
Constructors
Link copied to clipboard
fun VertexAttribute(usage: VertexAttrUsage, numComponents: Int, alias: String, type: VertexAttrType = if (usage == VertexAttrUsage.COLOR_PACKED) VertexAttrType.UNSIGNED_BYTE else VertexAttrType.FLOAT, normalized: Boolean = usage == VertexAttrUsage.COLOR_PACKED, unit: Int = 0, asInt: Boolean = false)