GL_POLYGON_SMOOTH如果启用,则绘制具有适当筛选的多边形。 如果禁用,则绘制别名多边形。 请参阅glPolygonMode。 GL_POLYGON_STIPPLE如果启用,则呈现多边形时使用当前多边形样式。 请参阅glPolygonStipple。 GL_SCISSOR_TEST如果启用,请丢弃剪刀矩形外部的片段。 请参阅glScissor。
# 需要导入模块: from opengltk.OpenGL import GL [as 别名]# 或者: from opengltk.OpenGL.GL importglEnable[as 别名]defdisplay(self):GL.glClear( GL.GL_COLOR_BUFFER_BIT)# select white for all linesGL.glColor3f(1.0,1.0,1.0)# in 1st row, 3 lines, each with a different stippleGL.glEnable...
GL_POLYGON_STIPPLE2882执行后,多边形为矢量画图 GL_SCISSOR_TEST3089根据函数glScissor设置,启用图形剪切 GL_STENCIL_TEST2960开启使用 模板测试 并且更新模版缓存。参见glStencilFunc和glStencilOp. GL_TEXTURE_1D3552启用一维文理 GL_TEXTURE_2D3553启用二维文理 ...
GL_POLYGON_SMOOTH If enabled, draw polygons with proper filtering. If disabled, draw aliased polygons. See glPolygonMode. GL_POLYGON_STIPPLE If enabled, use the current polygon stipple pattern when rendering polygons. See glPolygonStipple. GL_SCISSOR_TEST If enabled, discard fragments that are ou...
GL_POLYGON_STIPPLEIf enabled, use the current polygon stipple pattern when rendering polygons. (SeeglPolygonStipple.) GL_RESCALE_NORMALIf normal rescaling is enabled, a new operation is added to the transformation of the normal vector into eye coordinates. The normal vector is rescaled after it is...
gl.glEnable(gl.GL_LINE_STIPPLE) gl.glLineWidth(1.0) gl.glColor3f(1.0,1.0,1.0) gl.glBegin(gl.GL_LINE_LOOP) gl.glVertex3f(x0, y0,0.0) gl.glVertex3f(x1, y0,0.0) gl.glVertex3f(x1, y1,0.0) gl.glVertex3f(x0, y1,0.0)
glEnable 用于启用各种功能。功能由参数决定。与glDisable相对应。glDisable是用来关闭的。两个函数参数取值是一至的。 参数说明: void glEnable(GLenum cap) GLenum 是unsigned int 类型 cap 是一个取值。由值决定启用的功能键。各种功能请看参数cap的取值表 ...
glGetPolygonStipple glGetProgramEnvParameterdvARB glGetProgramEnvParameterfvARB glGetProgramInfoLog glGetProgramLocalParameterdvARB glGetProgramLocalParameterfvARB glGetProgramStringARB glGetProgramiv glGetProgramivARB glGetQueryObjecti64v glGetQueryObjectiv glGetQueryObjectivARB glGetQueryObjectui64v glGetQuer...
GL_POLYGON_SMOOTH 2881 过虑图形(多边形)的锯齿 GL_POLYGON_STIPPLE 2882 执行后,多边形为矢永超德煤注身末松量画图 GL_SCISSOR_获向影王印却指TEST 3089 根据函数glScissor设置,启用图形剪切 GL_STENCIL_TEST 2项960 开启使用模板测试并且更新模版缓存。参见glStencilFunc和glStencilOp. ...