glPolygonStipple函数设置多边形安装模式。 语法 C++ voidWINAPIglPolygonStipple(constGLubyte *mask ); 参数 mask 指向32x32 点模式的指针,该模式将从内存中解包,其方式与glDrawPixel解包像素的方式相同。 返回值 此函数不返回值。 错误代码 glGetError函数可以检索以下错误代码。
glPolygonStipple函式會設定多邊形 Stippling 模式。 語法 C++ voidWINAPIglPolygonStipple(constGLubyte *mask ); 參數 mask 32x32 Stipple 模式的指標,將會以glDrawPixel 將圖元解壓縮的相同方式從記憶體解壓縮。 傳回值 此函式不會傳回值。 錯誤碼 glGetError函式可以擷取下列錯誤碼。
下面以该书中第38页的图20-10为例解释一下glPolygonStipple的语法: 下面先上该函数的概念、代码、运行效果图(声明:这3个是原书中截图一下来的) 概念: 代码: 运行截图: 刚开始我也死活不明白一堆的二进制数组,就能画出一个蝗虫效果, 不过理解了这个函数,想画一个超级玛丽的效果也就不远啦! 下面先温习一下...
void glPolygonStipple( const GLubyte *mask); Parameters mask A pointer to a 32x32 stipple pattern that will be unpacked from memory in the same way thatglDrawPixelsunpacks pixels. Remarks TheglPolygonStipplefunction sets the polygon stippling pattern. Polygon stippling, like line stippling (seeglLine...
void glPolygonStipple(const GLubyte * Mask) DescriptionPolygon stippling, like line stippling, masks out certain fragments produced by rasterization, creating a pattern. (See the glLineStipple subroutine .) Stippling is independent of polygon antialiasing....
方法名:glPolygonStipple GL2.glPolygonStipple介绍 [英]Entry point to C language function:void glPolygonStipple(const GLubyte * mask) Part ofGL_VERSION_1_0 [中]C语言函数的入口点:void glPolygonStipple(const GLubyte * mask) GL_VERSION_1_0的一部分 ...
方法名:glPolygonStipple GL2.glPolygonStipple介绍 [英]Entry point to C language function:void glPolygonStipple(const GLubyte * mask) Part ofGL_VERSION_1_0 [中]C语言函数的入口点:void glPolygonStipple(const GLubyte * mask) GL_VERSION_1_0的一部分 ...
glPolygonStipple 函数设置多边形安装模式。语法C++ 复制 void WINAPI glPolygonStipple( const GLubyte *mask ); 参数mask 指向32x32 点模式的指针,该模式将从内存中解包,其方式与 glDrawPixel 解包像素的方式相同。返回值此函数不返回值。错误代码glGetError 函数可以检索以下错误代码。
glPolygonStipple函数设置多边形安装模式。 语法 C++复制 voidWINAPIglPolygonStipple(constGLubyte *mask ); 参数 mask 指向32x32 点模式的指针,该模式将从内存中解包,其方式与glDrawPixel解包像素的方式相同。 返回值 此函数不返回值。 错误代码 glGetError函数可以检索以下错误代码。
glPolygonStipple函式會設定多邊形 Stippling 模式。 語法 C++ voidWINAPIglPolygonStipple(constGLubyte *mask ); 參數 mask 32x32 Stipple 模式的指標,將會以glDrawPixel 將圖元解壓縮的相同方式從記憶體解壓縮。 傳回值 此函式不會傳回值。 錯誤碼 glGetError函式可以擷取下列錯誤碼。