正在加载图片...
OpenGL Color Functions Color display mode( cont. Color-index mode gIIndex*(colorIndex) S, 1, d, or colorIndex is a non-negative integer value the number of index in a color table is al ways a power of 2 such as 256 or 1024 Es //set the current color by the index in a color table gIIndexi (196); //to establish the color table glutsetColor(index, red, green, blue) Color display mode (cont.) Color-index mode glIndex* (colorIndex); *:ub,s,i, d, or f colorIndex is a non-negative integer value. the number of index in a color table is always a power of 2, such as 256 or 1024. E.g.: //set the current color by the index in a color table glIndexi(196); //to establish the color table glutSetColor (index, red, green,blue); OpenGL Color Functions 15
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有