📄 fglindex.html
字号:
<HTML><BODY><PRE> <STRONG>NAME</STRONG> <STRONG>fglIndexd,</STRONG> <STRONG>fglIndexf,</STRONG> <STRONG>fglIndexi,</STRONG> <STRONG>fglIndexs,</STRONG> <STRONG>fglIndexub,</STRONG> <STRONG>fglIndexdv,</STRONG> <STRONG>fglIndexfv,</STRONG> <STRONG>fglIndexiv,</STRONG> <STRONG>fglIndexsv,</STRONG> <STRONG>fglIndexubv</STRONG> - set the current color index <STRONG>FORTRAN</STRONG> <STRONG>SPECIFICATION</STRONG> SUBROUTINE <STRONG>fglIndexd</STRONG>( REAL*8 <EM>c</EM> ) SUBROUTINE <STRONG>fglIndexf</STRONG>( REAL*4 <EM>c</EM> ) SUBROUTINE <STRONG>fglIndexi</STRONG>( INTEGER*4 <EM>c</EM> ) SUBROUTINE <STRONG>fglIndexs</STRONG>( INTEGER*2 <EM>c</EM> ) SUBROUTINE <STRONG>fglIndexub</STRONG>( INTEGER*1 <EM>c</EM> ) <STRONG>PARAMETERS</STRONG> <EM>c</EM> Specifies the new value for the current color index. <STRONG>FORTRAN</STRONG> <STRONG>SPECIFICATION</STRONG> SUBROUTINE <STRONG>fglIndexdv</STRONG>( CHARACTER*8 <EM>c</EM> ) SUBROUTINE <STRONG>fglIndexfv</STRONG>( CHARACTER*8 <EM>c</EM> ) SUBROUTINE <STRONG>fglIndexiv</STRONG>( CHARACTER*8 <EM>c</EM> ) SUBROUTINE <STRONG>fglIndexsv</STRONG>( CHARACTER*8 <EM>c</EM> ) SUBROUTINE <STRONG>fglIndexubv</STRONG>( CHARACTER*256 <EM>c</EM> ) <STRONG>PARAMETERS</STRONG> <EM>c</EM> Specifies a pointer to a one-element array that contains the new value for the current color index. <STRONG>DESCRIPTION</STRONG> <STRONG>fglIndex</STRONG> updates the current (single-valued) color index. It takes one argument, the new value for the current color index. The current index is stored as a floating-point value. Integer values are converted directly to floating-point values, with no special mapping. The initial value is 1. Index values outside the representable range of the color index buffer are not clamped. However, before an index is dithered (if enabled) and written to the frame buffer, it is converted to fixed-point format. Any bits in the integer portion of the resulting fixed-point value that do not correspond to bits in the frame buffer are masked out. <STRONG>NOTES</STRONG> <STRONG>fglIndexub</STRONG> and <STRONG>fglIndexubv</STRONG> are available only if the GL version is 1.1 or greater. The current index can be updated at any time. In particular, <STRONG>fglIndex</STRONG> can be called between a call to <STRONG>fglBegin</STRONG> and the corresponding call to <STRONG>fglEnd</STRONG>. <STRONG>ASSOCIATED</STRONG> <STRONG>GETS</STRONG> <STRONG>fglGet</STRONG> with argument <STRONG>GL_CURRENT_INDEX</STRONG> <STRONG>SEE</STRONG> <STRONG>ALSO</STRONG> <STRONG>fglColor</STRONG>, <STRONG>fglIndexPointer</STRONG></PRE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -