The OpenGL code written with C++ is like this:

```
static const GLenum buffs[] = { GL_COLOR_ATTACHMENT0 };
glDrawBuffers(1, buffs);

```

And I found the same API in JOGL:

```
gl.glDrawBuffers(int n, IntBuffer bufs)

```

I don't know how to port that C++ code above to JOGL with this method. Anyone knows? Thanks.