home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / OpenGL-ftn / fglgetfragmentlight.z / fglgetfragmentlight
Encoding:
Text File  |  2002-10-03  |  16.3 KB  |  265 lines

  1.  
  2.  
  3.  
  4. ffffggggllllGGGGeeeettttFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhtttt((((3333GGGG))))        OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee        ffffggggllllGGGGeeeettttFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhtttt((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ffffggggllllGGGGeeeettttFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhttttffffvvvvSSSSGGGGIIIIXXXX,,,, ffffggggllllGGGGeeeettttFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhttttiiiivvvvSSSSGGGGIIIIXXXX - return fragment
  10.      light source parameter values
  11.  
  12.  
  13. FFFFOOOORRRRTTTTRRRRAAAANNNN SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  14.      SUBROUTINE ffffggggllllGGGGeeeettttFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhttttffffvvvvSSSSGGGGIIIIXXXX( INTEGER*4 _l_i_g_h_t,
  15.                                            INTEGER*4 _p_n_a_m_e,
  16.                                            CHARACTER*8 _p_a_r_a_m_s )
  17.      SUBROUTINE ffffggggllllGGGGeeeettttFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhttttiiiivvvvSSSSGGGGIIIIXXXX( INTEGER*4 _l_i_g_h_t,
  18.                                            INTEGER*4 _p_n_a_m_e,
  19.                                            CHARACTER*8 _p_a_r_a_m_s )
  20.  
  21.  
  22. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  23.      _l_i_g_h_t   Specifies a fragment light source.  The number of possible
  24.              fragment lights depends on the implementation.  They are
  25.              identified by symbolic names of the form GGGGLLLL____FFFFRRRRAAAAGGGGMMMMEEEENNNNTTTT____LLLLIIIIGGGGHHHHTTTTi____SSSSGGGGIIIIXXXX
  26.              where 0 _< i < GGGGLLLL____MMMMAAAAXXXX____FFFFRRRRAAAAGGGGMMMMEEEENNNNTTTT____LLLLIIIIGGGGHHHHTTTTSSSS____SSSSGGGGIIIIXXXX.
  27.  
  28.      _p_n_a_m_e   Specifies a fragment light source parameter for _l_i_g_h_t.  Accepted
  29.              symbolic names are GGGGLLLL____AAAAMMMMBBBBIIIIEEEENNNNTTTT, GGGGLLLL____DDDDIIIIFFFFFFFFUUUUSSSSEEEE, GGGGLLLL____SSSSPPPPEEEECCCCUUUULLLLAAAARRRR,
  30.              GGGGLLLL____PPPPOOOOSSSSIIIITTTTIIIIOOOONNNN, GGGGLLLL____SSSSPPPPOOOOTTTT____DDDDIIIIRRRREEEECCCCTTTTIIIIOOOONNNN, GGGGLLLL____SSSSPPPPOOOOTTTT____EEEEXXXXPPPPOOOONNNNEEEENNNNTTTT, GGGGLLLL____SSSSPPPPOOOOTTTT____CCCCUUUUTTTTOOOOFFFFFFFF,
  31.              GGGGLLLL____CCCCOOOONNNNSSSSTTTTAAAANNNNTTTT____AAAATTTTTTTTEEEENNNNUUUUAAAATTTTIIIIOOOONNNN, GGGGLLLL____LLLLIIIINNNNEEEEAAAARRRR____AAAATTTTTTTTEEEENNNNUUUUAAAATTTTIIIIOOOONNNN, and
  32.              GGGGLLLL____QQQQUUUUAAAADDDDRRRRAAAATTTTIIIICCCC____AAAATTTTTTTTEEEENNNNUUUUAAAATTTTIIIIOOOONNNN.
  33.  
  34.      _p_a_r_a_m_s  Returns the requested data.
  35.  
  36. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  37.      ffffggggllllGGGGeeeettttFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhtttt returns in _p_a_r_a_m_s the value or values of a fragment
  38.      light source parameter.  _l_i_g_h_t names the fragment light and is a symbolic
  39.      name of the form GGGGLLLL____FFFFRRRRAAAAGGGGMMMMEEEENNNNTTTT____LLLLIIIIGGGGHHHHTTTTi____SSSSGGGGIIIIXXXX for 0 _< i <
  40.      GGGGLLLL____MMMMAAAAXXXX____FFFFRRRRAAAAGGGGMMMMEEEENNNNTTTT____LLLLIIIIGGGGHHHHTTTTSSSS____SSSSGGGGIIIIXXXX, where GGGGLLLL____MMMMAAAAXXXX____FFFFRRRRAAAAGGGGMMMMEEEENNNNTTTT____LLLLIIIIGGGGHHHHTTTTSSSS____SSSSGGGGIIIIXXXX is an
  41.      implementation dependent constant.  _p_n_a_m_e specifies one of ten fragment
  42.      light source parameters, again by symbolic name.
  43.  
  44.      The following parameters are defined:
  45.  
  46.      GGGGLLLL____AAAAMMMMBBBBIIIIEEEENNNNTTTT          _p_a_r_a_m_s returns four integer or floating-point values
  47.                          representing the ambient intensity of the fragment
  48.                          light source.  Integer values, when requested, are
  49.                          linearly mapped from the internal floating-point
  50.                          representation such that 1.0 maps to the most
  51.                          positive representable integer value, and -1.0 maps
  52.                          to the most negative representable integer value.  If
  53.                          the internal value is outside the range [-1, 1], the
  54.                          corresponding integer return value is undefined. The
  55.                          initial value is (0, 0, 0, 1).
  56.  
  57.      GGGGLLLL____DDDDIIIIFFFFFFFFUUUUSSSSEEEE          _p_a_r_a_m_s returns four integer or floating-point values
  58.                          representing the diffuse intensity of the fragment
  59.                          light source.  Integer values, when requested, are
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ffffggggllllGGGGeeeettttFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhtttt((((3333GGGG))))        OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee        ffffggggllllGGGGeeeettttFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhtttt((((3333GGGG))))
  71.  
  72.  
  73.  
  74.                          linearly mapped from the internal floating-point
  75.                          representation such that 1.0 maps to the most
  76.                          positive representable integer value, and -1.0 maps
  77.                          to the most negative representable integer value.  If
  78.                          the internal value is outside the range [-1, 1], the
  79.                          corresponding integer return value is undefined. The
  80.                          initial value for GGGGLLLL____FFFFRRRRAAAAGGGGMMMMEEEENNNNTTTT____LLLLIIIIGGGGHHHHTTTT0000____SSSSGGGGIIIIXXXX is (1, 1,
  81.                          1, 1); for other fragment lights, the initial value
  82.                          is (0, 0, 0, 0).
  83.  
  84.      GGGGLLLL____SSSSPPPPEEEECCCCUUUULLLLAAAARRRR         _p_a_r_a_m_s returns four integer or floating-point values
  85.                          representing the specular intensity of the fragment
  86.                          light source.  Integer values, when requested, are
  87.                          linearly mapped from the internal floating-point
  88.                          representation such that 1.0 maps to the most
  89.                          positive representable integer value, and -1.0 maps
  90.                          to the most negative representable integer value.  If
  91.                          the internal value is outside the range [-1, 1], the
  92.                          corresponding integer return value is undefined. The
  93.                          initial value for GGGGLLLL____FFFFRRRRAAAAGGGGMMMMEEEENNNNTTTT____LLLLIIIIGGGGHHHHTTTT0000____SSSSGGGGIIIIXXXX is (1, 1,
  94.                          1, 1); for other fragment lights, the initial value
  95.                          is (0, 0, 0, 0).
  96.  
  97.      GGGGLLLL____PPPPOOOOSSSSIIIITTTTIIIIOOOONNNN         _p_a_r_a_m_s returns four integer or floating-point values
  98.                          representing the position of the fragment light
  99.                          source.  Integer values, when requested, are computed
  100.                          by rounding the internal floating-point values to the
  101.                          nearest integer value.  The returned values are those
  102.                          maintained in eye coordinates.  They will not be
  103.                          equal to the values specified using ffffggggllllFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhtttt,
  104.                          unless the modelview matrix was identity at the time
  105.                          ffffggggllllFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhtttt was called. The initial value is (0,
  106.                          0, 1, 0).
  107.  
  108.      GGGGLLLL____SSSSPPPPOOOOTTTT____DDDDIIIIRRRREEEECCCCTTTTIIIIOOOONNNN   _p_a_r_a_m_s returns three integer or floating-point values
  109.                          representing the direction of the fragment light
  110.                          source.  Integer values, when requested, are computed
  111.                          by rounding the internal floating-point values to the
  112.                          nearest integer value.  The returned values are those
  113.                          maintained in eye coordinates.  They will not be
  114.                          equal to the values specified using ffffggggllllFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhtttt,
  115.                          unless the modelview matrix was identity at the time
  116.                          ffffggggllllFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhtttt was called.  Although spot direction
  117.                          is normalized before being used in the fragment
  118.                          lighting equation, the returned values are the
  119.                          transformed versions of the specified values prior to
  120.                          normalization. The initial value is (0, 0, -1).
  121.  
  122.      GGGGLLLL____SSSSPPPPOOOOTTTT____EEEEXXXXPPPPOOOONNNNEEEENNNNTTTT    _p_a_r_a_m_s returns a single integer or floating-point
  123.                          value representing the spot exponent of the fragment
  124.                          light.  An integer value, when requested, is computed
  125.                          by rounding the internal floating-point
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. ffffggggllllGGGGeeeettttFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhtttt((((3333GGGG))))        OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee        ffffggggllllGGGGeeeettttFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhtttt((((3333GGGG))))
  137.  
  138.  
  139.  
  140.                          representation to the nearest integer. The initial
  141.                          value is 0.
  142.  
  143.      GGGGLLLL____SSSSPPPPOOOOTTTT____CCCCUUUUTTTTOOOOFFFFFFFF      _p_a_r_a_m_s returns a single integer or floating-point
  144.                          value representing the spot cutoff angle of the
  145.                          fragment light.  An integer value, when requested, is
  146.                          computed by rounding the internal floating-point
  147.                          representation to the nearest integer. The initial
  148.                          value is 180.
  149.  
  150.      GGGGLLLL____CCCCOOOONNNNSSSSTTTTAAAANNNNTTTT____AAAATTTTTTTTEEEENNNNUUUUAAAATTTTIIIIOOOONNNN
  151.                          _p_a_r_a_m_s returns a single integer or floating-point
  152.                          value representing the constant (not distance-
  153.                          related) attenuation of the fragment light.  An
  154.                          integer value, when requested, is computed by
  155.                          rounding the internal floating-point representation
  156.                          to the nearest integer. The initial value is 1.
  157.  
  158.      GGGGLLLL____LLLLIIIINNNNEEEEAAAARRRR____AAAATTTTTTTTEEEENNNNUUUUAAAATTTTIIIIOOOONNNN
  159.                          _p_a_r_a_m_s returns a single integer or floating-point
  160.                          value representing the linear attenuation of the
  161.                          fragment light.  An integer value, when requested, is
  162.                          computed by rounding the internal floating-point
  163.                          representation to the nearest integer. The initial
  164.                          value is 0.
  165.  
  166.      GGGGLLLL____QQQQUUUUAAAADDDDRRRRAAAATTTTIIIICCCC____AAAATTTTTTTTEEEENNNNUUUUAAAATTTTIIIIOOOONNNN
  167.                          _p_a_r_a_m_s returns a single integer or floating-point
  168.                          value representing the quadratic attenuation of the
  169.                          fragment light.  An integer value, when requested, is
  170.                          computed by rounding the internal floating-point
  171.                          representation to the nearest integer. The initial
  172.                          value is 0.
  173.  
  174. NNNNOOOOTTTTEEEESSSS
  175.      It is always the case that GGGGLLLL____FFFFRRRRAAAAGGGGMMMMEEEENNNNTTTT____LLLLIIIIGGGGHHHHTTTTi____SSSSGGGGIIIIXXXX =
  176.      GGGGLLLL____FFFFRRRRAAAAGGGGMMMMEEEENNNNTTTT____LLLLIIIIGGGGHHHHTTTT0000____SSSSGGGGIIIIXXXX + i.
  177.  
  178.      If an error is generated, no change is made to the contents of _p_a_r_a_m_s.
  179.  
  180. EEEERRRRRRRROOOORRRRSSSS
  181.      GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____EEEENNNNUUUUMMMM is generated if _l_i_g_h_t or _p_n_a_m_e is not an accepted value.
  182.  
  183.      GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ffffggggllllGGGGeeeettttFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhtttt is executed
  184.      between the execution of ffffggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of
  185.      ffffggggllllEEEEnnnndddd.
  186.  
  187.  
  188. MMMMAAAACCCCHHHHIIIINNNNEEEE DDDDEEEEPPPPEEEENNNNDDDDEEEENNNNCCCCIIIIEEEESSSS
  189.      The SSSSGGGGIIIIXXXX____ffffrrrraaaaggggmmmmeeeennnntttt____lllliiiigggghhhhttttiiiinnnngggg extension is supported only on Octane2 VPro
  190.      systems.
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. ffffggggllllGGGGeeeettttFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhtttt((((3333GGGG))))        OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee        ffffggggllllGGGGeeeettttFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhtttt((((3333GGGG))))
  203.  
  204.  
  205.  
  206. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  207.      ffffggggllllFFFFrrrraaaaggggmmmmeeeennnnttttLLLLiiiigggghhhhtttt
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.