We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9999b5d commit 048413bCopy full SHA for 048413b
src/main/kotlin/uno/buffer/buffer.kt
@@ -20,6 +20,8 @@ fun pointerBufferBig(capacity: IntArray): PointerBuffer = MemoryUtil.memCallocPo
20
21
/** for opengl */
22
inline fun <reified T : Enum<T>> intBufferBig() = intBufferBig(enumValues<T>().size)
23
+/** glGenTextures(textureName[Tex.Color]) */
24
+operator fun <E : Enum<E>, T> Array<T>.get(enum: Enum<E>): T = get(enum.ordinal)
25
26
// i.e: clear color buffer
27
fun FloatBuffer.put(vararg floats: Float): FloatBuffer {
0 commit comments