Make it clear these functions deal with OpenGL versions.
namespace GL {
namespace SL {
-Features Features::from_version(const Version &ver)
+Features Features::from_opengl_version(const Version &ver)
{
Features features;
features.target_api = OPENGL;
return features;
}
-Features Features::latest()
+Features Features::opengl_latest()
{
- return from_version(Version(4, 60));
+ return from_opengl_version(Version(4, 60));
}
} // namespace SL
unsigned uniform_binding_range = 84;
unsigned texture_binding_range = 96;
- static Features from_version(const Version &);
- static Features latest();
+ static Features from_opengl_version(const Version &);
+ static Features opengl_latest();
};
} // namespace SL
using namespace Msp;
GlslCompiler::GlslCompiler(int argc, char **argv):
- features(GL::SL::Features::latest()),
+ features(GL::SL::Features::opengl_latest()),
compile_mode(GL::SL::Compiler::PROGRAM),
parse_only(false),
combined(false),
getopt(argc, argv);
if(target_version)
- features = GL::SL::Features::from_version(GL::Version(target_version/100, target_version%100));
+ features = GL::SL::Features::from_opengl_version(GL::Version(target_version/100, target_version%100));
if(as_module)
{