edgeflag.3gl 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 edgeflag.
  9. .ds Xs 46953 4 edgeflag.gl
  10. .TH GLEDGEFLAG 3G
  11. .SH NAME
  12. .B "glEdgeFlag, glEdgeFlagv
  13. \- flag edges as either boundary or nonboundary
  14. .SH C SPECIFICATION
  15. void \f3glEdgeFlag\fP(
  16. GLboolean \fIflag\fP )
  17. .nf
  18. .fi
  19. .SH PARAMETERS
  20. .TP \w'\f2flag\fP\ \ 'u
  21. \f2flag\fP
  22. Specifies the current edge flag value,
  23. either \%\f3GL_TRUE\fP or \%\f3GL_FALSE\fP. The initial value is \%\f3GL_TRUE\fP.
  24. .SH C SPECIFICATION
  25. void \f3glEdgeFlagv\fP(
  26. const GLboolean \fI*flag\fP )
  27. .nf
  28. .fi
  29. .SH PARAMETERS
  30. .TP
  31. \f2flag\fP
  32. Specifies a pointer to an array that contains a single boolean element,
  33. which replaces the current edge flag value.
  34. .SH DESCRIPTION
  35. Each vertex of a polygon,
  36. separate triangle,
  37. or separate quadrilateral specified between a \%\f3glBegin\fP/\%\f3glEnd\fP pair
  38. is marked as the start of either a boundary or nonboundary edge.
  39. If the current edge flag is true when the vertex is specified,
  40. the vertex is marked as the start of a boundary edge.
  41. Otherwise, the vertex is marked as the start of a nonboundary edge.
  42. \%\f3glEdgeFlag\fP sets the edge flag bit to \%\f3GL_TRUE\fP if \f2flag\fP is \%\f3GL_TRUE\fP,
  43. and to \%\f3GL_FALSE\fP otherwise.
  44. .P
  45. The vertices of connected triangles and connected quadrilaterals are always
  46. marked as boundary,
  47. regardless of the value of the edge flag.
  48. .P
  49. Boundary and nonboundary edge flags on vertices are significant only if
  50. \%\f3GL_POLYGON_MODE\fP is set to \%\f3GL_POINT\fP or \%\f3GL_LINE\fP.
  51. See \%\f3glPolygonMode\fP.
  52. .SH NOTES
  53. The current edge flag can be updated at any time.
  54. In particular,
  55. \%\f3glEdgeFlag\fP can be called between a call to \%\f3glBegin\fP and the corresponding
  56. call to \%\f3glEnd\fP.
  57. .SH ASSOCIATED GETS
  58. \%\f3glGet\fP with argument \%\f3GL_EDGE_FLAG\fP
  59. .SH SEE ALSO
  60. \%\f3glBegin(3G)\fP,
  61. \%\f3glEdgeFlagPointer(3G)\fP,
  62. \%\f3glPolygonMode(3G)\fP