X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Ffeatures.h;fp=source%2Fglsl%2Ffeatures.h;h=8f7a3e7c342eb69d12856c93f1f9af6ae017aaf4;hb=c0be4e4ae1a8b6ac31ff6b7080e2242c13d947ff;hp=0000000000000000000000000000000000000000;hpb=efeb3137935ec5ef6a16531c2e6b915caa3db481;p=libs%2Fgl.git diff --git a/source/glsl/features.h b/source/glsl/features.h new file mode 100644 index 00000000..8f7a3e7c --- /dev/null +++ b/source/glsl/features.h @@ -0,0 +1,29 @@ +#ifndef MSP_GL_SL_FEATURES_H_ +#define MSP_GL_SL_FEATURES_H_ + +#include + +namespace Msp { +namespace GL { +namespace SL { + +struct Features +{ + GLApi gl_api; + Version glsl_version; + bool arb_explicit_attrib_location; + bool arb_gpu_shader5; + bool arb_uniform_buffer_object; + bool ext_gpu_shader4; + bool ext_texture_array; + + Features(); + + static Features from_context(); +}; + +} // namespace SL +} // namespace GL +} // namespace Msp + +#endif