Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Auxiliary functions for Open GL
This group includes help for definitions, functions, and classes for OpenGL.
More...
Topics | |
GL Shader Program | |
Class to manage an OpenGL shader program | |
Macros | |
#define | BUFFER_OFFSET(i) |
To give a offset number as pointer value. | |
Auxiliary functions for Open GL
This group includes help for definitions, functions, and classes for OpenGL.
To use OpenGL for your system, add the #include <kodi/gui/gl/GL.h>.
The HAS_GL is declared if Open GL is required and HAS_GLES if Open GL Embedded Systems (ES) is required, with ES the version is additionally given in the definition, this can be "2" or "3".
Following GL_TYPE_STRING define can be used, for example, to manage different folders for GL and GLES and make the selection easier. This are on OpenGL "GL" and on Open GL|ES "GLES".
Example:
In addition, BUFFER_OFFSET is declared in it which can be used to give an offset on the array to GL.
Example:
#define BUFFER_OFFSET | ( | i | ) |
To give a offset number as pointer value.