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

Method drawBuffer

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

Source from the content-addressed store, hash-verified

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

Callers 1

initFBOLayerGLMethod · 0.95

Calls 3

formatMethod · 0.65
allocateMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected