elect
10/28/2016, 8:50 AMvalues() available here?
enum class EGraphicsAPIConvention(@get:JvmName("i") val i: Int) {
API_DirectX(0), // Normalized Z goes from 0 at the viewer to 1 at the far clip plane
API_OpenGL(1) // Normalized Z goes from 1 at the viewer to -1 at the far clip plane
}
fun EGraphicsAPIConvention.of(i: Int) = values().first { it.i == i }