readbuffer.3gl 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. '\" e
  2. '\"! eqn | mmdoc
  3. '\"macro stdmacro
  4. .ds Vn Version 1.2
  5. .ds Dt 24 September 1999
  6. .ds Re Release 1.2.1
  7. .ds Dp Jan 14 18:30
  8. .ds Dm 01 readbuffe
  9. .ds Xs 2004 4 readbuffer.gl
  10. .TH GLREADBUFFER 3G
  11. .SH NAME
  12. .B "glReadBuffer
  13. \- select a color buffer source for pixels
  14. .SH C SPECIFICATION
  15. void \f3glReadBuffer\fP(
  16. GLenum \fImode\fP )
  17. .nf
  18. .fi
  19. .SH PARAMETERS
  20. .TP \w'\f2mode\fP\ \ 'u
  21. \f2mode\fP
  22. Specifies a color buffer.
  23. Accepted values are
  24. \%\f3GL_FRONT_LEFT\fP,
  25. \%\f3GL_FRONT_RIGHT\fP,
  26. \%\f3GL_BACK_LEFT\fP,
  27. \%\f3GL_BACK_RIGHT\fP,
  28. \%\f3GL_FRONT\fP,
  29. \%\f3GL_BACK\fP,
  30. \%\f3GL_LEFT\fP,
  31. \%\f3GL_RIGHT\fP, and
  32. \%\f3GL_AUX\fP\f2i\fP,
  33. where \f2i\fP is between 0 and \%\f3GL_AUX_BUFFERS\fP \-1.
  34. .SH DESCRIPTION
  35. \%\f3glReadBuffer\fP specifies a color buffer as the source for subsequent
  36. \%\f3glReadPixels\fP, \%\f3glCopyTexImage1D\fP, \%\f3glCopyTexImage2D\fP,
  37. \%\f3glCopyTexSubImage1D\fP, \%\f3glCopyTexSubImage2D\fP,
  38. \%\f3glCopyTexSubImage3D\fP, and
  39. \%\f3glCopyPixels\fP commands.
  40. \f2mode\fP accepts one of twelve or more predefined values.
  41. (\%\f3GL_AUX0\fP through \%\f3GL_AUX3\fP are always defined.)
  42. In a fully configured system,
  43. \%\f3GL_FRONT\fP,
  44. \%\f3GL_LEFT\fP, and
  45. \%\f3GL_FRONT_LEFT\fP all name the front left buffer,
  46. \%\f3GL_FRONT_RIGHT\fP and
  47. \%\f3GL_RIGHT\fP name the front right buffer, and
  48. \%\f3GL_BACK_LEFT\fP and
  49. \%\f3GL_BACK\fP name the back left buffer.
  50. .P
  51. Nonstereo double-buffered configurations have only a front left and a
  52. back left buffer.
  53. Single-buffered configurations have a front left and a front right
  54. buffer if stereo, and only a front left buffer if nonstereo.
  55. It is an error to specify a nonexistent buffer to \%\f3glReadBuffer\fP.
  56. .P
  57. \f2mode\fP is initially \%\f3GL_FRONT\fP in single-buffered configurations,
  58. and \%\f3GL_BACK\fP in double-buffered configurations.
  59. .SH ERRORS
  60. \%\f3GL_INVALID_ENUM\fP is generated if \f2mode\fP is not one of the twelve
  61. (or more) accepted values.
  62. .P
  63. \%\f3GL_INVALID_OPERATION\fP is generated if \f2mode\fP specifies a buffer
  64. that does not exist.
  65. .P
  66. \%\f3GL_INVALID_OPERATION\fP is generated if \%\f3glReadBuffer\fP
  67. is executed between the execution of \%\f3glBegin\fP
  68. and the corresponding execution of \%\f3glEnd\fP.
  69. .SH ASSOCIATED GETS
  70. \%\f3glGet\fP with argument \%\f3GL_READ_BUFFER\fP
  71. .SH SEE ALSO
  72. \%\f3glCopyPixels(3G)\fP,
  73. \%\f3glCopyTexImage1D(3G)\fP,
  74. \%\f3glCopyTexImage2D(3G)\fP,
  75. \%\f3glCopyTexSubImage1D(3G)\fP,
  76. \%\f3glCopyTexSubImage2D(3G)\fP,
  77. \%\f3glCopyTexSubImage3D(3G)\fP,
  78. \%\f3glDrawBuffer(3G)\fP,
  79. \%\f3glReadPixels(3G)\fP