MCPcopy Index your code
hub / github.com/benfry/processing4 / allocateDirectFloatBuffer

Method allocateDirectFloatBuffer

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

Source from the content-addressed store, hash-verified

2624
2625
2626 protected static FloatBuffer allocateDirectFloatBuffer(int size) {
2627 int bytes = PApplet.max(MIN_DIRECT_BUFFER_SIZE, size) * SIZEOF_FLOAT;
2628 return ByteBuffer.allocateDirect(bytes).order(ByteOrder.nativeOrder()).asFloatBuffer();
2629 }
2630
2631
2632 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