}
-Stage::Stage(StageType t):
+Stage::Stage(Stage::Type t):
type(t),
previous(0)
{ }
+const char *Stage::get_stage_name(Type type)
+{
+ static const char *names[] = { "shared", "vertex", "geometry", "fragment" };
+ return names[type];
+}
+
Module::Module():
- shared(SHARED)
+ shared(Stage::SHARED)
{ }
} // namespace SL