getmap.3gl 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. '\" te
  2. '\"! tbl|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 getmap.gl
  9. .ds Xs 19970 5 getmap.gl
  10. .TH GLGETMAP 3G
  11. .SH NAME
  12. .B "glGetMapdv, glGetMapfv, glGetMapiv
  13. \- return evaluator parameters
  14. .SH C SPECIFICATION
  15. void \f3glGetMapdv\fP(
  16. GLenum \fItarget\fP,
  17. .nf
  18. .ta \w'\f3void \fPglGetMapdv( 'u
  19. GLenum \fIquery\fP,
  20. GLdouble \fI*v\fP )
  21. .fi
  22. void \f3glGetMapfv\fP(
  23. GLenum \fItarget\fP,
  24. .nf
  25. .ta \w'\f3void \fPglGetMapfv( 'u
  26. GLenum \fIquery\fP,
  27. GLfloat \fI*v\fP )
  28. .fi
  29. void \f3glGetMapiv\fP(
  30. GLenum \fItarget\fP,
  31. .nf
  32. .ta \w'\f3void \fPglGetMapiv( 'u
  33. GLenum \fIquery\fP,
  34. GLint \fI*v\fP )
  35. .fi
  36. .EQ
  37. delim $$
  38. .EN
  39. .SH PARAMETERS
  40. .TP \w'\f2target\fP\ \ 'u
  41. \f2target\fP
  42. Specifies the symbolic name of a map.
  43. Accepted values are
  44. \%\f3GL_MAP1_COLOR_4\fP,
  45. \%\f3GL_MAP1_INDEX\fP,
  46. \%\f3GL_MAP1_NORMAL\fP,
  47. \%\f3GL_MAP1_TEXTURE_COORD_1\fP,
  48. \%\f3GL_MAP1_TEXTURE_COORD_2\fP,
  49. \%\f3GL_MAP1_TEXTURE_COORD_3\fP,
  50. \%\f3GL_MAP1_TEXTURE_COORD_4\fP,
  51. \%\f3GL_MAP1_VERTEX_3\fP,
  52. \%\f3GL_MAP1_VERTEX_4\fP,
  53. \%\f3GL_MAP2_COLOR_4\fP,
  54. \%\f3GL_MAP2_INDEX\fP,
  55. \%\f3GL_MAP2_NORMAL\fP,
  56. \%\f3GL_MAP2_TEXTURE_COORD_1\fP,
  57. \%\f3GL_MAP2_TEXTURE_COORD_2\fP,
  58. \%\f3GL_MAP2_TEXTURE_COORD_3\fP,
  59. \%\f3GL_MAP2_TEXTURE_COORD_4\fP,
  60. \%\f3GL_MAP2_VERTEX_3\fP, and
  61. \%\f3GL_MAP2_VERTEX_4\fP.
  62. .TP
  63. \f2query\fP
  64. Specifies which parameter to return.
  65. Symbolic names
  66. \%\f3GL_COEFF\fP,
  67. \%\f3GL_ORDER\fP, and
  68. \%\f3GL_DOMAIN\fP are accepted.
  69. .TP
  70. \f2v\fP
  71. Returns the requested data.
  72. .SH DESCRIPTION
  73. \%\f3glMap1\fP and \%\f3glMap2\fP define evaluators.
  74. \%\f3glGetMap\fP returns evaluator parameters.
  75. \f2target\fP chooses a map,
  76. \f2query\fP selects a specific parameter,
  77. and \f2v\fP points to storage where the values will be returned.
  78. .P
  79. The acceptable values for the \f2target\fP parameter are described
  80. in the \%\f3glMap1\fP and \%\f3glMap2\fP reference pages.
  81. .P
  82. \f2query\fP can assume the following values:
  83. .TP 15
  84. \%\f3GL_COEFF\fP
  85. \f2v\fP returns the control points for the evaluator function.
  86. One-dimensional evaluators return $order$ control points,
  87. and two-dimensional evaluators return $uorder ~times~ vorder$ control points.
  88. Each control point consists of one, two, three, or four integer,
  89. single-precision floating-point,
  90. or double-precision floating-point values,
  91. depending on the type of the evaluator.
  92. The GL returns two-dimensional control points in row-major order,
  93. incrementing the $uorder$ index quickly
  94. and the $vorder$ index after each row.
  95. Integer values,
  96. when requested,
  97. are computed by rounding the internal floating-point values to the
  98. nearest integer values.
  99. .TP
  100. \%\f3GL_ORDER\fP
  101. \f2v\fP returns the order of the evaluator function.
  102. One-dimensional evaluators return a single value,
  103. $order$. The initial value is 1.
  104. Two-dimensional evaluators return two values,
  105. $uorder$ and $vorder$. The initial value is 1,1.
  106. .TP
  107. \%\f3GL_DOMAIN\fP
  108. \f2v\fP returns the linear $u$ and $v$ mapping parameters.
  109. One-dimensional evaluators return two values,
  110. $u1$ and $u2$,
  111. as specified by \%\f3glMap1\fP.
  112. Two-dimensional evaluators return four values
  113. ($u1$, $u2$, $v1$, and $v2$)
  114. as specified by \%\f3glMap2\fP.
  115. Integer values,
  116. when requested,
  117. are computed by rounding the internal floating-point values to the
  118. nearest integer values.
  119. .SH NOTES
  120. If an error is generated,
  121. no change is made to the contents of \f2v\fP.
  122. .SH ERRORS
  123. \%\f3GL_INVALID_ENUM\fP is generated if either \f2target\fP or \f2query\fP is not
  124. an accepted value.
  125. .P
  126. \%\f3GL_INVALID_OPERATION\fP is generated if \%\f3glGetMap\fP
  127. is executed between the execution of \%\f3glBegin\fP
  128. and the corresponding execution of \%\f3glEnd\fP.
  129. .SH SEE ALSO
  130. \%\f3glEvalCoord(3G)\fP,
  131. \%\f3glMap1(3G)\fP,
  132. \%\f3glMap2(3G)\fP