MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / drawArrays

Method drawArrays

src/main/java/net/optifine/render/VboRegion.java:250–264  ·  view source on GitHub ↗
(int drawMode, VboRange range)

Source from the content-addressed store, hash-verified

248 }
249
250 public void drawArrays(int drawMode, VboRange range)
251 {
252 if (this.drawMode != drawMode)
253 {
254 if (this.bufferIndexVertex.position() > 0)
255 {
256 throw new IllegalArgumentException("Mixed region draw modes: " + this.drawMode + " != " + drawMode);
257 }
258
259 this.drawMode = drawMode;
260 }
261
262 this.bufferIndexVertex.put(range.getPosition());
263 this.bufferCountVertex.put(range.getSize());
264 }
265
266 public void finishDraw(VboRenderList vboRenderList)
267 {

Callers

nothing calls this directly

Calls 4

positionMethod · 0.80
putMethod · 0.65
getPositionMethod · 0.65
getSizeMethod · 0.45

Tested by

no test coverage detected