MCPcopy Create free account
hub / github.com/benfry/processing4 / init

Method init

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

Source from the content-addressed store, hash-verified

63 }
64
65 protected void init(int usage) {
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, usage);
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