gl.glClipPlane(GL2.GL_CLIP_PLANE0, planes[i][0],0); gl.glPopMatrix(); gl.glPushMatrix(); gl.glRotatef(strike2,0,0, -1); gl.glRotatef(dip2,0, -1,0); gl.glClipPlane(GL2.GL_CLIP_PLANE1, planes[i][1],0); gl.glPopMatrix(); gl.glEnable(GL2.GL_CLIP_PLANE0); gl.glEn...
defdraw(self):planes = self.planesassertlen(planes) <= len(GL_CLIP_PLANE_table), \"no more than %d clipping planes are permitted"% \ len(GL_CLIP_PLANE_table)# even if your OpenGL driver supports more -- no sense writing an expr that not everyone can draw!# WARNING: this ignores th...
注意:GL_CLIP_PLANEi 和GL_POINT_SPRITE_OES只在GL 1.1和更高版本中才被支持。
glGetClipPlane glGetColorTable glGetColorTableEXT glGetColorTableParameterfv glGetColorTableParameterfvEXT glGetColorTableParameteriv glGetColorTableParameterivEXT glGetCompressedTexImage glGetCompressedTexImageARB glGetConvolutionFilter glGetConvolutionParameterfv glGetConvolutionParameteriv glGetDoublev glGetErr...
GL.glDisable(GL.GL_LIGHTING)#c is 8x3 arrayc= self.vertexSet.vertices.array#lines parallel to x-axis should be red, y->blue and z->greencol = ((1,0,0),(0,1,0),(0,0,1))#these groups of 4 pairs of points define lines parallel to x, y, and z axesalines=[[(c[0],c[...