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

Method drawBuffer

core/src/processing/opengl/PJOGL.java:1969–1983  ·  view source on GitHub ↗
(int buf)

Source from the content-addressed store, hash-verified

1967 }
1968
1969 @Override
1970 public void drawBuffer(int buf) {
1971 if (gl2x != null) {
1972 gl2x.glDrawBuffer(buf);
1973 } else if (gl3 != null) {
1974 gl3.glDrawBuffer(buf);
1975 } else if (gl3es3 != null) {
1976 IntBuffer intBuffer = IntBuffer.allocate(1);
1977 intBuffer.put(buf);
1978 intBuffer.rewind();
1979 gl3es3.glDrawBuffers(1, intBuffer);
1980 } else {
1981 throw new RuntimeException(String.format(MISSING_GLFUNC_ERROR, "glDrawBuffer()"));
1982 }
1983 }
1984}

Callers 1

initFBOLayerGLMethod · 0.95

Calls 3

formatMethod · 0.65
allocateMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected