]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/features.h
Remove conditional and iteration statements with no effect from GLSL
[libs/gl.git] / source / glsl / features.h
index 31825c028e47f7400cba36b7c1a9eb19690c9215..ca74d38abd3d2a2927420589f21af83ac21ea5b6 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef MSP_GL_SL_FEATURES_H_
 #define MSP_GL_SL_FEATURES_H_
 
-#include <msp/gl/extension.h>
+#include <msp/gl/backend.h>
 
 namespace Msp {
 namespace GL {
@@ -9,7 +9,7 @@ namespace SL {
 
 struct Features
 {
-       GLApi gl_api;
+       GraphicsApi target_api;
        Version glsl_version;
        bool arb_enhanced_layouts;
        bool arb_explicit_attrib_location;
@@ -25,8 +25,8 @@ struct Features
 
        Features();
 
-       static Features from_context();
-       static Features all();
+       static Features from_version(const Version &);
+       static Features latest();
 };
 
 } // namespace SL