]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/deviceinfo.h
Update and improve documentation
[libs/gl.git] / source / core / deviceinfo.h
index 6f20854409a52439031546993ba14b1ae3b58ec3..e121a8cac2c7b65d74af87d085f262ce4a42791e 100644 (file)
@@ -1,9 +1,14 @@
 #ifndef MSP_GL_DEVICEINFO_H_
 #define MSP_GL_DEVICEINFO_H_
 
+#include "glsl/features.h"
+
 namespace Msp {
 namespace GL {
 
+/**
+Contains information about various limits imposed by the graphics device.
+*/
 struct Limits
 {
        unsigned max_vertex_attributes;
@@ -17,12 +22,17 @@ struct Limits
        Limits();
 };
 
+/**
+Contains information about a graphics device.
+*/
 struct DeviceInfo
 {
        Limits limits;
+       SL::Features glsl_features;
 
        DeviceInfo();
 
+       /** Returns information for the device currently in use. */
        static const DeviceInfo &get_global();
 };