loadsamplingmatrices.3gl 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. '\" e
  2. '\"! eqn | mmdoc
  3. '\"macro stdmacro
  4. .ds Vn Version 1.2
  5. .ds Dt 6 March 1997
  6. .ds Re Release 1.2.0
  7. .ds Dp May 02 11:53
  8. .ds Dm :37 loadsamp
  9. .ds Xs 25465 4 loadsamplingmatrices.gl
  10. .TH GLULOADSAMPLINGMATRICES 3G
  11. .SH NAME
  12. .B "gluLoadSamplingMatrices
  13. \- load NURBS sampling and culling matrices
  14. .SH C SPECIFICATION
  15. void \f3gluLoadSamplingMatrices\fP(
  16. GLUnurbs* \fInurb\fP,
  17. .nf
  18. .ta \w'\f3void \fPgluLoadSamplingMatrices( 'u
  19. const GLfloat \fI*model\fP,
  20. const GLfloat \fI*perspective\fP,
  21. const GLint \fI*view\fP )
  22. .fi
  23. .EQ
  24. delim $$
  25. .EN
  26. .SH PARAMETERS
  27. .TP \w'\fIperspective\fP\ \ 'u
  28. \f2nurb\fP
  29. Specifies the NURBS object (created with \%\f3gluNewNurbsRenderer\fP).
  30. .TP
  31. \f2model\fP
  32. Specifies a modelview matrix (as from a \f3glGetFloatv\fP call).
  33. .TP
  34. \f2perspective\fP
  35. Specifies a projection matrix (as from a \f3glGetFloatv\fP call).
  36. .TP
  37. \f2view\fP
  38. Specifies a viewport (as from a \f3glGetIntegerv\fP call).
  39. .SH DESCRIPTION
  40. \%\f3gluLoadSamplingMatrices\fP uses \f2model\fP, \f2perspective\fP, and \f2view\fP to recompute the sampling and culling
  41. matrices stored in \f2nurb\fP.
  42. The sampling matrix determines how finely a NURBS curve or surface
  43. must be tessellated to satisfy the sampling tolerance (as determined by the
  44. \%\f3GLU_SAMPLING_TOLERANCE\fP property).
  45. The culling matrix is used in deciding if a NURBS curve or surface
  46. should be culled before
  47. rendering (when the \%\f3GLU_CULLING\fP property is turned on).
  48. .P
  49. \%\f3gluLoadSamplingMatrices\fP is necessary only if the \%\f3GLU_AUTO_LOAD_MATRIX\fP property is turned
  50. off (see \%\f3gluNurbsProperty\fP).
  51. Although it can be convenient to leave the \%\f3GLU_AUTO_LOAD_MATRIX\fP
  52. property turned on, there can be a performance penalty for doing so.
  53. (A round trip to the GL server is needed to fetch the current values
  54. of the modelview matrix, projection matrix, and viewport.)
  55. .SH SEE ALSO
  56. \%\f3gluGetNurbsProperty(3G)\fP,
  57. \%\f3gluNewNurbsRenderer(3G)\fP,
  58. \%\f3gluNurbsProperty(3G)\fP