Class to retrieve information about the rendering backend. More...
#include <backendcapabilities.h>
Public Types | |
enum | BackendType { BT_OPENGL, BT_OPENGLES } |
Static Public Member Functions | |
static BackendType | type () |
static int | version () |
static int | shaderVersion () |
Class to retrieve information about the rendering backend.
This class contains static methods that retrieve information about the capabilities of the rendering backend.
Definition at line 32 of file backendcapabilities.h.
Definition at line 35 of file backendcapabilities.h.
int BackendCapabilities::shaderVersion | ( | ) | [static] |
The version of the shader language supported by the backend.
This method will query the backend for the supported shader language version. The scheme is the same as used by version(). It will return -1 if no shaders are supported.
Definition at line 64 of file backendcapabilities.cpp.
BackendCapabilities::BackendType BackendCapabilities::type | ( | ) | [static] |
Query the backend type.
This will return the type of the backend and can be used for runtime introspection.
Definition at line 32 of file backendcapabilities.cpp.
int BackendCapabilities::version | ( | ) | [static] |
The main backend version.
This method will query the backend for it's version number. This will then be converted to an integer to allow easy comparison. The scheme used is hundreds are major version, tens are the minor version and ones are the patch version.
Note that the major version can extend beyond 9 where minor/patch versions cannot.
Definition at line 42 of file backendcapabilities.cpp.