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)¶
- kivy.graphics.opengl.glAttachShader(GLuint program, GLuint shader)¶
- kivy.graphics.opengl.glBindAttribLocation(GLuint program, GLuint index, bytes name)¶
- kivy.graphics.opengl.glBindBuffer(GLenum target, GLuint buffer)¶
- kivy.graphics.opengl.glBindFramebuffer(GLenum target, GLuint framebuffer)¶
- kivy.graphics.opengl.glBindRenderbuffer(GLenum target, GLuint renderbuffer)¶
- kivy.graphics.opengl.glBindTexture(GLenum target, GLuint texture)¶
- kivy.graphics.opengl.glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)¶
- kivy.graphics.opengl.glBlendEquation(GLenum mode)¶
- kivy.graphics.opengl.glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)¶
- kivy.graphics.opengl.glBlendFunc(GLenum sfactor, GLenum dfactor)¶
- kivy.graphics.opengl.glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)¶
- kivy.graphics.opengl.glBufferData(GLenum target, GLsizeiptr size, bytes data, GLenum usage)¶
- kivy.graphics.opengl.glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, bytes data)¶
- kivy.graphics.opengl.glCheckFramebufferStatus(GLenum target)¶
- kivy.graphics.opengl.glClear(GLbitfield mask)¶
- kivy.graphics.opengl.glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)¶
- kivy.graphics.opengl.glClearStencil(GLint s)¶
- kivy.graphics.opengl.glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)¶
- kivy.graphics.opengl.glCompileShader(GLuint shader)¶
- kivy.graphics.opengl.glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, bytes data)¶
- kivy.graphics.opengl.glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, bytes data)¶
- kivy.graphics.opengl.glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)¶
- kivy.graphics.opengl.glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)¶
- kivy.graphics.opengl.glCreateProgram()¶
- kivy.graphics.opengl.glCreateShader(GLenum type)¶
- kivy.graphics.opengl.glCullFace(GLenum mode)¶
- kivy.graphics.opengl.glDeleteBuffers(GLsizei n, bytes buffers)¶
- kivy.graphics.opengl.glDeleteFramebuffers(GLsizei n, bytes framebuffers)¶
- kivy.graphics.opengl.glDeleteProgram(GLuint program)¶
- kivy.graphics.opengl.glDeleteRenderbuffers(GLsizei n, bytes renderbuffers)¶
- kivy.graphics.opengl.glDeleteShader(GLuint shader)¶
- kivy.graphics.opengl.glDeleteTextures(GLsizei n, bytes textures)¶
- kivy.graphics.opengl.glDepthFunc(GLenum func)¶
- kivy.graphics.opengl.glDepthMask(GLboolean flag)¶
- kivy.graphics.opengl.glDetachShader(GLuint program, GLuint shader)¶
- kivy.graphics.opengl.glDisable(GLenum cap)¶
- kivy.graphics.opengl.glDisableVertexAttribArray(GLuint index)¶
- kivy.graphics.opengl.glDrawArrays(GLenum mode, GLint first, GLsizei count)¶
- kivy.graphics.opengl.glDrawElements(GLenum mode, GLsizei count, GLenum type, indices)¶
- kivy.graphics.opengl.glEnable(GLenum cap)¶
- kivy.graphics.opengl.glEnableVertexAttribArray(GLuint index)¶
- kivy.graphics.opengl.glFinish()¶
- kivy.graphics.opengl.glFlush()¶
- kivy.graphics.opengl.glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)¶
- kivy.graphics.opengl.glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)¶
- kivy.graphics.opengl.glFrontFace(GLenum mode)¶
- 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)¶
- 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)¶
- kivy.graphics.opengl.glGetTexParameteriv(GLenum target, GLenum pname)¶
- kivy.graphics.opengl.glGetUniformLocation(GLuint program, bytes name)¶
- kivy.graphics.opengl.glGetUniformfv(GLuint program, GLint location)¶
- kivy.graphics.opengl.glGetUniformiv(GLuint program, GLint location)¶
- 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)¶
- kivy.graphics.opengl.glGetVertexAttribiv(GLuint index, GLenum pname)¶
- kivy.graphics.opengl.glHint(GLenum target, GLenum mode)¶
- kivy.graphics.opengl.glIsBuffer(GLuint buffer)¶
- kivy.graphics.opengl.glIsEnabled(GLenum cap)¶
- kivy.graphics.opengl.glIsFramebuffer(GLuint framebuffer)¶
- kivy.graphics.opengl.glIsProgram(GLuint program)¶
- kivy.graphics.opengl.glIsRenderbuffer(GLuint renderbuffer)¶
- kivy.graphics.opengl.glIsShader(GLuint shader)¶
- kivy.graphics.opengl.glIsTexture(GLuint texture)¶
- kivy.graphics.opengl.glLineWidth(GLfloat width)¶
- kivy.graphics.opengl.glLinkProgram(GLuint program)¶
- kivy.graphics.opengl.glPixelStorei(GLenum pname, GLint param)¶
- kivy.graphics.opengl.glPolygonOffset(GLfloat factor, GLfloat units)¶
- 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)¶
- kivy.graphics.opengl.glSampleCoverage(GLclampf value, GLboolean invert)¶
- kivy.graphics.opengl.glScissor(GLint x, GLint y, GLsizei width, GLsizei height)¶
- kivy.graphics.opengl.glShaderBinary()¶
See: glShaderBinary() on Kronos website
Warning
Not implemented yet.
- kivy.graphics.opengl.glShaderSource(GLuint shader, bytes source)¶
- kivy.graphics.opengl.glStencilFunc(GLenum func, GLint ref, GLuint mask)¶
- kivy.graphics.opengl.glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)¶
- kivy.graphics.opengl.glStencilMask(GLuint mask)¶
- kivy.graphics.opengl.glStencilMaskSeparate(GLenum face, GLuint mask)¶
- kivy.graphics.opengl.glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)¶
- kivy.graphics.opengl.glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)¶
- kivy.graphics.opengl.glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, bytes pixels)¶
- kivy.graphics.opengl.glTexParameterf(GLenum target, GLenum pname, GLfloat param)¶
- 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)¶
- 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)¶
- kivy.graphics.opengl.glUniform1f(GLint location, GLfloat x)¶
- 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)¶
- 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)¶
- 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)¶
- 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)¶
- 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)¶
- 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)¶
- 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)¶
- kivy.graphics.opengl.glUseProgram(GLuint program)¶
- kivy.graphics.opengl.glValidateProgram(GLuint program)¶
- kivy.graphics.opengl.glVertexAttrib1f(GLuint indx, GLfloat x)¶
- 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)¶
- 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)¶
- 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)¶
- 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)¶
- kivy.graphics.opengl.glViewport(GLint x, GLint y, GLsizei width, GLsizei height)¶
- kivy.graphics.opengl.gl_init_symbols(allowed=[], ignored=[])¶