Table Of Contents
OpenGL¶
This module is a Python wrapper for OpenGL commands.
警告
Not every OpenGL command has been wrapped and because we are using the C binding for higher performance, and you should rather stick to the Kivy Graphics API. By using OpenGL commands directly, you might change the OpenGL context and introduce inconsistency between the Kivy state and the OpenGL state.
-
kivy.graphics.opengl.
glActiveTexture
()¶
-
kivy.graphics.opengl.
glAttachShader
()¶
-
kivy.graphics.opengl.
glBindAttribLocation
()¶
-
kivy.graphics.opengl.
glBindBuffer
()¶
-
kivy.graphics.opengl.
glBindFramebuffer
()¶
-
kivy.graphics.opengl.
glBindRenderbuffer
()¶
-
kivy.graphics.opengl.
glBindTexture
()¶
-
kivy.graphics.opengl.
glBlendColor
()¶
-
kivy.graphics.opengl.
glBlendEquation
()¶
-
kivy.graphics.opengl.
glBlendEquationSeparate
()¶
-
kivy.graphics.opengl.
glBlendFunc
()¶
-
kivy.graphics.opengl.
glBlendFuncSeparate
()¶
-
kivy.graphics.opengl.
glBufferData
()¶
-
kivy.graphics.opengl.
glBufferSubData
()¶
-
kivy.graphics.opengl.
glCheckFramebufferStatus
()¶
-
kivy.graphics.opengl.
glClear
()¶
-
kivy.graphics.opengl.
glClearColor
()¶
-
kivy.graphics.opengl.
glClearStencil
()¶
-
kivy.graphics.opengl.
glColorMask
()¶
-
kivy.graphics.opengl.
glCompileShader
()¶
-
kivy.graphics.opengl.
glCompressedTexImage2D
()¶
-
kivy.graphics.opengl.
glCompressedTexSubImage2D
()¶
-
kivy.graphics.opengl.
glCopyTexImage2D
()¶
-
kivy.graphics.opengl.
glCopyTexSubImage2D
()¶
-
kivy.graphics.opengl.
glCreateProgram
()¶
-
kivy.graphics.opengl.
glCreateShader
()¶
-
kivy.graphics.opengl.
glCullFace
()¶
-
kivy.graphics.opengl.
glDeleteBuffers
()¶
-
kivy.graphics.opengl.
glDeleteFramebuffers
()¶
-
kivy.graphics.opengl.
glDeleteProgram
()¶
-
kivy.graphics.opengl.
glDeleteRenderbuffers
()¶
-
kivy.graphics.opengl.
glDeleteShader
()¶
-
kivy.graphics.opengl.
glDeleteTextures
()¶
-
kivy.graphics.opengl.
glDepthFunc
()¶
-
kivy.graphics.opengl.
glDepthMask
()¶
-
kivy.graphics.opengl.
glDetachShader
()¶
-
kivy.graphics.opengl.
glDisable
()¶
-
kivy.graphics.opengl.
glDisableVertexAttribArray
()¶
-
kivy.graphics.opengl.
glDrawArrays
()¶
-
kivy.graphics.opengl.
glDrawElements
()¶
-
kivy.graphics.opengl.
glEnable
()¶
-
kivy.graphics.opengl.
glEnableVertexAttribArray
()¶
-
kivy.graphics.opengl.
glFinish
()¶
-
kivy.graphics.opengl.
glFlush
()¶
-
kivy.graphics.opengl.
glFramebufferRenderbuffer
()¶
-
kivy.graphics.opengl.
glFramebufferTexture2D
()¶
-
kivy.graphics.opengl.
glFrontFace
()¶
-
kivy.graphics.opengl.
glGenBuffers
()¶ See: glGenBuffers() on Kronos website
Unlike the C specification, the value will be the result of call.
-
kivy.graphics.opengl.
glGenFramebuffers
()¶ See: glGenFramebuffers() on Kronos website
Unlike the C specification, the value will be the result of call.
-
kivy.graphics.opengl.
glGenRenderbuffers
()¶ See: glGenRenderbuffers() on Kronos website
Unlike the C specification, the value will be the result of call.
-
kivy.graphics.opengl.
glGenTextures
()¶ See: glGenTextures() on Kronos website
Unlike the C specification, the value will be the result of call.
-
kivy.graphics.opengl.
glGenerateMipmap
()¶
-
kivy.graphics.opengl.
glGetActiveAttrib
()¶ See: glGetActiveAttrib() on Kronos website
Unlike the C specification, the value will be the result of call.
-
kivy.graphics.opengl.
glGetActiveUniform
()¶ See: glGetActiveUniform() on Kronos website
Unlike the C specification, the value will be the result of call.
-
kivy.graphics.opengl.
glGetAttachedShaders
()¶ See: glGetAttachedShaders() on Kronos website
Unlike the C specification, the value will be the result of call.
-
kivy.graphics.opengl.
glGetAttribLocation
()¶ See: glGetAttribLocation() on Kronos website
Unlike the C specification, the value will be the result of call.
-
kivy.graphics.opengl.
glGetBooleanv
()¶ See: glGetBooleanv() on Kronos website
Unlike the C specification, the value will be the result of call.
-
kivy.graphics.opengl.
glGetBufferParameteriv
()¶ See: glGetBufferParameteriv() on Kronos website
Unlike the C specification, the value will be the result of call.
-
kivy.graphics.opengl.
glGetError
()¶ See: glGetError() on Kronos website
Unlike the C specification, the value will be the result of call.
-
kivy.graphics.opengl.
glGetFloatv
()¶ See: glGetFloatv() on Kronos website
Unlike the C specification, the value will be the result of call.
-
kivy.graphics.opengl.
glGetFramebufferAttachmentParameteriv
()¶ See: glGetFramebufferAttachmentParameteriv() on Kronos website
Unlike the C specification, the value will be the result of call.
-
kivy.graphics.opengl.
glGetIntegerv
()¶ See: glGetIntegerv() on Kronos website
Unlike the C specification, the value(s) will be the result of the call
-
kivy.graphics.opengl.
glGetProgramInfoLog
()¶ See: glGetProgramInfoLog() on Kronos website
Unlike the C specification, the source code will be returned as a string.
-
kivy.graphics.opengl.
glGetProgramiv
()¶ See: glGetProgramiv() on Kronos website
Unlike the C specification, the value(s) will be the result of the call
-
kivy.graphics.opengl.
glGetRenderbufferParameteriv
()¶ See: glGetRenderbufferParameteriv() on Kronos website
Unlike the C specification, the value will be the result of call.
-
kivy.graphics.opengl.
glGetShaderInfoLog
()¶ See: glGetShaderInfoLog() on Kronos website
Unlike the C specification, the source code will be returned as a string.
-
kivy.graphics.opengl.
glGetShaderPrecisionFormat
()¶ See: glGetShaderPrecisionFormat() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glGetShaderSource
()¶ See: glGetShaderSource() on Kronos website
Unlike the C specification, the source code will be returned as a string.
-
kivy.graphics.opengl.
glGetShaderiv
()¶ See: glGetShaderiv() on Kronos website
Unlike the C specification, the value will be the result of call.
-
kivy.graphics.opengl.
glGetString
()¶ See: glGetString() on Kronos website
Unlike the C specification, the value will be returned as a string.
-
kivy.graphics.opengl.
glGetTexParameterfv
()¶
-
kivy.graphics.opengl.
glGetTexParameteriv
()¶
-
kivy.graphics.opengl.
glGetUniformLocation
()¶
-
kivy.graphics.opengl.
glGetUniformfv
()¶
-
kivy.graphics.opengl.
glGetUniformiv
()¶
-
kivy.graphics.opengl.
glGetVertexAttribPointerv
()¶ See: glGetVertexAttribPointerv() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glGetVertexAttribfv
()¶
-
kivy.graphics.opengl.
glGetVertexAttribiv
()¶
-
kivy.graphics.opengl.
glHint
()¶
-
kivy.graphics.opengl.
glIsBuffer
()¶
-
kivy.graphics.opengl.
glIsEnabled
()¶
-
kivy.graphics.opengl.
glIsFramebuffer
()¶
-
kivy.graphics.opengl.
glIsProgram
()¶
-
kivy.graphics.opengl.
glIsRenderbuffer
()¶
-
kivy.graphics.opengl.
glIsShader
()¶
-
kivy.graphics.opengl.
glIsTexture
()¶
-
kivy.graphics.opengl.
glLineWidth
()¶
-
kivy.graphics.opengl.
glLinkProgram
()¶
-
kivy.graphics.opengl.
glPixelStorei
()¶
-
kivy.graphics.opengl.
glPolygonOffset
()¶
-
kivy.graphics.opengl.
glReadPixels
()¶ See: glReadPixels() on Kronos website
We support only GL_RGB/GL_RGBA as a format and GL_UNSIGNED_BYTE as a type.
-
kivy.graphics.opengl.
glReleaseShaderCompiler
()¶ See: glReleaseShaderCompiler() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glRenderbufferStorage
()¶
-
kivy.graphics.opengl.
glSampleCoverage
()¶
-
kivy.graphics.opengl.
glScissor
()¶
-
kivy.graphics.opengl.
glShaderBinary
()¶ See: glShaderBinary() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glShaderSource
()¶
-
kivy.graphics.opengl.
glStencilFunc
()¶
-
kivy.graphics.opengl.
glStencilFuncSeparate
()¶
-
kivy.graphics.opengl.
glStencilMask
()¶
-
kivy.graphics.opengl.
glStencilMaskSeparate
()¶
-
kivy.graphics.opengl.
glStencilOp
()¶
-
kivy.graphics.opengl.
glStencilOpSeparate
()¶
-
kivy.graphics.opengl.
glTexImage2D
()¶
-
kivy.graphics.opengl.
glTexParameterf
()¶
-
kivy.graphics.opengl.
glTexParameterfv
()¶ See: glTexParameterfv() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glTexParameteri
()¶
-
kivy.graphics.opengl.
glTexParameteriv
()¶ See: glTexParameteriv() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glTexSubImage2D
()¶
-
kivy.graphics.opengl.
glUniform1f
()¶
-
kivy.graphics.opengl.
glUniform1fv
()¶ See: glUniform1fv() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glUniform1i
()¶
-
kivy.graphics.opengl.
glUniform1iv
()¶ See: glUniform1iv() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glUniform2f
()¶
-
kivy.graphics.opengl.
glUniform2fv
()¶ See: glUniform2fv() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glUniform2i
()¶
-
kivy.graphics.opengl.
glUniform2iv
()¶ See: glUniform2iv() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glUniform3f
()¶
-
kivy.graphics.opengl.
glUniform3fv
()¶ See: glUniform3fv() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glUniform3i
()¶
-
kivy.graphics.opengl.
glUniform3iv
()¶ See: glUniform3iv() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glUniform4f
()¶ See: glUniform4f() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glUniform4fv
()¶ See: glUniform4fv() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glUniform4i
()¶
-
kivy.graphics.opengl.
glUniform4iv
()¶ See: glUniform4iv() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glUniformMatrix2fv
()¶ See: glUniformMatrix2fv() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glUniformMatrix3fv
()¶ See: glUniformMatrix3fv() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glUniformMatrix4fv
()¶
-
kivy.graphics.opengl.
glUseProgram
()¶
-
kivy.graphics.opengl.
glValidateProgram
()¶
-
kivy.graphics.opengl.
glVertexAttrib1f
()¶
-
kivy.graphics.opengl.
glVertexAttrib1fv
()¶ See: glVertexAttrib1fv() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glVertexAttrib2f
()¶
-
kivy.graphics.opengl.
glVertexAttrib2fv
()¶ See: glVertexAttrib2fv() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glVertexAttrib3f
()¶
-
kivy.graphics.opengl.
glVertexAttrib3fv
()¶ See: glVertexAttrib3fv() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glVertexAttrib4f
()¶
-
kivy.graphics.opengl.
glVertexAttrib4fv
()¶ See: glVertexAttrib4fv() on Kronos website
警告
Not implemented yet.
-
kivy.graphics.opengl.
glVertexAttribPointer
()¶
-
kivy.graphics.opengl.
glViewport
()¶