GluonGraphics::BackendCapabilities Class Reference

Class to retrieve information about the rendering backend. More...

#include <backendcapabilities.h>

List of all members.

Public Types

enum  BackendType { BT_OPENGL, BT_OPENGLES }

Static Public Member Functions

static BackendType type ()
static int version ()
static int shaderVersion ()

Detailed Description

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.


Member Enumeration Documentation

Enumerator:
BT_OPENGL 
BT_OPENGLES 

Definition at line 35 of file backendcapabilities.h.


Member Function Documentation

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.

Returns:
The shader language version.

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.

Returns:
The backend type.

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.

Returns:
The backend version.

Definition at line 42 of file backendcapabilities.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Dec 27 13:13:43 2010 for Gluon by  doxygen 1.6.3