assume the following code:
glTexImage2D(
GL_TEXTURE_2D,
0,
GL_RGBA,
rtd.width_,
rtd.height_,
GL_COLOR_ATTACHMENT0+i,
GL_DEPTH_COMPONENT,
GL_FLOAT,
nullptr);
It would be nice if there would be a feature that documents the call parameters like this:
glTexImage2D(
GL_TEXTURE_2D, // target
0, // level
GL_RGBA, // internalFormat
rtd.width_, // width
rtd.height_, // height
GL_COLOR_ATTACHMENT0+i, // border
GL_DEPTH_COMPONENT, // format
GL_FLOAT, // type
nullptr); // data
the comments are just taken from the declaration of the glTexImage2D function:
glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);