mirror of
https://gitlab.com/cc-ru/ocelot/ocelot-desktop.git
synced 2025-12-20 02:59:19 +01:00
13 lines
252 B
Scala
13 lines
252 B
Scala
package ocelot.desktop.graphics.buffer
|
|
|
|
import org.lwjgl.opengl.GL15
|
|
|
|
class IndexBuffer extends Buffer[Index] {
|
|
override val target: Int = GL15.GL_ELEMENT_ARRAY_BUFFER
|
|
|
|
def this(elements: Seq[Index]) = {
|
|
this()
|
|
createStatic(elements)
|
|
}
|
|
}
|