package kha.graphics4; import kha.graphics4.Usage; class IndexBuffer { var data: Array; var mySize: Int; public function new(indexCount: Int, usage: Usage, canRead: Bool = false) { mySize = indexCount; data = new Array(); data[indexCount - 1] = 0; } public function delete(): Void { data = null; } public function lock(?start: Int, ?count: Int): Array { return data; } public function unlock(?count: Int): Void {} public function set(): Void {} public function count(): Int { return mySize; } }