X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fdeviceinfo.h;h=e121a8cac2c7b65d74af87d085f262ce4a42791e;hb=190a7e11237351f6b730c28f7b16f183e8adc69c;hp=6f20854409a52439031546993ba14b1ae3b58ec3;hpb=009918e76dda88b0cb68fdaa20c63d6e952af260;p=libs%2Fgl.git diff --git a/source/core/deviceinfo.h b/source/core/deviceinfo.h index 6f208544..e121a8ca 100644 --- a/source/core/deviceinfo.h +++ b/source/core/deviceinfo.h @@ -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(); };