(EnumWorldBlockLayer layer)
| 25 | private final int vertexBytes; |
| 26 | |
| 27 | public VboRegion(EnumWorldBlockLayer layer) |
| 28 | { |
| 29 | this.bufferIndexVertex = Config.createDirectIntBuffer(this.capacity); |
| 30 | this.bufferCountVertex = Config.createDirectIntBuffer(this.capacity); |
| 31 | this.drawMode = 7; |
| 32 | this.vertexBytes = DefaultVertexFormats.BLOCK.getNextOffset(); |
| 33 | this.layer = layer; |
| 34 | this.bindBuffer(); |
| 35 | long i = this.toBytes(this.capacity); |
| 36 | OpenGlHelper.glBufferData(OpenGlHelper.GL_ARRAY_BUFFER, i, OpenGlHelper.GL_STATIC_DRAW); |
| 37 | this.unbindBuffer(); |
| 38 | } |
| 39 | |
| 40 | public void bufferData(ByteBuffer data, VboRange range) |
| 41 | { |
nothing calls this directly
no test coverage detected