7 Features Features::from_opengl_version(const Version &ver)
10 features.target_api = OPENGL;
11 features.glsl_version = ver;
12 features.arb_enhanced_layouts = (ver>=Version(4, 40));
13 features.arb_explicit_attrib_location = (ver>=Version(1, 30));
14 features.arb_explicit_uniform_location = (ver>=Version(4, 30));
15 features.arb_gpu_shader5 = (ver>=Version(4, 0));
16 features.arb_separate_shader_objects = (ver>=Version(4, 10));
17 features.arb_uniform_buffer_object = (ver>=Version(1, 50));
18 features.ext_gpu_shader4 = (ver>=Version(1, 20));
19 features.ext_texture_array = (ver>=Version(1, 30));
20 features.uniform_binding_range = (ver>=Version(4, 30) ? 84 : ver>=Version(4, 0) ? 60 :
21 ver>=Version(3, 30) ? 36 : 24);
22 features.texture_binding_range = (ver>=Version(4, 30) ? 96 : ver>=Version(4, 0) ? 80 :
23 ver>=Version(1, 50) ? 48 : ver>=Version(1, 40) ? 32 : 16);
27 Features Features::opengl_latest()
29 return from_opengl_version(Version(4, 60));