home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / g_man / cat3 / OpenGL / glmatrixmode.z / glmatrixmode
Encoding:
Text File  |  2001-04-17  |  5.6 KB  |  133 lines

  1.  
  2.  
  3.  
  4. ggggllllMMMMaaaattttrrrriiiixxxxMMMMooooddddeeee((((3333GGGG))))               OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee               ggggllllMMMMaaaattttrrrriiiixxxxMMMMooooddddeeee((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ggggllllMMMMaaaattttrrrriiiixxxxMMMMooooddddeeee - specify which matrix is the current matrix
  10.  
  11.  
  12. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  13.      void ggggllllMMMMaaaattttrrrriiiixxxxMMMMooooddddeeee( GLenum _m_o_d_e )
  14.  
  15.  
  16. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  17.      _m_o_d_e  Specifies which matrix stack is the target for subsequent matrix
  18.            operations.  Three values are accepted:  GGGGLLLL____MMMMOOOODDDDEEEELLLLVVVVIIIIEEEEWWWW,
  19.            GGGGLLLL____PPPPRRRROOOOJJJJEEEECCCCTTTTIIIIOOOONNNN, and GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE.  The initial value is GGGGLLLL____MMMMOOOODDDDEEEELLLLVVVVIIIIEEEEWWWW.
  20.  
  21.            Additionally, if the GGGGLLLL____AAAARRRRBBBB____iiiimmmmaaaaggggiiiinnnngggg extension is supported,
  22.            GGGGLLLL____CCCCOOOOLLLLOOOORRRR is also accepted.
  23.  
  24. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  25.      ggggllllMMMMaaaattttrrrriiiixxxxMMMMooooddddeeee sets the current matrix mode.  _m_o_d_e can assume one of four
  26.      values:
  27.  
  28.      GGGGLLLL____MMMMOOOODDDDEEEELLLLVVVVIIIIEEEEWWWW             Applies subsequent matrix operations to the
  29.                               modelview matrix stack.
  30.  
  31.      GGGGLLLL____PPPPRRRROOOOJJJJEEEECCCCTTTTIIIIOOOONNNN            Applies subsequent matrix operations to the
  32.                               projection matrix stack.
  33.  
  34.      GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE               Applies subsequent matrix operations to the
  35.                               texture matrix stack.
  36.  
  37.      GGGGLLLL____CCCCOOOOLLLLOOOORRRR                 Applies subsequent matrix operations to the
  38.                               color matrix stack.
  39.  
  40.      To find out which matrix stack is currently the target of all matrix
  41.      operations, call ggggllllGGGGeeeetttt with argument GGGGLLLL____MMMMAAAATTTTRRRRIIIIXXXX____MMMMOOOODDDDEEEE. The initial value is
  42.      GGGGLLLL____MMMMOOOODDDDEEEELLLLVVVVIIIIEEEEWWWW.
  43.  
  44. EEEERRRRRRRROOOORRRRSSSS
  45.      GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____EEEENNNNUUUUMMMM is generated if _m_o_d_e is not an accepted value.
  46.  
  47.      GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ggggllllMMMMaaaattttrrrriiiixxxxMMMMooooddddeeee is executed between the
  48.      execution of ggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of ggggllllEEEEnnnndddd.
  49.  
  50. AAAASSSSSSSSOOOOCCCCIIIIAAAATTTTEEEEDDDD GGGGEEEETTTTSSSS
  51.      ggggllllGGGGeeeetttt with argument GGGGLLLL____MMMMAAAATTTTRRRRIIIIXXXX____MMMMOOOODDDDEEEE
  52.  
  53.  
  54. MMMMAAAACCCCHHHHIIIINNNNEEEE DDDDEEEEPPPPEEEENNNNDDDDEEEENNNNCCCCIIIIEEEESSSS
  55.      RRRReeeeaaaalllliiiittttyyyyEEEEnnnnggggiiiinnnneeee, RRRReeeeaaaalllliiiittttyyyyEEEEnnnnggggiiiinnnneeee2222, and VVVVTTTTXXXX systems do not support color
  56.      matrix transformations on images as they are loaded to or read back from
  57.      texture memory.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ggggllllMMMMaaaattttrrrriiiixxxxMMMMooooddddeeee((((3333GGGG))))               OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee               ggggllllMMMMaaaattttrrrriiiixxxxMMMMooooddddeeee((((3333GGGG))))
  71.  
  72.  
  73.  
  74.      On OOOOccccttttaaaannnneeee2222 VVVVPPPPrrrroooo systems, use of the texture q coordinate to achieve
  75.      projective texture effects will be processed on a per-vertex basis
  76.      instead of a per-pixel basis, unless the the texture matrix is set up to
  77.      be projective.  (A projective texture matrix is defined to be one in
  78.      which any of the 13th, 14th or 15th elements is non-zero.)  In addition,
  79.      if either two-sided lighting or fragment lighting is in effect,
  80.      projective texture effects will always be processed on a per-vertex
  81.      basis.
  82.  
  83.  
  84. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  85.      ggggllllLLLLooooaaaaddddMMMMaaaattttrrrriiiixxxx, ggggllllPPPPuuuusssshhhhMMMMaaaattttrrrriiiixxxx
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.