Version

Quick search

Table Of Contents

OpenGL

This module is a Python wrapper for OpenGL commands.

Warning

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(GLenum texture)

See: glActiveTexture() on Kronos website

kivy.graphics.opengl.glAttachShader(GLuint program, GLuint shader)

See: glAttachShader() on Kronos website

kivy.graphics.opengl.glBindAttribLocation(GLuint program, GLuint index, bytes name)

See: glBindAttribLocation() on Kronos website

kivy.graphics.opengl.glBindBuffer(GLenum target, GLuint buffer)

See: glBindBuffer() on Kronos website

kivy.graphics.opengl.glBindFramebuffer(GLenum target, GLuint framebuffer)

See: glBindFramebuffer() on Kronos website

kivy.graphics.opengl.glBindRenderbuffer(GLenum target, GLuint renderbuffer)

See: glBindRenderbuffer() on Kronos website

kivy.graphics.opengl.glBindTexture(GLenum target, GLuint texture)

See: glBindTexture() on Kronos website

kivy.graphics.opengl.glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)

See: glBlendColor() on Kronos website

kivy.graphics.opengl.glBlendEquation(GLenum mode)

See: glBlendEquation() on Kronos website

kivy.graphics.opengl.glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)

See: glBlendEquationSeparate() on Kronos website

kivy.graphics.opengl.glBlendFunc(GLenum sfactor, GLenum dfactor)

See: glBlendFunc() on Kronos website

kivy.graphics.opengl.glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)

See: glBlendFuncSeparate() on Kronos website

kivy.graphics.opengl.glBufferData(GLenum target, GLsizeiptr size, bytes data, GLenum usage)

See: glBufferData() on Kronos website

kivy.graphics.opengl.glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, bytes data)

See: glBufferSubData() on Kronos website

kivy.graphics.opengl.glCheckFramebufferStatus(GLenum target)

See: glCheckFramebufferStatus() on Kronos website

kivy.graphics.opengl.glClear(GLbitfield mask)

See: glClear() on Kronos website

kivy.graphics.opengl.glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)

See: glClearColor() on Kronos website

kivy.graphics.opengl.glClearStencil(GLint s)

See: glClearStencil() on Kronos website

kivy.graphics.opengl.glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)

See: glColorMask() on Kronos website

kivy.graphics.opengl.glCompileShader(GLuint shader)

See: glCompileShader() on Kronos website

kivy.graphics.opengl.glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, bytes data)

See: glCompressedTexImage2D() on Kronos website

kivy.graphics.opengl.glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, bytes data)

See: glCompressedTexSubImage2D() on Kronos website

kivy.graphics.opengl.glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)

See: glCopyTexImage2D() on Kronos website

kivy.graphics.opengl.glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)

See: glCopyTexSubImage2D() on Kronos website

kivy.graphics.opengl.glCreateProgram()

See: glCreateProgram() on Kronos website

kivy.graphics.opengl.glCreateShader(GLenum type)

See: glCreateShader() on Kronos website

kivy.graphics.opengl.glCullFace(GLenum mode)

See: glCullFace() on Kronos website

kivy.graphics.opengl.glDeleteBuffers(GLsizei n, bytes buffers)

See: glDeleteBuffers() on Kronos website

kivy.graphics.opengl.glDeleteFramebuffers(GLsizei n, bytes framebuffers)

See: glDeleteFramebuffers() on Kronos website

kivy.graphics.opengl.glDeleteProgram(GLuint program)

See: glDeleteProgram() on Kronos website

kivy.graphics.opengl.glDeleteRenderbuffers(GLsizei n, bytes renderbuffers)

See: glDeleteRenderbuffers() on Kronos website

kivy.graphics.opengl.glDeleteShader(GLuint shader)

See: glDeleteShader() on Kronos website

kivy.graphics.opengl.glDeleteTextures(GLsizei n, bytes textures)

See: glDeleteTextures() on Kronos website

kivy.graphics.opengl.glDepthFunc(GLenum func)

See: glDepthFunc() on Kronos website

kivy.graphics.opengl.glDepthMask(GLboolean flag)

See: glDepthMask() on Kronos website

kivy.graphics.opengl.glDetachShader(GLuint program, GLuint shader)

See: glDetachShader() on Kronos website

kivy.graphics.opengl.glDisable(GLenum cap)

See: glDisable() on Kronos website

kivy.graphics.opengl.glDisableVertexAttribArray(GLuint index)

See: glDisableVertexAttribArray() on Kronos website

kivy.graphics.opengl.glDrawArrays(GLenum mode, GLint first, GLsizei count)

See: glDrawArrays() on Kronos website

kivy.graphics.opengl.glDrawElements(GLenum mode, GLsizei count, GLenum type, indices)

See: glDrawElements() on Kronos website

kivy.graphics.opengl.glEnable(GLenum cap)

See: glEnable() on Kronos website

kivy.graphics.opengl.glEnableVertexAttribArray(GLuint index)

See: glEnableVertexAttribArray() on Kronos website

kivy.graphics.opengl.glFinish()

See: glFinish() on Kronos website

kivy.graphics.opengl.glFlush()

See: glFlush() on Kronos website

kivy.graphics.opengl.glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)

See: glFramebufferRenderbuffer() on Kronos website

kivy.graphics.opengl.glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)

See: glFramebufferTexture2D() on Kronos website

kivy.graphics.opengl.glFrontFace(GLenum mode)

See: glFrontFace() on Kronos website

kivy.graphics.opengl.glGenBuffers(GLsizei n)

See: glGenBuffers() on Kronos website

Unlike the C specification, the value will be the result of call.

kivy.graphics.opengl.glGenFramebuffers(GLsizei n)

See: glGenFramebuffers() on Kronos website

Unlike the C specification, the value will be the result of call.

kivy.graphics.opengl.glGenRenderbuffers(GLsizei n)

See: glGenRenderbuffers() on Kronos website

Unlike the C specification, the value will be the result of call.

kivy.graphics.opengl.glGenTextures(GLsizei n)

See: glGenTextures() on Kronos website

Unlike the C specification, the value will be the result of call.

kivy.graphics.opengl.glGenerateMipmap(GLenum target)

See: glGenerateMipmap() on Kronos website

kivy.graphics.opengl.glGetActiveAttrib(GLuint program, GLuint index)

See: glGetActiveAttrib() on Kronos website

Unlike the C specification, the value will be the result of call.

kivy.graphics.opengl.glGetActiveUniform(GLuint program, GLuint index)

See: glGetActiveUniform() on Kronos website

Unlike the C specification, the value will be the result of call.

kivy.graphics.opengl.glGetAttachedShaders(GLuint program, GLsizei maxcount)

See: glGetAttachedShaders() on Kronos website

Unlike the C specification, the value will be the result of call.

kivy.graphics.opengl.glGetAttribLocation(GLuint program, bytes name)

See: glGetAttribLocation() on Kronos website

Unlike the C specification, the value will be the result of call.

kivy.graphics.opengl.glGetBooleanv(GLenum pname)

See: glGetBooleanv() on Kronos website

Unlike the C specification, the value will be the result of call.

kivy.graphics.opengl.glGetBufferParameteriv(GLenum target, GLenum pname)

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(GLenum pname)

See: glGetFloatv() on Kronos website

Unlike the C specification, the value will be the result of call.

kivy.graphics.opengl.glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname)

See: glGetFramebufferAttachmentParameteriv() on Kronos website

Unlike the C specification, the value will be the result of call.

kivy.graphics.opengl.glGetIntegerv(GLenum pname)

See: glGetIntegerv() on Kronos website

Unlike the C specification, the value(s) will be the result of the call

kivy.graphics.opengl.glGetProgramInfoLog(GLuint program, GLsizei bufsize)

See: glGetProgramInfoLog() on Kronos website

Unlike the C specification, the source code will be returned as a string.

kivy.graphics.opengl.glGetProgramiv(GLuint program, GLenum pname)

See: glGetProgramiv() on Kronos website

Unlike the C specification, the value(s) will be the result of the call

kivy.graphics.opengl.glGetRenderbufferParameteriv(GLenum target, GLenum pname)

See: glGetRenderbufferParameteriv() on Kronos website

Unlike the C specification, the value will be the result of call.

kivy.graphics.opengl.glGetShaderInfoLog(GLuint shader, GLsizei bufsize)

See: glGetShaderInfoLog() on Kronos website

Unlike the C specification, the source code will be returned as a string.

kivy.graphics.opengl.glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype)

See: glGetShaderPrecisionFormat() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glGetShaderSource(GLuint shader)

See: glGetShaderSource() on Kronos website

Unlike the C specification, the source code will be returned as a string.

kivy.graphics.opengl.glGetShaderiv(GLuint shader, GLenum pname)

See: glGetShaderiv() on Kronos website

Unlike the C specification, the value will be the result of call.

kivy.graphics.opengl.glGetString(GLenum name)

See: glGetString() on Kronos website

Unlike the C specification, the value will be returned as a string.

kivy.graphics.opengl.glGetTexParameterfv(GLenum target, GLenum pname)

See: glGetTexParameterfv() on Kronos website

kivy.graphics.opengl.glGetTexParameteriv(GLenum target, GLenum pname)

See: glGetTexParameteriv() on Kronos website

kivy.graphics.opengl.glGetUniformLocation(GLuint program, bytes name)

See: glGetUniformLocation() on Kronos website

kivy.graphics.opengl.glGetUniformfv(GLuint program, GLint location)

See: glGetUniformfv() on Kronos website

kivy.graphics.opengl.glGetUniformiv(GLuint program, GLint location)

See: glGetUniformiv() on Kronos website

kivy.graphics.opengl.glGetVertexAttribPointerv(GLuint index, GLenum pname)

See: glGetVertexAttribPointerv() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glGetVertexAttribfv(GLuint index, GLenum pname)

See: glGetVertexAttribfv() on Kronos website

kivy.graphics.opengl.glGetVertexAttribiv(GLuint index, GLenum pname)

See: glGetVertexAttribiv() on Kronos website

kivy.graphics.opengl.glHint(GLenum target, GLenum mode)

See: glHint() on Kronos website

kivy.graphics.opengl.glIsBuffer(GLuint buffer)

See: glIsBuffer() on Kronos website

kivy.graphics.opengl.glIsEnabled(GLenum cap)

See: glIsEnabled() on Kronos website

kivy.graphics.opengl.glIsFramebuffer(GLuint framebuffer)

See: glIsFramebuffer() on Kronos website

kivy.graphics.opengl.glIsProgram(GLuint program)

See: glIsProgram() on Kronos website

kivy.graphics.opengl.glIsRenderbuffer(GLuint renderbuffer)

See: glIsRenderbuffer() on Kronos website

kivy.graphics.opengl.glIsShader(GLuint shader)

See: glIsShader() on Kronos website

kivy.graphics.opengl.glIsTexture(GLuint texture)

See: glIsTexture() on Kronos website

kivy.graphics.opengl.glLineWidth(GLfloat width)

See: glLineWidth() on Kronos website

kivy.graphics.opengl.glLinkProgram(GLuint program)

See: glLinkProgram() on Kronos website

kivy.graphics.opengl.glPixelStorei(GLenum pname, GLint param)

See: glPixelStorei() on Kronos website

kivy.graphics.opengl.glPolygonOffset(GLfloat factor, GLfloat units)

See: glPolygonOffset() on Kronos website

kivy.graphics.opengl.glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type)

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

Warning

Not implemented yet.

kivy.graphics.opengl.glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)

See: glRenderbufferStorage() on Kronos website

kivy.graphics.opengl.glSampleCoverage(GLclampf value, GLboolean invert)

See: glSampleCoverage() on Kronos website

kivy.graphics.opengl.glScissor(GLint x, GLint y, GLsizei width, GLsizei height)

See: glScissor() on Kronos website

kivy.graphics.opengl.glShaderBinary()

See: glShaderBinary() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glShaderSource(GLuint shader, bytes source)

See: glShaderSource() on Kronos website

kivy.graphics.opengl.glStencilFunc(GLenum func, GLint ref, GLuint mask)

See: glStencilFunc() on Kronos website

kivy.graphics.opengl.glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)

See: glStencilFuncSeparate() on Kronos website

kivy.graphics.opengl.glStencilMask(GLuint mask)

See: glStencilMask() on Kronos website

kivy.graphics.opengl.glStencilMaskSeparate(GLenum face, GLuint mask)

See: glStencilMaskSeparate() on Kronos website

kivy.graphics.opengl.glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)

See: glStencilOp() on Kronos website

kivy.graphics.opengl.glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)

See: glStencilOpSeparate() on Kronos website

kivy.graphics.opengl.glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, bytes pixels)

See: glTexImage2D() on Kronos website

kivy.graphics.opengl.glTexParameterf(GLenum target, GLenum pname, GLfloat param)

See: glTexParameterf() on Kronos website

kivy.graphics.opengl.glTexParameterfv(GLenum target, GLenum pname)

See: glTexParameterfv() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glTexParameteri(GLenum target, GLenum pname, GLint param)

See: glTexParameteri() on Kronos website

kivy.graphics.opengl.glTexParameteriv(GLenum target, GLenum pname)

See: glTexParameteriv() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, bytes pixels)

See: glTexSubImage2D() on Kronos website

kivy.graphics.opengl.glUniform1f(GLint location, GLfloat x)

See: glUniform1f() on Kronos website

kivy.graphics.opengl.glUniform1fv(GLint location, GLsizei count)

See: glUniform1fv() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glUniform1i(GLint location, GLint x)

See: glUniform1i() on Kronos website

kivy.graphics.opengl.glUniform1iv(GLint location, GLsizei count)

See: glUniform1iv() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glUniform2f(GLint location, GLfloat x, GLfloat y)

See: glUniform2f() on Kronos website

kivy.graphics.opengl.glUniform2fv(GLint location, GLsizei count)

See: glUniform2fv() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glUniform2i(GLint location, GLint x, GLint y)

See: glUniform2i() on Kronos website

kivy.graphics.opengl.glUniform2iv(GLint location, GLsizei count)

See: glUniform2iv() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z)

See: glUniform3f() on Kronos website

kivy.graphics.opengl.glUniform3fv(GLint location, GLsizei count)

See: glUniform3fv() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glUniform3i(GLint location, GLint x, GLint y, GLint z)

See: glUniform3i() on Kronos website

kivy.graphics.opengl.glUniform3iv(GLint location, GLsizei count)

See: glUniform3iv() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)

See: glUniform4f() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glUniform4fv(GLint location, GLsizei count)

See: glUniform4fv() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w)

See: glUniform4i() on Kronos website

kivy.graphics.opengl.glUniform4iv(GLint location, GLsizei count)

See: glUniform4iv() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glUniformMatrix2fv(GLint location, GLsizei count)

See: glUniformMatrix2fv() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glUniformMatrix3fv(GLint location, GLsizei count)

See: glUniformMatrix3fv() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, bytes value)

See: glUniformMatrix4fv() on Kronos website

kivy.graphics.opengl.glUseProgram(GLuint program)

See: glUseProgram() on Kronos website

kivy.graphics.opengl.glValidateProgram(GLuint program)

See: glValidateProgram() on Kronos website

kivy.graphics.opengl.glVertexAttrib1f(GLuint indx, GLfloat x)

See: glVertexAttrib1f() on Kronos website

kivy.graphics.opengl.glVertexAttrib1fv(GLuint indx, list values)

See: glVertexAttrib1fv() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y)

See: glVertexAttrib2f() on Kronos website

kivy.graphics.opengl.glVertexAttrib2fv(GLuint indx, list values)

See: glVertexAttrib2fv() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z)

See: glVertexAttrib3f() on Kronos website

kivy.graphics.opengl.glVertexAttrib3fv(GLuint indx, list values)

See: glVertexAttrib3fv() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)

See: glVertexAttrib4f() on Kronos website

kivy.graphics.opengl.glVertexAttrib4fv(GLuint indx, list values)

See: glVertexAttrib4fv() on Kronos website

Warning

Not implemented yet.

kivy.graphics.opengl.glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, data)

See: glVertexAttribPointer() on Kronos website

kivy.graphics.opengl.glViewport(GLint x, GLint y, GLsizei width, GLsizei height)

See: glViewport() on Kronos website

kivy.graphics.opengl.gl_init_symbols(allowed=[], ignored=[])