使用glGetError()会得到错误码1280,对应着GL_INVALID_ENUM,即错误的枚举,这说明glDrawArrays不能使用GL_POLYGON这个枚举,查询opengl的版本发现GL_POLYGON在3.x版本已弃用。 需改成glDrawArrays(GL_TRIANGLE_FAN
glGetLight 函式 glGetMap 函式 glGetMaterial 函式 glGetPixelMap 函式 glGetPointerv glGetPolygonStipple glGetString glGetTexEnv 函式 glGetTexGen 函式 glGetTexImage glGetTexLevelParameter 函式 glGetTexParameter 函式 glHint glIndex 函式
Specifies what kind of primitives to render. Symbolic constantsGL_POINTS,GL_LINE_STRIP,GL_LINE_LOOP,GL_LINES,GL_TRIANGLE_STRIP,GL_TRIANGLE_FAN,GL_TRIANGLES,GL_QUAD_STRIP,GL_QUADS, andGL_POLYGONare accepted. first Specifies the starting index in the enabled arrays. count Specifies the number of...
GLsizei count );Parameters mode The kind of primitives to render. The following constants specify acceptable types of primitives: GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON.first T...
The following constants specify acceptable types of primitives: GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON. first The starting index in the enabled arrays. count The number of indexes to ...
开发者ID:Daft-Freak,项目名称:vogl,代码行数:31,代码来源:gl-400-primitive-smooth-shading.cpp 示例2: Bind ▲点赞 5▼ voidVertexBuffer::DrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instanceCount) { ProgramObject *p = rc->GetCurProgram();if(p) p->updateMatrices(); ...
gl.glDrawArrays(gl.GL_TRIANGLE_STRIP,0, len(verts)//2) fps_display.draw()#helper hunction for making polygons 开发者ID:Permafacture,项目名称:data-oriented-pyglet,代码行数:18,代码来源:second.py 示例5: update_display ▲点赞 3▼ # 需要导入模块: from pyglet import gl [as 别名]# 或者: ...
mode=GL.GL_TRIANGLE_STRIP; break; caseGL2.GL_POLYGON: mode=GL.GL_TRIANGLE_FAN; break; caseGL.GL_POINTS: glDrawPointArrays(gl,first,count); return; } validate(gl,true); if(GL2GL3.GL_QUADS==mode&&!gl.isGL2()){ for(intj=first;j<count-3;j+=4){ ...
The following constants specify acceptable types of primitives: GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON. first The starting index in the enabled arrays. count The number of indexes to...
func glBindAttribLocation(GLuint, GLuint, UnsafePointer<GLchar>!)Deprecated func glBindBuffer(GLenum, GLuint)Deprecated func glBindBufferBase(GLenum, GLuint, GLuint)Deprecated func glBindBufferRange(GLenum, GLuint, GLuint, GLintptr, GLsizeiptr)Deprecated func glBindFramebuffer(GLenum, GL...