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

Method allocateDirectFloatBuffer

core/src/processing/opengl/PGL.java:2568–2572  ·  view source on GitHub ↗
(int size)

Source from the content-addressed store, hash-verified

2566
2567
2568 protected static FloatBuffer allocateDirectFloatBuffer(int size) {
2569 int bytes = PApplet.max(MIN_DIRECT_BUFFER_SIZE, size) * SIZEOF_FLOAT;
2570 return ByteBuffer.allocateDirect(bytes).order(ByteOrder.nativeOrder()).
2571 asFloatBuffer();
2572 }
2573
2574
2575 protected static FloatBuffer allocateFloatBuffer(int size) {

Callers 4

initTex2DShaderMethod · 0.95
drawTextureRectMethod · 0.95
allocateFloatBufferMethod · 0.95
updateFloatBufferMethod · 0.95

Calls 1

maxMethod · 0.95

Tested by

no test coverage detected