MCPcopy Index your code
hub / github.com/processing/processing / init

Method init

core/src/processing/opengl/VertexBuffer.java:65–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 }
64
65 protected void init() {
66 int size = index ? ncoords * INIT_INDEX_BUFFER_SIZE * elementSize :
67 ncoords * INIT_VERTEX_BUFFER_SIZE * elementSize;
68 pgl.bindBuffer(target, glId);
69 pgl.bufferData(target, size, null, PGL.STATIC_DRAW);
70 }
71
72 protected void dispose() {
73 if (glres != null) {

Callers 1

VertexBufferMethod · 0.95

Calls 2

bindBufferMethod · 0.45
bufferDataMethod · 0.45

Tested by

no test coverage detected