Table Of Contents
CGL: standard C interface for OpenGL¶
Kivy uses OpenGL and therefore requires a backend that provides it.
The backend used is controlled through the
compile-time variables and through the
Currently, OpenGL is used through direct linking (gl/glew), sdl2,
or by mocking it. Setting
USE_OPENGL_MOCK disables gl/glew.
0 will disable sdl2. Mocking
is always available.
At runtime the following backends are available and can be set using
gl– Available on unix (the default backend). Unavailable when
USE_OPENGL_MOCK=0. Requires gl be installed.
glew– Available on Windows (the default backend). Unavailable when
USE_OPENGL_MOCK=0. Requires glew be installed.
sdl2– Available on Windows/unix (the default when gl/glew is disabled). Unavailable when
angle_sdl2– Available on Windows with Python 3.5+. Unavailable when
mock– Always available. Doesn’t actually do anything.
Additionally, the following environmental runtime variables control the graphics system:
KIVY_GL_DEBUG– Logs al gl calls when
KIVY_GRAPHICS– Forces OpenGL ES2 when it is
gles. OpenGL ES2 is always used on the android, ios, rpi, and mali OSs.